MCQOPTIONS
Saved Bookmarks
This section includes 13 Mcqs, each offering curated multiple-choice questions to sharpen your Master of Computer Applications (MCA) knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which one of the following objects is passed to a Java Bean when one of its properties is set via a JSP action? |
| A. | Servlet Request |
| B. | Http Servlet Request |
| C. | Servlet Response |
| D. | Http Servlet Response |
| Answer» D. Http Servlet Response | |
| 2. |
Which of the following is not an implicit object in JSP? I. Request. II. Session. III. Vector. IV. In. |
| A. | Both (I) and (II) above |
| B. | Both (II) and (III) above |
| C. | Both (I) and (III) above |
| D. | Both (III) and (IV) above. |
| Answer» E. | |
| 3. |
A message driven bean is like statefull session bean that encapsulates the business logic and doesn't maintain state. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» C. none | |
| 4. |
Which of the methods should be implemented if any class implements the Runnable interface? |
| A. | start() |
| B. | run() |
| C. | wait() |
| D. | notify() and notifyAll() |
| Answer» C. wait() | |
| 5. |
Choose the incorrect statement from the following about Home methods in a bean class for CMP (Container Managed Persistence). |
| A. | The throws clause of the method may include the java.rmi.RemoteException. |
| B. | Relationships must not be accessed by the method |
| C. | The persistence state of the bean must not be accessed by the method |
| D. | The static declaration can not be done for the method. |
| Answer» B. Relationships must not be accessed by the method | |
| 6. |
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» C. Both A & B | |
| 7. |
How many jsp implicit objects are there and these objects are created by the web container that are available to all the jsp pages? |
| A. | 8 |
| B. | 9 |
| C. | 10 |
| D. | 7 |
| Answer» C. 10 | |
| 8. |
Which method of the request object is used to extract values of the input fields in a form when it is submitted? |
| A. | getParameter |
| B. | getParameterNames |
| C. | getValues |
| D. | putValues |
| Answer» B. getParameterNames | |
| 9. |
Which of the following EJB has no state? i. Message-Driven Bean. ii. BMP Entity Bean. iii. Stateless Session Bean. iv. Stateful Session Bean. |
| A. | Both (I) and (II) above |
| B. | Both (II) and (III) above |
| C. | Both (III) and (IV) above |
| D. | Both (I) and (III) above. |
| Answer» E. | |
| 10. |
Which of the following distributed object technology is/are not included in Java? I. CORBA. II. DCOM. III. RMI. IV. EJB. |
| A. | Only (I) above |
| B. | Only (II) above |
| C. | Only (III) above |
| D. | Only (IV) above |
| Answer» C. Only (III) above | |
| 11. |
Which of the following is not a container for EJB? I. Internet Information Server. II. Java System Application Server. III. Tomcat. IV. WebLogic. |
| A. | Both (I) and (II) above |
| B. | Both (II) and (III) above |
| C. | Both (III) and (IV) above |
| D. | Both (I) and (III) above. |
| Answer» E. | |
| 12. |
Which of the following is/are true for JSP technology? I. It is persistent. II. Platform independent. III. Browser executes the code. |
| A. | Only (I) above |
| B. | Only (II) above |
| C. | Both (I) and (II) above |
| D. | Both (II) and (III) above |
| Answer» D. Both (II) and (III) above | |
| 13. |
Which of the following statements accurately describe the use of access modifiers within a class definition? |
| A. | They can be applied to both data & methods |
| B. | They must precede a class's data variables or methods |
| C. | They can appear in any order |
| D. | All of above |
| Answer» E. | |