We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Please share quiz here

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 1984

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

plz share quiz 3

Please share your current quiz to help each other .thanks 

CS506 Quiz No.3 July 12, 2012  100% Solved 

Attachments:

Syed M. Umair Saulat  gud keep it up 

thanks Bhai 

Dear

It is my submitted quiz .Two of them Tough. I shall submit my own quiz latter.Any body want  to submit quiz then contact

Attachments:

CS506 - Web Design and Development

Quiz No.3 July 12,2 2012

 

Which of the following object is used for sharing resources among different servlets of same application?
ServletConfig
ServletRequest
ServletResponse
Servlet Context  (right Answer)

 

HTML form data can be processed by JSP
TRUE( right Answer)
FALSE

 

getParameters() method returns an array of strings containing the values for a specified servlet parameter.

True

False

 

From the following methods, which method cannot be overridden in the JSP page

_jspService() (right Answer)
jspDestroy()
jspInit()
None of these

 

Interface can be implemented in JSP

True

False (right Answer)

 

setAttribute(String, Object) associates a ----------with a name.

None of these

Object (right Answer)

String

Value

 

JSP technology is extensible

True (right Answer)

False

 

 

Packages are the way to organize files into different -------------according to their functionality, usability as well as category they should belong to.

Directories(right Answer)

Folders

Libraries

None of these

 

 

What is the initial contact point for handling a web request in a Page-Centric architecture?

JSP page (right Answer)

JavaBean

Servlet

HTML page

 

Relationship between JSP and servlets is

Servlets are built on JSP semantics and all servlets are compiled to JSP pages for runtime usage

JSP and servlets are unrelated technologies

Servlets and JSP are competing technologies for handling web requests. Servlets are being superseded by JSP, which is preferred. The two technologies are not useful in combination

JSPs are built on servlet semantics and all JSPs are compiled to servlets for runtime usage(right Answer)

 

All -----------data is kept at the application server.

Dynamic

Static

Both dynamic and static(right Answer)

None of these

 

When JSP page compiled, it is translated into?

Applet

Application

Servlet(right Answer)

Web Browser

 

 

From following which code can be used to create session object in the Servlet:

HttpSession session = req.getSession(true); (right Answer)

HttpSession session = req.getSession(false);

HttpSession session = req.getSession(1);

None of these

 

 

 

From the following indicators; which is added in user session to know the session time out?

Sessiontimeoutindicator (right Answer)

SessionTimeOutIndicator

None of these

 

getParameters() method returns an array of strings containing the values for a specified servlet parameter.

True

False (right Answer)

 

From the following which ID is transmitted between the client and the server

Session ID (right Answer)

Network ID

Server ID

None of these

 

To define the error page in JSP we use following tag?

exception-type

error-type

error-page(right Answer)

exception-page

 

 

Which one is used to collect data when a user navigates between web pages?

Session Tracking (right Answer)

User Tracking

None of these

Session Migration

 

doGet() and doPost() receive ServletRequest and ServletResponse objects as an arguments which facilitate interaction between the client and the server.

True (right Answer)

False

 

Which of the following problem occurs with lower priority threads?

Race condition

Starvation (right Answer)

Average waiting time

Process death

 

Which of the following Environment variable tells the system about the root directory of TOMCAT?

JAva_HOME

CATALINA_HOME (right Answer)

CLASSPATH

PATH

 

Which of the following is NOT a web technoloy of Java?

Servlet

JSP

ASP

JSF (right Answer)

 

 

Which of the following method needs to ovveride while handling threads in java?

init()

start()

run()(right Answer)

runnable()

 

 

Web.xml is a ___________

java file

configuration file

jar file

servlet

 

 

Servlet mapping is defined in ________

servlet

web.xml (right Answer)

html

JSP

 

 

Which one is used to collect data when a user navigates between web pages?

Session Tracking(right Answer)

User Tracking

None of these

Session Migration

 

 

Which of the following is not included in simple tag while creating JSP custom tags?

 

Start of tag

End of tag

Attribues(right Answer)

None of these

 

 

To provide global control of JSP we use following tag

<%@         %>  right Answer)

<%--        -%>

<%!          %>

<%=       %>

 

From the following which one is not a JSP directive?

Page

Include

Taglib (right Answer)

Out

 

Packages are the way to organize files into different -------------according to their functionality, usability as well as category they should belong to.

 

When a session object is invalidated, it can be again refreshed.

True (right Answer)

False

 

Client is referred as a

Computer user (right Answer)

Computer that a person is using for communication purpose

Person which carry out web surfing

