Anda di halaman 1dari 8

FINALTERM EXAMINATION

Fall 2008
CS506- Web Design and Development (Session - 1)
Ref No: 320459

m
Time: 120 min
Marks: 75
Student Info
StudentID:

co
Center: OPKST

ExamDate: 2/6/2009 12:00:00 AM

For Teacher's Use Only


Q No. 1 2 3 4 5 6 7 8 Total

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

Question No: 3 ( Marks: 1 ) - Please choose one


78
From following; which is the main reason that enters a thread into dead state:
► a)It dies a natural death because thread completes its execution.
► b)It is killed because someone invoked its stop method.
► Both a and b.
► None of these.
vu
Question No: 4 ( Marks: 1 ) - Please choose one

From the following; which approach is used in java to create threads,

► Interface
► Inheritance
► Both Interface and Inheritance
w.

► None of these.

Question No: 5 ( Marks: 1 ) - Please choose one

RPC stands for


► Remote Personal Computer (RPC)
ww

► Remote Procedure Calls (RPC).


► Remote Procedure Client (RPC)
► None of these

Question No: 6 ( Marks: 1 ) - Please choose one


From the following which one is not a built-in validator?
► DoubleRangeValidator
► LongRangeValidator
► LengthValidator

m
► StringValidator

Question No: 7 ( Marks: 1 ) - Please choose one


-----
--------can be used to specify dynamic attribute values for JSTL actions without using

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

Tiers represent the _____________ view of application.


vu
► Physical
► Logical
► External
► None of these

Question No: 10 ( Marks: 1 ) - Please choose one


w.

Layers represent the _____________ view of application.


► Physical
► Logical
► External
► None of these
ww

Question No: 11 ( Marks: 1 ) - Please choose one

Which of the following is appropriate for Page-with-Bean approach?

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

Question No: 12 ( Marks: 1 ) - Please choose one

m
The
___________ represent the state of component.
► View
► Model
► Controller

co
► Component

Question No: 13 ( Marks: 1 ) - Please choose one


The
following value of JavaBean’s scope attribute has local variable.
► Page

6.
► Request
► Session
► Application

Question No: 14 ( Marks: 1 ) - Please choose one


78
action elements allow us to work with _____________.
► JavaScript
JSP

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

Question No: 16 ( Marks: 1 ) - Please choose one

Expression is a code fragment which returns ___________.


► Integer
► String
ww

► Depends on the expression


► Nothing

Question No: 17 ( Marks: 1 ) - Please choose one


JSP
file is compiled ___________.
► Whenever there is some modification in the file
► Whenever it is accessed
► Whenever browser is restarted
► Whenever the page is refreshed

m
Question No: 18 ( Marks: 1 ) - Please choose one

Servlet session and JSP session have ___________ abilities.


► Different

co
► Same
► Critical
► None of these

Question No: 19 ( Marks: 1 ) - Please choose one

6.
Which of the following is not part of http response?
► Result Code
► URI
► Header fields
► Body

Question No: 20 ( Marks: 1 )


78
- Please choose one
In
which file do we define a servlet mapping?
► Web.xml
► Servlet.mappings
► Servlet.xml
vu
► None of the given

Question No: 21 ( Marks: 1 ) - Please choose one

Which of the following is a type of Java web application technologies?


► JSTL
► JSF
w.

► JSP
► All of the given

Question No: 22 ( Marks: 1 ) - Please choose one

Extra information can be appended to URL using ____________.


ww

► Extra path information


► Added parameters
► Custom change
► All of the given

Question No: 23 ( Marks: 1 ) - Please choose one


Web server is a software which provides services to access _________.
► Internet
► Intranet

m
► Extranet
► All of the given

Question No: 24 ( Marks: 1 ) - Please choose one

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

DSN stands for ___________.


vu
► Domain System Name
► Data Source Name
► Database System Name
► Database Simple Name

Question No: 27 ( Marks: 1 ) - Please choose one


w.

From following classes; which one can’t be instantiated?


► Super class
► Abstract Class
► Anonymous Class
► Concrete Class
ww

Question No: 28 ( Marks: 1 ) - Please choose one

Converting bigger data types into smaller one is called ----------

► Up casting
► Down casting
► In casting
► Out casting

Question No: 29 ( Marks: 1 ) - Please choose one

m
Java provide ------------------
► Overloading
► Overriding
► Pointers

co
► Multiple Inheritance

Question No: 30 ( Marks: 1 ) - Please choose one

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.

Question No: 33 ( Marks: 2 )

What impact a JavaBeans object can produce when it is stored in Servlet Request
object?
ww

Question No: 34 ( Marks: 2 )

What invokes a thread’s run() method?

Question No: 35 ( Marks: 3 )


What is the significance of error page?

Question No: 36 ( Marks: 3 )

m
Which type of information can be appended to URL?

Question No: 37 ( Marks: 3 )

co
Differentiate between Sequential Execution and multithreading.

Question No: 38 ( Marks: 5 )

Which technology is used in JAVA to support following layers?


1. Presentation Layer

6.
2. Business Layer
3. Data Layer

Question No: 39 ( Marks: 5 )

How cookies are sent to a client?


78
Question No: 40 ( Marks: 10 )

What are the characteristics of web services?


vu
Question No: 41 ( Marks: 10 )

What is the usage of sleep (int time) method?


w.
ww

Anda mungkin juga menyukai