VU Final Term Past Papers
197 solved final term past paper MCQs for CS506 (Web Design and Development) at Virtual University, each with the correct answer marked. Use them to learn the VU question style and test your recall. An independent study tool — not affiliated with VU.
Prefer a summary first? Read the CS506 final term handout.
Q1. Question:4 The newly created thread can be moved to “ready state” by calling------------ ----method
Q2. Question:7 response code 403 indicates that-----------
Q3. Question:8 When a thread is in “new state” during its lifecycle, it is--------------
Q4. Question:10 Which of the following is not the stage of servlet lifecycle?
Q5. Question:12 At servlet service stage ,webserver invokes ------------ method
Q6. Question:13 Choose correct line od code to start a thread ‘t’ in java
Q7. Question:14 response code 401 indicates that
Q8. Question:17 In get request type, attribute-value pair is attached after --------------- with requested url
Q9. Question:18 In web.xml, root tag -------------------- represents web application
Q10. Question:19 Which of the following method allows any other thread of same priority to execute?
Q11. Question:20 In ------------- state, thread is assigned a processor to run
Q12. Question:22 Which of the following range of response code signify error by server
Q13. Question:23 To compile a servlet(e.gmyservlet.java) ----------------- command is used in command prompt
Q14. Question:25 The -------------- method is used when one thread wants to wait for another thread’s run method to compile its execution
Q15. Question:26 In the context of servlet mapping in web.xml, url is provided in ------------- tag
Q16. Question:55 From the following methods, which method cannot be overridden in the JSP
Q17. Question:69 Which of the following method allows any other thread of same priority to execute?
Q18. Question:78 Which of the following method is called only once during life cycle of Servlet?
Q19. Question:95 Which of the following method needs to override while handling threads in java?
Q20. Question:100 From following methods; which method is not a part of the JSP life cycle?
Q21. Question:119 . Entire JSP page gets translated into a servlet .
Q22. Question:120 A bean class have a zero argument constructor.
Q23. Question:121 . Layers represent the _ view of application.
Q24. Question:127 Initialization parameters of a servlet are defined in file.
Q25. Question:128 On every request from the client, the server creates a new _ and calls the _ method.
Q26. Question:133 . UDDI stands for
Q27. Question:136 DSN stands for .
Q28. Question:137 From following functions which function is invoked first?
Q29. Question:138 There is/are _ form(s) of response redirection.
Q30. Question:140 Expression is a code fragment which returns .
Q31. Question:142 The sleep(int time) method causes the currently executing thread to wait for the time specified in --------------
Q32. Question:144 CREATE TABLE, DROP TABLE, and ALTER TABLE etc are --------- --.
Q33. Question:182 Which of the following function will be used to register event handler with events generator (button)?
Q34. Question:198 Which of the following methods are invoked by the AWT to support paint and repaint operations?
Q35. Question:219 Choose the correct statement by which thread ‘t’ causes currently executing thread to block until thread ‘t’ finishes its run method: o t.sleep o t.start
Q36. Question:240 is NOT the type of request. o Delete
Q37. Question:241 Which of the following range of response codes indicates that the request was successfull?
Q38. Question:242 Real world business objects are represented in .
Q39. Question:243 Choose correct integer value for predefined Thread Priority “Thread.MAX_PRIORITY” in java.
Q40. Question:244 Which of the following architecture introduces a controller?
Q41. Question:244 A single page is doing everything that is really a best approach while making of webapplication.
Q42. Question:245 There is no upper limit on the number of layers for an application.
Q43. Question:246 Which of the following Java Bean’s scope attribute has local value?
Q44. Question:247 By means of Page Directive, a JSP can be given the responsibility of an error
Q45. Question:248 A separate controller is a part of which of the following approach?
Q46. Question:248 Which of the following Java/J2EE technology can be used for client presentation layer?
Q47. Question:249 In layers architecture each layer CANNOT be further break down into several layers.
Q48. Question:250 JSP forward action element is used to forward request to another resource.
Q49. Question:251 JSP forward action element is used to include files at request time.
Q50. Question:252 Which of the following is true about simple tag in JSP?
Q51. Question:253 In layered architecture, the separation of concerns maximizes the impact of addingservices/features to an application.
Q52. Question:254 Which of the following layers provides a user interface to the client/user to interact with theapplication?
Q53. Question:255 In MVC Model 1 architecture, the JSP page alone is responsible for processing the incomingrequest and replying back to the client.
Q54. Question:256 A Layer represents the view of an application.
Q55. Question:257 Which of the following Java /J2EE technology can be used for BusinessLayer?
Q56. Question:258 ServletsWhich of the following information is required by the JSP containers?
Q57. Question:259 Enterprise JavaBeans (EJB) interacts with the Database or information system to store andretrieve data.
Q58. Question:260 In context of JSP custom tag, a simple tag also has a body.
Q59. Question:260 Which of the following is true about tag with attributes in JSP?
Q60. Question:261 Is it true that JavaBean class CANNOT be easily reused and
Q61. Question:262 The correct way to declare a page as an error page in JSP is:
Q62. Question:263 The correct way to define a JSP include action element is:
Q63. Question:263 A java class that follows certain design conventions is called
Q64. Question:265 Is it true that a JavaBean class can have any public instance variables/attributes?
Q65. Question:266 With custom tags, it is possible for web page designers to use complex functionality withoutknowing any Java.
Q66. Question:267 Which of the following approach is also called page-with-bean approach.
Q67. Question:268 A JavaBean class must have a zero argument constructor.
Q68. Question:270 In page-with-Bean (MVC Model1) approach all the business logic goes into .
Q69. Question:271 Tag Library Descriptor (.tld) file is a simple text base document.
Q70. False Question:273 Is it true that Enterprise application need to support multiple types of users with multipletypes of interfaces ?
Q71. Question:274 An error JSP is called by the web server when an uncaught exception gets occurred.
Q72. Question:275 In layered structure each layer cannot be further breakdown into further layers .
Q73. Question:276 In context of JSP custom tag, is it true that a “Tag with body” must have one or moreattribute.
Q74. Question:277 Which of the following choices is the best choice as a controller in MVC ModelArchitecture?
Q75. Question:279 In context of JSP custom tags, is it true that a “Tag with Attributes” does NOT have a body?
Q76. Question:280 Which of the following is not true regarding layers?
Q77. Which of the following is a general purpose container?
Q78. Mouse events can be trapped for ________ GUI component.
Q79. DSN stands for ___________.
Q80. Question:11 Request and response of servlet are handles at---------------- stage
Q81. Question:16 Choose correct line of code to inherit a worker class from thread class in java
Q82. Question:21 Which of the following interface needs to implement while creating threads?
Q83. Question:134 Managed Beans have _ Model
Q84. Question:269 In a JavaBean class, private values should be accessed through setters/getters.
Q85. Database System Name Simple Name Question:137 From following functions which function is invoked first?
Q86. Which of the following method call causes the currently executing thread to return to Ready state?
Q87. Which of the following problem occurs with lower priority threads?
Q88. Which of the following Environment variable tells the system about the root directory of TOMCAT?
Q89. Which of the following method takes the place of constructor in an Applet?
Q90. Which of the following is NOT a method of ResulSet object?
Q91. One application has _________ servlet context(s).
Q92. In packages, we organize files into different directories according to their ____________.
Q93. Entire JSP page gets translated into a servlet ____________.
Q94. A bean class ___________ be serializable.
Q95. JSP action elements allow us to work with _____________.
Q96. MVC stands for _____________.
Q97. Layers represent the _____________ view of application.
Q98. Tiers represent the _____________ view of application.
Q99. Managed Bean is JavaBeans which are defined in ------------------
Q100. UDDI stands for
Q101. _____________ is a standard web based application framework.
Q102. Which of the following component is/are used in directory Structure of web components?
Q103. Which of the following is a correct order for Bean scope in JSP page from most visible to least visible?
Q104. Which of the following is not included in simple tag while creating JSP custom tags?
Q105. AWT is also called ______________.
Q106. Which of the following is NOT a standard method called as a part of the JSP life cycle?
Q107. Initialization parameters of a servlet are defined in __________ file.
Q108. Unpack directory structure of J2EE web application is __________
Q109. Which of the following directory is the top level TOMCAT directory that contains all the application deployed on web server?
Q110. Servlet mapping of a servlet is defined in _____________ file.
Q111. A --------in HashMap is associated with each object that is stored.
Q112. Which of the following must be used to compare the values of two strings?
Q113. Port is a transport address to which processes can ________ for connections request.
Q114. In which file do we define a servlet mapping?
Q115. Which of the following is appropriate for Page-with-Bean approach?
Q116. From the Following; which we don’t include in simple tag while creating JSP custom tags:
Q117. From following; which is the main reason that enters a thread into dead state:
Q118. From the following; which approach is used in java to create threads,
Q119. From the following which one is not a built-in validator?
Q120. ------------- can be used to specify dynamic attribute values for JSTL actions without using full-blown programming language.
Showing the first 120 of 197 MCQs.