CS511 Sample Paper
CS511 Sample Paper
CS511 Sample Paper
Question No. 1
(a) 1
(b) 2
(c) 3
(d) 4
Question No. 2
Question No. 3
Question No. 4
Which of the following event will be triggered when mouse was released over an element?
(a) Mouseclick
(b) Mouseup
(c) Mousedoubleclick
(d) Mouseover
Question No. 5
(a) Focusout
(b) Blur
(c) Submit
(d) Bounary
Question No. 6
(a) Submit
(b) Reset
(c) formdata
(d) formout
Question No. 7
(a) Javascript
(b) PHP
(c) HTML
(d) MySql
Question No. 8
Ability of a website or web application to function across different browsers is called ____
(a) slide()
(b) slidevertical()
(c) slidevehorizontal()
(d) move()
Question No. 10
Which of the following is used to interact with the web server without loading the whole web
page?
(a) AJAX
(b) WSYS
(c) IXP
(d) ATX
Question No. 11
(a) Browser
(b) Heap
(c) Public space
(d) Thread space
Question No. 12
Javascript is a _________
Question No. 13
Server side development makes webpages ____________.
(a) Static
(b) Fixed
(c) Motionless
(d) Dynamic
Question No. 14
The set of components that work together to execute the application, for example operating
system, database and web server are collectively called _________.
Question No. 15
(a) constant()
(b) define()
(c) fix-var()
(d) var-fix()
Question No. 16
(a) Semicolon
(b) @ sign
(c) ! sign
(d) $ sign
Question No. 17
To embed php code in HTML following tag will be used.
(a) <meta-php>…..</meta-php>
(b) <html-php>…</html-php>
(c) <server>……</server>
(d) <?php…….?>
Question No. 18
Question No. 19
(a) cout<<
(b) display
(c) ostream
(d) echo
Question No. 20
Question No. 21
A class is defined by using the ______ keyword.
(a) class
(b) bariable
(c) block
(d) function
Question No. 22
Which of the following super global array is used to collect form data after submitting form?
(a) $_POST
(b) $_LOAD
(c) $_FIND
(d) $_DOWN
Question No. 23
In-memory file access, ___________ reads the entire file and returns an array, with each array
elements corresponding to one line in the file.
(a) file_get_contents()
(b) file_put_contents()
(c) fclose()
(d) file()
Question No. 24
If property or method is ________ then it can ONLY be accessed within the class.
(a) Public
(b) Private
(c) Protected
(d) varchar
Question No. 25
Which of the following languages allows making webpages pages dynamic?
(a) PHP
(b) English
(c) HTML
(d) CSS
Question No. 26
(a) Tables
(b) Joins
(c) Compound clause
(d) Select clause
Question No. 27
MySQL is ___________
Question No. 28
(a) PHP
(b) HTTP
(c) Javascript
(d) Structured Query Language
Question No. 29
Which of the following clause will be used to insert data in database?
(a) Insert
(b) Select
(c) Delete
(d) join
Question No. 30
Which of the following clause will be used to select data from a database?
(a) join
(b) merge
(c) Select
(d) Insert
Question No. 31
Which of the followings is a concise way to eliminate the conditional logic that would be
necessary to ensure that input data follows a specific format?
Question No. 32
Question No. 33
Cookies can store the information up to:
(a) 7K
(b) 4K
(c) 5K
(d) 6K
Question No. 34
Question No. 35
(a) Façade
(b) Factory
(c) Builder
(d) Cookie
Question No. 36
(a) Model
(b) Controller
(c) Variable
(d) Constant
Question No. 37
(a) Framework
(b) SQL injection
(c) MVC
(d) User sessions
Question No. 38
Laravel follows______
Question No. 39
Question No. 40
3 Marks Questions:
Question No. 41
Question No. 42
<php
?>
Question No. 43
Question No. 44
Question No. 45
Write down an SQL query that fetches records of all those users from a table named “users”
where the monthly salary of the user is greater than 50,000.
Question No. 46
5 Marks Questions
Question No. 47
Write down a javascript function that generates a random number between 1 to 10?
Question No. 48
Write down the advantages and drawbacks of using cookies in a webpage.
Question No. 49
write down a two javascript functions named “Caller” and the “Sum”. The sum function must
take two integer values as input and return the sum of these values. The “Caller” function must
call the “Sum” function and display the returned value through a pop up message.
Question No. 50
Which Laravel class handles the concept of “Routes”, provide the description with at least one
example.