1. In JSP page directive which attribute defines theMIME(Multipurpose
Internet Mail Extension) type of the HTTP response?
Correct : B. content type
2. A JSP page consists of which tags?
Correct : C. both a & b
3. What alternatives exist to embedding Java code directly within the HTML
markup of your JSP page?
Correct : C. moving the code into javabeans and servlets.
4. What type of scriptlet code is better-suited to being factored forward into a
servlet?
Correct : A. code that deals with logic that is common across requests.
5. URL encoding is the method of replacing all the spaces and other extra
characters into their corresponding _______ Characters?
Correct : A. hex
6. Which of the scripting of JSP not putting content into service method of the
converted servlet?
Correct : A. declarations
7. What requires less resources?
Correct : A. thread
8. What does not prevent JVM from terminating?
Correct : B. daemon thread
9. What decides thread priority?
Correct : D. thread scheduler
10. What should not be done to avoid deadlock?
Correct : C. execute foreign code while holding a lock
11. What is true about threading?
Correct : D. start() method creates new thread and calls code written in run() method
12. Which of the following is a correct constructor for thread?
Correct : A. thread(runnable a, string str)
13. Which of the following will ensure the thread will be in running state?
Correct : C. wait()
14. Which of these are types of multitasking?
Correct : C. process and thread based
15. What will happen if two thread of the same priority are called to be processed
simultaneously?
Correct : D. it is dependent on the operating system
16. In a RMI Client Program, what are the exceptions which might have to
handled?
Correct : D. all mentioned above
17. 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?
Correct : B. udp
18. An RMI Server is responsible for,
Correct : D. all mentioned above
19. In RMI Distributed object applications need to do?
Correct : D. all mentioned above
20. In RMI applications which program obtains a remote reference to one or
more remote objects on a server and then invokes methods on them?
Correct : B. client
21. Which package is used for Remote Method Invocation (RMI)?
Correct : D. java.rmi
22. Java supports RMI, RMI Stands for?
Correct : C. remote method invocation
23. Which is built on the top of socket programming?