Latest:

Cluesbook




CS506-Web Design & Development Quiz, MCQS, Objective, Questions, Final Term

Share With Friends:

اَسْتَغْفِرُ اللهَ رَبِّىْ مِنْ كُلِّ ذَنْۢبٍ اَذْنَبْتُهٗ عَمَدًا اَوْ خَطَا ًٔ سِرًّا اَوْ عَلَانِيَةً وَّاَتُوْبُ اِلَيْهِ مِنَ الذَّنْۢبِ الَّذِیْٓ اَعْلَمُ وَ مِنَ الذَّنْۢبِ الَّذِىْ لَآ اَعْلَمُ اِنَّكَ اَنْتَ عَلَّامُ الْغُيُوْبِ وَ سَتَّارُ الْعُيُوْبِ و َغَفَّارُ الذُّنُوْبِ وَ لَا حَوْلَ وَلَا قُوَّةَ اِلَّا بِاللهِ الْعَلِىِّ الْعَظِيْمِؕ 

CS506 Web Design & Development Quiz MCQs Lecture 23-45

1. Which of the following interface needs to implement while creating threads?

  1. Serializable
  2. Runnable ✔
  3. ActionListener
  4. WindowListener

2. From the following which code can be used to create session object in the Servlet

  1. HttpSession session=req.getSession(true);
  2. HttpSession session=req.getSession(false);
  3. HttpSession session=req.getSession(1);
  4. HttpSession session=req.setSession(1); ✔

3. Servlet mapping is defined in ___.

  1. servlet
  2. web.xml ✔
  3. html
  4. JSP

4. “application” is a object of:

  1. ServletContext ✔
  2. HttpSession
  3. ServletConfig
  4. Both b and c

5. To  provide global control of JSP we use following tag:

  1. <%@ %> ✔
  2. <%–   %>
  3. <%!   %>
  4. <%=   %>

6. Which of the following statement is correct to assign maximum priority to thread “t2”?

  1. t2.setPriority(Thread.PRIORITY_MiX)
  2. t2.setPriority(Thread.PRIORITY_MAX)
  3. t2.setPriority(Thread.MAX_PRIORITY) ✔
  4. t2.setPriority(Thread.MIN_PRIORITY)

7. Which of the following range of response code indicates that request was successful?

  1. 100-199
  2. 200-299 ✔
  3. 300-399
  4. 400-499

8. From the following methods, which method cannot be overridden in the JSP page

  1. _jspService() ✔
  2. jspDestroy()
  3. jspInit()
  4. both b and c

9. Which of the following problem occurs with lower priority threads?

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

10. Packages are the way to organize files into different ___ according to their functionality, usability as well as the category they should belong to.

  1. Directories ✔
  2. Folders
  3. Libraries
  4. both b and c
Facebook
Twitter
LinkedIn
Pinterest
Telegram
Email
WhatsApp

Leave a Reply

Your email address will not be published. Required fields are marked *