None of these

 

From the following methods, which method cannot be overridden in the JSP page

_jspService()(right Answer)

jspDestroy()

jspInit()

None of these

 

HttpServletResponse object is created when web server executes the servlet. This object is passes to the servlet service method which passes it to doGet () or doPost().

True (right Answer)

False

 

Servlets are used to

Create graphics

Provide dynamic web contents which extend web servers (right Answer)

Develop applets

Create GUI

 

From the following which is not a basic function of web-based application:

Presentation

Debugging

Business Logic (right Answer)

Data Management

 

HttpSession stores session information in

File system of client

File system of server

A cookie(right Answer)

A session object

 

Interface of HttpServletResponse extends class ServletResponse

Flase

True (right Answer)

 

getAttribute(String) extracts----------- stored value from a session object

Subsequently

None of these

Previously(right Answer)

Currently

 

getParameters() method returns an array of strings containing the values for a specified servlet parameter.

True

False (right Answer)

 

 

To destroy the session in Servlet we use?

session.destroy()

session.invalidate()(right Answer)

session.end()

session.Kill()

 

 

Which of the following object is used for sharing resources among different servlets of same application?

ServletConfig

ServletRequest

ServletResponse

ServletContext (right Answer)

 

From the following which session tracking technique is used when new session is started?

 

Cookies

URL Rewriting

Both Cookies and URL Rewriting (right Answer)

None of these

 

 

 

javax.servlet.jsp.PageContext, is used to give a ---------point of access to many of the page attributes.

Select correct option:

Single

Multiple  (right Answer)

 

 

All -----------data is kept at the application server.

Dynamic

Static

Both dynamic and static(right Answer)

None of these

 

 

“application” is a object of

Select correct option:

ServletContext.

HttpSession

ServletConfig

None of these  Not sure

 

 

What is the initial contact point for handling a web request in a Page-Centric architecture?

Select correct option:

JSP page (right Answer)

JavaBean

servlet

HTML page

 

Which of the following is the best choice as a controller in MVC Model Architecture?

Java (right Answer)

Servlet

JavaScript

JSP

 

From following tags, which one is the Special JSP tag?

Select correct option:

<jsp: .…. /> (right Answer)

<%! %>

<%= %>

<%@ %>

 

 

JSP ____________ action element is used to obtain a reference to an existing JavaBean object.

Select correct option:

useBean (right Answer)

setProperty

getProperty

None of these

 

 

From following methods; which method is not a part of the JSP life cycle?

jspInit()

jspService()%> (right Answer)

_jspService()

jspDestroy()

 

getAttribute(String) extracts----------- stored value from a session object

Select correct option:

Subsequently

None of these

Previously (right Answer)

Currently

 

 

Which of the following is NOT true about JavaBean?

Select correct option:

It should not have any public variable.

It must be serializable.

It must not have any zero argument constructor.

Private instances must be accessed via setters/getters. (right Answer)

 

 

getId( ) returns the unique ID of

Select correct option:

Current session

Previous session

None of these Not sure

Next session

 

HTTP is a ---------protocol.

Select correct option:

Stateless (right Answer)

Connectionless

Connection oriented

None of these

 

 

 

JSP technology is extensible

True (right Answer)

False

 

When a session object is invalidated, it can be again refreshed.

True (right Answer)

False

 

From the following indicators; which is added in user session to know the session time out?

Sessiontimeoutindicator (right Answer)

SessionTimeOutIndicator

SessionTimeoutIndicator

None of these

 

JSP scripting elements is/are

Select correct option:

Declarations

Scriptlets

expressions

All of these  (right Answer)

 

From the following methods, which method cannot be overridden in the JSP page

_jspService()(right Answer)

jspDestroy()

jspInit()

None of these

 

Session Tracking is done through following techniques?

Cookies

Hidden fields

URL Rewriting

All the these (right Answer)

 

 

Moving session from one server to another in case of server failure is known as

Session Migration

Session Tracking

Session Hijacking

None of these right Answer)

 

 

 

 

When a session object is invalidated, it can be again refreshed.

True (right Answer)

False

 

Hidden Forms Fields contain the information that is needed to send to the

Client

Server (right Answer)

Both server and client

None of these

 

In JSP Instance variables and method are declared through following tag

<%@ %>

<%-- --%>

<%! %> (right Answer)

<%= %>

 

From the following methods, which method cannot be overridden in the JSP page

_jspService()(right Answer)

jspDestroy()

jspInit()

None of these

 

Interface can be implemented in JSP

True

False (right Answer)

 

