CS506 QUIZ NO 2 SOLVED 100% VERIFIED BY ADMIN (FINAL TERM SYLLABUS)
Q1: Which of the following range of response code signify error by server?
A) 200-299
B) 300-399
C) 400-499
D) 500-599 (100% Sure)
Q2: JVM assigns CPU to the threads based on __________.
A) Thread priorities (100% Sure)
B) System priorities
C) Collective priorities
D) Both system and Collective priorities
Q3: HttpSession stores session information in.
A) File system of client
B) File system of server
C) A cookie
D) A session object (100% Sure)
Q4: Hidden Forms contain the information that is needed to send to the
A) Cleint
B) Server (100% Sure)
C) Both server and client
D) Neither server nor client
Q5: getAttribute(String) extracts __________ stored value from a session object.
A) Subsequently
B) Currently
C) Previously (100% Sure)
D) Both Currently and Subsequently
Q6: Which of the following is NOT a part of HTTP request?
A) Request method
B) URI
C) Status Code (100% Sure)
D) Header fields
Q7: Which of the following range of response code indicates that request was successful?
A) 100-199
B) 200-299 (100% Sure)
C) 300-399
D) 400-499
Q8: Relationship between JSP and servlets is.
A) Servlets are built on JSP semantics and all servelts are compiled to JSP pages for runtime usage
B) JSP and servlets are unrealted technologies
C) 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
D) JSPs are built on servlets semantics and all JSp are compiled to servelts for runtime usage (100% Sure)
Q9: All __________ data is kept at the application server.
A) Dynamic
B) Static
C) Both dynamic and static (100% Sure)
D) Neither Static nor Dynamic
Q10: web.xml is a __________.
A) java file
B) configuration file (100% Sure)
C) jar file
D) servlet file