Skip to content
VUBuddy

CS506 Quiz 4 Jan 2026

Web Design and Development PDF 108 KBUpdated 23 Oct 2026
Quiz CS506 Quiz 4 Jan 2026 PDF 108 KB
vubuddy.com
Type
Quiz
Course
CS506 Web Design and Development
Size
PDF 108 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 108 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 2, 3, 4 of 15. Download the file for all 15 pages.

Quiz 1 - CS506 (Q1/20)

Question:

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

  1. ServletContext
  2. ServletConfig
  3. ServletRequest
  4. ServletResponse

Correct answer: ServletContext

Copied: 1/6/2026, 12:43:03 PM

Quiz 2 - CS506 (Q2/20)

Question:

Servlet mapping is defined in ________

A. web.xml

B. servlet C. html D. JSP Copied: 1/6/2026, 12:44:45 PM

Quiz 3 - CS506 (Q9/20)

Question:

Which of the following is responsible for handling user interactions and displaying data in a Java application?

  1. Persistence layer
  2. Data layer
  3. Presentation layer
  4. Business layer

Copied: 1/6/2026, 1:11:42 PM

Quiz 4 - CS506 (Q4/20)

Question:

What does getHeaderName("User-Agent") return if the "User-Agent" header exists and its value is "Mozilla/5.0"?

  1. null
  2. true
  3. An empty string
  4. Mozilla/5.0

Correct answer: Mozilla/5.0

Copied: 1/6/2026, 12:46:03 PM

Quiz 5 - CS506 (Q6/20)

Question:

Choose correct integer value for predefined Thread Priority " Thread.MIN_PRIORITY" in Java.

A. 1

B. 5 C. 7 D. 10 Copied: 1/6/2026, 1:10:37 PM

Quiz 6 - CS506 (Q6/20)

Question:

Which of the following folder contains configuration file?

  1. bin
  2. classes
  3. WEB-INF
  4. lib

Correct answer: WEB-INF

Copied: 1/6/2026, 12:47:09 PM

Quiz 7 - CS506 (Q7/20)

Question:

What does request.getCookies() return in Java servlets?

  1. The number of cookies sent by the client.
  2. A single Cookie object representing all cookies sent by the client.
  3. The expiration time of cookies sent by the client.
  4. An array of Cookie objects representing cookies sent by the client in the request.

Correct answer: An array of Cookie objects representing cookies sent by the client in the request.

Copied: 1/6/2026, 12:47:31 PM

Quiz 8 - CS506 (Q8/20)

Question:

What is the purpose of the transient keyword in Java serialization?

  1. It indicates that a class cannot be serialized.
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.