Skip to content
VUBuddy

CS506 Solved Quiz 3 by Sir Zeeshan

Web Design and Development PDF 951 KBUpdated 23 Oct 2026
Quiz CS506 Solved Quiz 3 by Sir Zeeshan PDF 951 KB
vubuddy.com
Type
Quiz
Course
CS506 Web Design and Development
Size
PDF 951 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 951 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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

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

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

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

  1. Servlets are used to-------------.

Answer: Provide dynamic web contents which extend web servers

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

  1. Engine of the servlet is--------------- method.

Answer: service() method

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

All CS506 files →
CS506 Web Design and Development All CS506 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.