how are you. As we all knows that this the age of technology and invention and every one interested in boosting up his resources and inflows. Here is an exciting opportunity in which you can generate cash by spending only 5 minutes and posting just one add daily on "Zeekrewards.com". All the details about the working and rewards offered by the company is provided in the attached file which must be study well before joining this amazing chain of cash reward system. you can increase your revenue by making your friends as members of the company but don ' forget to be member of this system by following link:
https://www.zeekrewards.com/securesignup.asp?username=qaiser2012
Qaiser Rasul
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
--
Zindagi mein 2 Logo ka buhat khayal rahkooooIst woh jiss ney tumhari jeet ke Liye buhat kuch hara hoo (Father)
2nd woh jiss ko tum ney har dukh me pukaara hoo (Mother)Regards,Umair Saulat
--
Please visit http://vusr.net for Old and Latest Papers, Assignments, Quiz and GDBs.
http://VUSR.net The ultimate VU Study Resource
You received this message because you are subscribed to the Google
Groups "VUSR" group.
To unsubscribe
vusr+unsubscribe@googlegroups.com
To Visit Group Home Page
http://groups.google.com/group/vusr?hl=en?hl=en
--
Please visit http://vusr.net for Old and Latest Papers, Assignments, Quiz and GDBs.
http://VUSR.net The ultimate VU Study Resource
You received this message because you are subscribed to the Google
Groups "VUSR" group.
To unsubscribe
vusr+unsubscribe@googlegroups.com
To Visit Group Home Page
http://groups.google.com/group/vusr?hl=en?hl=en
No comments:
Post a Comment