- Type
- Quiz
- Course
- CS506 Web Design and Development
- Size
- PDF 951 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 12. Download the file for all 12 pages.
CS506 (WEB DESIGN AND DEVELOPMENT)
QUIZ SOLVED BY ZEESHAN( ZA ACADEMY )
In the context of HTTP Response Code, the values in 400s indicate that-----------------.
Answer: Error by client
Answer: web.xml
- When a thread is in “New state” during its life cycle, it is-----------------.
Answer: Just created 4) Web.xml is a------------.
Answer: Configuration file
Q5. Which of the following range of response code indicates that request was successful?
Answer: 200-299
Q6. Which of the following object contains information specific to a servlet?
Answer: ServletConfig 7) Which of the following range of response code signify error by server?
Answer: 500-599
Q8. From the following packages which one is used to write the servlets?
Answer: Javax
- addCookie() method of HTTPServletResponse takes-------------- as a parameter and adds it to
Answer: Cookie object 10) A servlet----------- during its initialize stage.
Answer: Loads resource/s 11) Which of the following folder contains configuration file?
Answer: WEB-INF 12) Choose correct integer value for predefined Thread Priority “Thread.MIN_PRIORITY” in Java.
Answer: 1 13) Web applications maintain the state of a user’s actions against multiple requests, because HTTP protocol is stateless.
Answer: True
- If attribute is “name” and value is “Ahmed” then the GET request will be--------.
15) The newly created thread can be moved to “Ready State” by calling------ method.
Answer: start() method
- Servlets are used to-------------.
Answer: Provide dynamic web contents which extend web servers
- Getrequest() method gets information from a client and postrequest() method posts data to a client.
Answer: False 18) Which of the following is NOT a part of HTTP request?
Answer: Status code
- Engine of the servlet is--------------- method.
Answer: service() method
- HTTP response code 404 indicates that ------------------.
Answer: Requested resource is not available. 21) Real world business objects are represented in-----------------.
Answer: Data Layer 22) Which of the following approach can used to create thread in java?
Answer: Inheritance
Q23. Which of the following is NOT true bout HTTP?
Answer: HTTP maintains user session between successive requests.
Q24. Which of the following is/are not correct about thread(s)?
Answer: Heavy weight
Related CS506 files
All CS506 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.