MCQOPTIONS
Saved Bookmarks
This section includes 218 Mcqs, each offering curated multiple-choice questions to sharpen your BBA in Computer Applications knowledge and support exam preparation. Choose a topic below to get started.
| 101. |
Which methods are used to bind the objects on HttpSession instance and get the objects? |
| A. | setAttribute |
| B. | getAttribute |
| C. | Both A & B |
| D. | None of the above |
| Answer» D. None of the above | |
| 102. |
Component which additionally provides a pop-up date picker control for its enclosedinput field. |
| A. | clientDateValidator |
| B. | clientValidator |
| C. | dateValidator |
| D. | validator |
| Answer» B. clientValidator | |
| 103. |
Which type of ServletEngine is a server that includes built-in support for servlets? |
| A. | Add-on ServletEngin |
| B. | Embedded ServletEngine |
| C. | Standalone ServletEngine |
| D. | None of the above |
| Answer» D. None of the above | |
| 104. |
Web server is used for loading the init() method of servlet. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 105. |
Which of the following protocols is/are for splitting and sending packets to an addressacross a network? |
| A. | TCP/IP |
| B. | FTP |
| C. | SMTP |
| D. | UDP |
| Answer» B. FTP | |
| 106. |
Which object is created by the web container at time of deploying the project? |
| A. | ServletConfig |
| B. | ServletContext |
| C. | Both A & B |
| D. | None of the above |
| Answer» C. Both A & B | |
| 107. |
What are functions of Servlet container? |
| A. | Lifecycle management |
| B. | Communication Support |
| C. | Multithreading Support |
| D. | All of the above |
| Answer» E. | |
| 108. |
What alternatives exist to embedding Java code directly within the HTMLmarkup of your JSP page? |
| A. | moving the code into your session manager. |
| B. | moving the code into scriptlets. |
| C. | moving the code into javabeans and servlets. |
| D. | moving the code into a transaction manager. |
| Answer» D. moving the code into a transaction manager. | |
| 109. |
JSP includes a mechanism for defining …………………………. or custom tags. |
| A. | static attributes |
| B. | local attributes |
| C. | dynamic attributes |
| D. | global attributes |
| Answer» D. global attributes | |
| 110. |
Which of the scripting of JSP not putting content into service method of the convertedservlet? |
| A. | Declarations |
| B. | Scriptlets |
| C. | Expressions |
| D. | None of the above |
| Answer» D. None of the above | |
| 111. |
Which of the following is not a core component of Hibernate? |
| A. | JDBC |
| B. | SessionFactory |
| C. | Session |
| D. | Configuration |
| Answer» B. SessionFactory | |
| 112. |
What type of servlets use these methods doGet(), doPost(),doHead, doDelete(),doTrace()? |
| A. | Genereic Servlets |
| B. | HttpServlets |
| C. | All of the above |
| D. | None of the above |
| Answer» C. All of the above | |
| 113. |
A deployment descriptor describes |
| A. | Web component response settings |
| B. | Web component setting |
| C. | Web component request objects |
| D. | All of the above |
| Answer» C. Web component request objects | |
| 114. |
Which of these method of httpd class is used to write UrlCacheEntry object intolocal disk? |
| A. | writediskcache() |
| B. | writetodisk() |
| C. | writecache() |
| D. | writediskentry() |
| Answer» B. writetodisk() | |
| 115. |
Navigation in traditional JSF applications is handled by: |
| A. | linking directly linking to a resource |
| B. | commandLink |
| C. | invoking an action |
| D. | all of the mentioned |
| Answer» E. | |
| 116. |
Which of these method of DatagramPacket is used to find the length of bytearray? |
| A. | getnumber() |
| B. | length() |
| C. | length() |
| D. | getlength() |
| Answer» E. | |
| 117. |
Servlet technology is used to create web application |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 118. |
File extension of a view state’s name which is by default loaded by facelet page. |
| A. | .xml |
| B. | .hbm.xml |
| C. | .xhtml |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 119. |
Which attribute specifies a JSP page that should process any exceptions thrown but not caught in the current page? |
| A. | The ErrorPage Attribute |
| B. | The IsErrorPage Attribute |
| C. | Both A & B |
| D. | None of the above |
| Answer» B. The IsErrorPage Attribute | |
| 120. |
Which of the following is true about JDBC? |
| A. | The JDBC API is an API to access different relational databases. |
| B. | You use it to access relational databases without embedding a dependency on a specific database type in your code. |
| C. | JDBC stands for Java DataBase Connectivity. |
| D. | All of the above. |
| Answer» E. | |
| 121. |
Which result set generally does not show changes to the underlying databasethat are made while it is open. The membership, order, and column values ofrows are typically fixed when the result set is created? |
| A. | type_forward_only |
| B. | type_scroll_insensitive |
| C. | type_scroll_sensitive |
| D. | all mentioned above |
| Answer» C. type_scroll_sensitive | |
| 122. |
Which JSP Action tags is used to include the content of another resource,itMay be jsp, html or servlet? |
| A. | jsp:include |
| B. | jsp:forward |
| C. | jsp:plugin |
| D. | jsp:papam |
| Answer» B. jsp:forward | |
| 123. |
Which is the Microsoft solution for providing dynamic Web content? |
| A. | ASP |
| B. | JSP |
| C. | Both A and B |
| D. | None of the above |
| Answer» B. JSP | |
| 124. |
The values of and in web.xml file |
| A. | must be same |
| B. | must not be same |
| C. | may be same |
| D. | None of the above |
| Answer» D. None of the above | |
| 125. |
Which of the following is an advantage of the statement – Separation of business logicfrom JSP ? |
| A. | Custom Tags in JSP |
| B. | JSP Standard Tag Library |
| C. | All the above |
| D. | None of the above |
| Answer» B. JSP Standard Tag Library | |
| 126. |
Which is a one-way communication only between the client and the server and itis not a reliable and there is no confirmation regarding reaching the message tothe destination? |
| A. | tcp/ip |
| B. | udp |
| C. | both a & b |
| D. | none of the above |
| Answer» C. both a & b | |
| 127. |
Which object of HttpSession can be used to view and manipulate informationabout a session? |
| A. | session identifier |
| B. | creation time |
| C. | last accessed time |
| D. | all mentioned above |
| Answer» E. | |
| 128. |
Which is built on the top of socket programming? |
| A. | ejb |
| B. | rmi |
| C. | both a & b |
| D. | none of the above |
| Answer» C. both a & b | |
| 129. |
Java supports RMI, RMI Stands for? |
| A. | random method invocation |
| B. | remote memory interface |
| C. | remote method invocation |
| D. | random method invocation |
| Answer» D. random method invocation | |
| 130. |
Which package is used for Remote Method Invocation (RMI)? |
| A. | java.lang.rmi |
| B. | java.lang.reflect |
| C. | java.applet |
| D. | java.rmi |
| Answer» E. | |
| 131. |
In RMI Distributed object applications need to do? |
| A. | locate remote objects |
| B. | communicate with remote objects |
| C. | load class definitions for objects that are passed around |
| D. | all mentioned above |
| Answer» E. | |
| 132. |
An RMI Server is responsible for, |
| A. | creating an instance of the remote object |
| B. | exporting the remote object |
| C. | binding the instance of the remote object to the rmi registry |
| D. | all mentioned above |
| Answer» E. | |
| 133. |
In RMI applications which program obtains a remote reference to one or more remote objects on a server and then invokes methods on them? |
| A. | server |
| B. | client |
| C. | both a & b |
| D. | none of the above |
| Answer» C. both a & b | |
| 134. |
Which is a one-way communication only between the client and the server and it is not a reliable and there is no confirmation regarding reaching the message to the destination? |
| A. | tcp/ip |
| B. | udp |
| C. | both a & b |
| D. | none of the above |
| Answer» C. both a & b | |
| 135. |
In a RMI Client Program, what are the exceptions which might have to handled? |
| A. | remoteexception |
| B. | notboundexception |
| C. | malformedurlexception |
| D. | all mentioned above |
| Answer» E. | |
| 136. |
What will happen if two thread of the same priority are called to be processed simultaneously? |
| A. | anyone will be executed first lexographically |
| B. | both of them will be executed simultaneously |
| C. | none of them will be executed |
| D. | it is dependent on the operating system |
| Answer» E. | |
| 137. |
Which of these are types of multitasking? |
| A. | process based |
| B. | thread based |
| C. | process and thread based |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 138. |
Which of the following will ensure the thread will be in running state? |
| A. | yield() |
| B. | notify() |
| C. | wait() |
| D. | thread.killthread() |
| Answer» D. thread.killthread() | |
| 139. |
Which of the following is a correct constructor for thread? |
| A. | thread(runnable a, string str) |
| B. | thread(int priority) |
| C. | thread(runnable a, int priority) |
| D. | thread(runnable a, threadgroup t) |
| Answer» B. thread(int priority) | |
| 140. |
What is true about threading? |
| A. | run() method calls start() method and runs the code |
| B. | run() method creates new thread |
| C. | run() method can be called directly without start() method being called |
| D. | start() method creates new thread and calls code written in run() method |
| Answer» E. | |
| 141. |
What should not be done to avoid deadlock? |
| A. | avoid using multiple threads |
| B. | avoid hold several locks at once |
| C. | execute foreign code while holding a lock |
| D. | use interruptible locks |
| Answer» D. use interruptible locks | |
| 142. |
What does not prevent JVM from terminating? |
| A. | process |
| B. | daemon thread |
| C. | user thread |
| D. | jvm thread |
| Answer» C. user thread | |
| 143. |
What decides thread priority? |
| A. | process |
| B. | process scheduler |
| C. | thread |
| D. | thread scheduler |
| Answer» E. | |
| 144. |
Which of the scripting of JSP not putting content into service method of the converted servlet? |
| A. | declarations |
| B. | scriptlets |
| C. | expressions |
| D. | none of the above |
| Answer» B. scriptlets | |
| 145. |
What requires less resources? |
| A. | thread |
| B. | process |
| C. | thread and process |
| D. | neither thread nor process |
| Answer» B. process | |
| 146. |
URL encoding is the method of replacing all the spaces and other extra characters into their corresponding _______ Characters? |
| A. | hex |
| B. | binary |
| C. | octal |
| D. | decimal |
| Answer» B. binary | |
| 147. |
What type of scriptlet code is better-suited to being factored forward into a servlet? |
| A. | code that deals with logic that is common across requests. |
| B. | code that deals with logic that is vendor specific) |
| C. | code that deals with logic that relates to database access. |
| D. | code that deals with logic that relates to client scope. |
| Answer» B. code that deals with logic that is vendor specific) | |
| 148. |
A JSP page consists of which tags? |
| A. | html tags |
| B. | jsp tags |
| C. | both a & b |
| D. | none of the above |
| Answer» D. none of the above | |
| 149. |
In JSP page directive which attribute defines theMIME(Multipurpose Internet Mail Extension) type of the HTTP response? |
| A. | import |
| B. | content type |
| C. | extends |
| D. | info |
| Answer» C. extends | |
| 150. |
What alternatives exist to embedding Java code directly within the HTML markup of your JSP page? |
| A. | moving the code into your session manager. |
| B. | moving the code into scriptlets. |
| C. | moving the code into javabeans and servlets. |
| D. | moving the code into a transaction manager. |
| Answer» D. moving the code into a transaction manager. | |