Fall 2008
CS506- Web Design and Development (Session - 1)
Ref No: 320459
m
Time: 120 min
Marks: 75
Student Info
StudentID:
co
Center: OPKST
6.
Marks
Q No. 9 10 11 12
78 13 14 15 16
Marks
Q No. 17 18 19 20 21 22 23 24
Marks
Q No. 25 26 27 28 29 30 31 32
vu
Marks
Q No. 33 34 35 36 37 38 39 40
Marks
Q No. 41
w.
Marks
ww
Question No: 1 ( Marks: 1 ) - Please choose one
From the Following; which we don’t include in simple tag while creating JSP custom tags:
m
► Start of tag
► End of tag
► Attributes
► None of these
co
Question No: 2 ( Marks: 1 ) - Please choose one
From the following; which component is/are used in directory Structure of web components:
► index.htm, JSP, Images etc..
► Web-inf, web.xml
6.
► Classes, servlets classes
► lib, jar files
► All of these
► Interface
► Inheritance
► Both Interface and Inheritance
w.
► None of these.
m
► StringValidator
co
full-blown programming language.
► EL
► RT
► Both EL and RT
► None of these
6.
Question No: 8 ( Marks: 1 ) - Please choose one
The
dot operator in Expression Language typically used for accessing the --------------------of
an object.
► Properties
► Elements
► Values
► Attributes
78
Question No: 9 ( Marks: 1 ) - Please choose one
► The code becomes a mixture of presentation, business and data access logic.
► The maintenance of the application becomes a nightmare.
► A lot of code is also get duplicated.
► All the business logic goes into one application.
m
The
___________ represent the state of component.
► View
► Model
► Controller
co
► Component
6.
► Request
► Session
► Application
► JavaBeans
► ManagedBeans
► HTML
vu
Question No: 15 ( Marks: 1 ) - Please choose one
A
bean class ___________ have any public instance variables/attributes (fields).
► Can
► Can’t
► Must
► Shouldn’t
w.
m
Question No: 18 ( Marks: 1 ) - Please choose one
co
► Same
► Critical
► None of these
6.
Which of the following is not part of http response?
► Result Code
► URI
► Header fields
► Body
► JSP
► All of the given
m
► Extranet
► All of the given
co
When defining a method you must include a ___________ to declare any exception that might
be thrown but is not caught in the method.
► try block
► finally block
► catch block
► throws-clause
6.
Question No: 25 ( Marks: 1 ) - Please choose one
In
an applet class definition, the----------method takes the place of the constructor.
► paint();
► main();
► init();
► run() ;
78
Question No: 26 ( Marks: 1 ) - Please choose one
► Up casting
► Down casting
► In casting
► Out casting
m
Java provide ------------------
► Overloading
► Overriding
► Pointers
co
► Multiple Inheritance
int x = 7/2;
6.
value of x is:
►1
►2
► 3.5
►3
78
Question No: 31 ( Marks: 1 )
Given the request path below, which part is context path, servlet path and path info?
/vubookshop/edu/index.html
vu
Question No: 32 ( Marks: 1 )
Write the XML tags for the following scripting elements in JSP?
§ Comments:
§ Declaration:
w.
What impact a JavaBeans object can produce when it is stored in Servlet Request
object?
ww
m
Which type of information can be appended to URL?
co
Differentiate between Sequential Execution and multithreading.
6.
2. Business Layer
3. Data Layer