Which of the following is the best choice as a controller in MVC Model Architecture?

Java (right Answer)

Servlet

JavaScript

JSP

 

 

To provide global control of JSP we use following tag

<%@         %> (right Answer)

<%--        -%>

<%!          %>

<%=       %>

 

 

In JSP Instance variables and method are declared through following tag

<%@ %>

<%-- --%>

<%! %>(right Answer)

<%= %>

 

A cookie is a piece of ------- that a web server can store on a client’s hard disk.

Text

Number

String (right Answer)

None of these

 

 

Question # 1 of 10 ( Start time: 10:09:19 AM )
Client is referred as a
Select correct option:
=>Computer user
Computer that a person is using for communication purpose
Person which carry out web surfing
None of these

Question # 2 of 10 ( Start time: 10:10:31 AM )
From the following which one is not a JSP directive?
Select correct option:
page
include
=>taglib
out

Question # 3 of 10 ( Start time: 10:11:51 AM )
Moving session from one server to another in case of server failure is known as
Select correct option:
Session Migration
Session Tracking
Session Hijacking
=>None of these

Question # 4 of 10 ( Start time: 10:13:04 AM )
From the following which session tracking technique is used when new session is started?
Select correct option:
Cookies
URL Rewriting
=>Both Cookies and URL Rewriting
None of these

Question # 5 of 10 ( Start time: 10:14:28 AM )
From following which one is the object of JspWriter used to send output to the client.
Select correct option:
request
=>out
response
None of these

Question # 6 of 10 ( Start time: 10:15:20 AM )
From the following methods, which method cannot be overridden in the JSP page
Select correct option:
=>_jspService()
jspDestroy()
jspInit()
None of these

Question # 7 of 10 ( Start time: 10:16:43 AM )
To destroy the session in Servlet we use?
Select correct option:
session.destroy()
=>session.invalidate()
session.end()
session.Kill()

Question # 8 of 10 ( Start time: 10:18:04 AM )
HttpSession stores session information in
Select correct option:
File system of client
File system of server
=>A cookie
A session object

Question # 9 of 10 ( Start time: 10:20:19 AM )
HTTP is a ---------protocol.
Select correct option:
=>Stateless
Connectionless
Connection oriented
None of these

Question # 10 of 10 ( Start time: 10:20:19 AM )
When a session object is invalidated, it can be again refreshed.
Select correct option:
True
False

RSS

Latest Activity

+ ! ! ! ! ! ! ! ! ! AG replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Happy Marriage to "Zee" & " Nomi weds Noor"....!
45 seconds ago
+ ! ! ! ! ! ! ! ! ! AG liked + "αяsαℓ " Ќąƶµяɨ •"'s discussion Happy Marriage to "Zee" & " Nomi weds Noor"....!
3 minutes ago
+ ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Happy Marriage to "Zee" & " Nomi weds Noor"....!
1 hour ago
+ ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Happy Marriage to "Zee" & " Nomi weds Noor"....!
1 hour ago
+ ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Happy Marriage to "Zee" & " Nomi weds Noor"....!
1 hour ago
+ ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Happy Marriage to "Zee" & " Nomi weds Noor"....!
1 hour ago
+ "αяsαℓ " Ќąƶµяɨ •" posted a discussion
1 hour ago
Aijaz khan updated their profile
1 hour ago
Aijaz khan added a discussion to the group CS605 Software Engineering-II
1 hour ago
Aijaz khan joined + M.Tariq Malik's group
1 hour ago
Ikra butt added a discussion to the group CS411 Visual Programming
1 hour ago
Ikra butt joined + M.Tariq Malik's group
1 hour ago
+ ՏhehαrZααD + replied to + ՏhehαrZααD +'s discussion Assalamu Alaikum
2 hours ago
Kashif Iqbal added a discussion to the group FIN624 Islamic Mode of Financing
2 hours ago
Kashif Iqbal joined + M.Tariq Malik's group
2 hours ago
Kashif Iqbal posted a discussion
2 hours ago
+ ! ! ! ! ! ! ! ! ! AG liked UMER UMER's discussion online earing
2 hours ago
+ ! ! ! ! ! ! ! ! ! AG liked +¢αяєℓєѕѕ gιяℓ's discussion چاۓ
2 hours ago
+ ! ! ! ! ! ! ! ! ! AG liked UMER UMER's discussion Modern Era and Our Obligations on Our Loved Ones
2 hours ago
+ ! ! ! ! ! ! ! ! ! AG liked Muhammad Ishtiaq's discussion Past Papers
2 hours ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service