Skip to content
VUBuddy

CS506 Quiz 3 Set 2 by VU Topper RM

Web Design and Development PDF 838 KBUpdated 23 Oct 2026
Quiz CS506 Quiz 3 Set 2 by VU Topper RM PDF 838 KB
vubuddy.com
Type
Quiz
Course
CS506 Web Design and Development
Size
PDF 838 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 838 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 48. Download the file for all 48 pages.

Q1. _________________ is NOT the type of HTTP request. (01 marks)

  1. Delete
  2. Update
  3. Post
  4. Get

Correct answer: Update

Q2. Timers are constructed by specifying both a delay parameter and a/an _________ Listener. (01 marks)

  1. Key
  2. Mouse
  3. Action Page 179
  4. Window

Correct answer: Action Page 179

Q3. CGI (Common Gateway Interface) was widely used for generating ________ (01 marks)

  1. Static web content
  2. Mobile application
  3. Desktop application
  4. Dynamic web content Page 245

Correct answer: Dynamic web content Page 245

Q4. FTP (File Transmission Protocol) works on _________ port. (01 marks)

  1. 21 Page 193
  2. 23
  3. 80
  4. 84

Correct answer: 21 Page 193

Q5. In the context of Java Thread, sleep() method throws __________ exception. (01 marks)

  1. Interrupted Page 233
  2. Input output
  3. File not found
  4. Index out of bound

Correct answer: Interrupted Page 233

Q6. By implementing this interface, a class declares that it is willing to be ________ by automatic serialization machinery. (01 marks)

  1. Read Page 203
  2. Decode
  3. Checked
  4. Destroyed

Correct answer: Read Page 203

Q7. Which of the following range of response code signify error by server? (01 marks)

  1. 200-299
  2. 300-399
  3. 500-599 Page 232
  4. 400-499

Correct answer: 500-599 Page 232

Q8. Which of the following methods takes the place of constructor in an Applet? (01 marks)

  1. run()
  2. start()
  3. init() Page 184
  4. main()

Correct answer: init() Page 184

Q9. How many ports are available for TCP socket? (01 marks)

  1. 64
  2. 128
  3. 64k Page 193
  4. 128k

Correct answer: 64k Page 193

Q10. int i = (int)( Math.random() * 5 ); // will generate random numbers between__________ . (01 marks)

  1. 0 & 5
  2. 1 & 4
  3. 1 & 5
  4. 0 & 4 Page 187

Correct answer: 0 & 4 Page 187

Q11. Which of the following is NOT a part of HTTP request? (01 marks)

  1. Header fields
  2. URI
  3. Request method
  4. Status code

Correct answer: Status code

Q12. Which of the following problem occurs with lower priority threads? (01 marks)

  1. Process death
  2. Starvation Page 218
  3. Race condition
  4. Average waiting time

Correct answer: Starvation Page 218

Q13. Which of the following method is called only once during life cycle of Servlet? (01 marks)

  1. init() Page 184
  2. service()
  3. destroy()
  4. start()

Correct answer: init() Page 184

Q14. Which of the following approach can used to create threads in java? (01 marks)

  1. Inheritance Page 212
  2. Abstraction
  3. Composition
  4. Polymorphism

Correct answer: Inheritance Page 212

Q15. Choose correct integer value for predefined Thread Priority “Thread.MAX_PRIORITY” in java. (01 marks)

  1. 1
  2. 5
  3. 10 Page 216
  4. 7

Correct answer: 10 Page 216

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.