CS511 Sample Paper

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

CS511 Web Engineering

Question No. 1

Usually events are handled in __________ phases.

(a) 1
(b) 2
(c) 3
(d) 4

Question No. 2

When an event is triggered:

(a) The message heap is created to store the event


(b) The browser assigns an event handler to execute
(c) The browser will create an object to handle the event
(d) The server sends an acknowledgement if a valid handler is not available

Question No. 3

Events triggered by devices like touch screens are type of _________.

(a) Keyboard events


(b) Touch Events
(c) Mouse events
(d) Ground events

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

The ___________ event occurs when the element loses focus.

(a) Focusout
(b) Blur
(c) Submit
(d) Bounary

Question No. 6

Which of the followings is NOT a form event?

(a) Submit
(b) Reset
(c) formdata
(d) formout

Question No. 7

JQuery is ________ library

(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) Document object model


(b) Cross browser functionality
(c) JavaScript Event
(d) Object database modeling
Question No. 9

Which of the following JQuery method slides elements up and down?

(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

JavaScript is executed in the ____________ of the client.

(a) Browser
(b) Heap
(c) Public space
(d) Thread space

Question No. 12

Javascript is a _________

(a) Scripting language


(b) Database server
(c) Data transfer protocol
(d) Data load protocol

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 _________.

(a) Microsoft Office


(b) Software Stack
(c) Hyper Markup Language (HML)
(d) Package of accounting utilities

Question No. 15

In PHP, Constants are defined using ____________.

(a) constant()
(b) define()
(c) fix-var()
(d) var-fix()

Question No. 16

Statements must end with ____________ in PHP.

(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

Which of the following is correct syntax to include a file in PHP?

(a) ‘filename’ include;


(b) include 'filename';
(c) Include $filename$;
(d) Include !filename!;

Question No. 19

_______ in php is used to output data to the screen.

(a) cout<<
(b) display
(c) ostream
(d) echo

Question No. 20

PHP is ______ scripting language

(a) server side


(b) client side
(c) database
(d) validation

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

In SQL, Information can be retrieved from multiple tables using __________.

(a) Tables
(b) Joins
(c) Compound clause
(d) Select clause

Question No. 27

MySQL is ___________

(a) Server side scripting language


(b) Client side scripting language
(c) Database management system
(d) Markup language

Question No. 28

MySQL is based on ________

(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?

(a) Syntax limits


(b) Errors dealing
(c) Alphabet characters
(d) Regular expression

Question No. 32

A unique user’s state can be identified by ____________.

(a) Java alerts


(b) Cookie
(c) HTTP
(d) HTML Tag

Question No. 33
Cookies can store the information up to:

(a) 7K
(b) 4K
(c) 5K
(d) 6K

Question No. 34

Recurring solution to a recurring problem is called:

(a) Design pattern


(b) Session
(c) Simple Solution
(d) Architecture

Question No. 35

Which of the followings is not a Design pattern

(a) Façade
(b) Factory
(c) Builder
(d) Cookie

Question No. 36

In MVC------- represents the data of the application:

(a) Model
(b) Controller
(c) Variable
(d) Constant
Question No. 37

-------- provides basic structure for developing a software

(a) Framework
(b) SQL injection
(c) MVC
(d) User sessions

Question No. 38

Laravel follows______

(a) MVC Design Pattern


(b) MVM Design Pattern
(c) Singleton design pattern
(d) Composite design pattern

Question No. 39

________ provide us insights about the usage of our website:

(a) Social networking


(b) CPA
(c) Web analytics
(d) CPC

Question No. 40

SEO stands for_____

(a) Search Engine Operation


(b) Search Engine Operators
(c) Search Engine Optimization
(d) Search Engine Option

3 Marks Questions:
Question No. 41

What is difference between “mouseup” event and “mousedown” events?

Question No. 42

Identify the error in the following PHP code:

<php

Echo “<P>this is paragraph “

?>

Question No. 43

Differentiate between “insert” and “update” SQL clauses.

Question No. 44

Write down the purpose of adapter design pattern.

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

What is the main purpose of Search Engine Optimization?

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy