3. File extension of a view state’s name which is by default loaded by facelet page.
Correct : C. .xhtml
4. Navigation in traditional JSF applications is handled by:
Correct : D. all of the mentioned
5. For cross field validation or some sort of barrier to ensure state before you start a
flow, we use.
Correct : A. FacesContext
6. Component which additionally provides a pop-up date picker control for its enclosed
input field.
Correct : A. clientDateValidator
7. Component which encloses command button.
Correct : C. validateAllInClick
8. Which of the following is not a core interface of Hibernate?
Correct : C. SessionManagement
9. Which of the following is not a core component of Hibernate?
Correct : A. JDBC
10. Is Session a thread-safe object?
Correct : B. False
11. SessionFactory is a thread-safe object.
Correct : A. True
12. Which of the following methods returns proxy object?
Correct : C. load()
13. Which of the following methods hits database always?
Correct : D. get()
14. Which of the following method is used inside session only?
Correct : B. update()
15. The SessionFactory is heavyweight object.
Correct : B. True
16. Which of the following is not a state of object in Hibernate?
Correct : A. Attached()
17. Which of the following is true about HQL?
Correct : D. All of the above.
18. Which of the following is not an inheritance mapping strategies?
Correct : D. Table per class
19. Which of the following is not an advantage of using Hibernate Query Language?
Correct : D. Difficult to implement
20. In which file database table configuration is stored?
Correct : B. .hbm
21. Which of the following is not an advantage of Hibernate Criteria API?
Correct : B. Cannot order the result set
22. What is the basic concept of Spring?
Correct : C. Dependency injection or Inversion of control
23. Which spring module provides the capability of DI or IOC?
Correct : B. Core container
24. What are beans in the concept of Spring or what are spring beans?
Correct : D. Any class that is managed by the container.
25. How does spring achieve DI or IOC?
Correct : A. Service locator pattern
26. Which interface in spring is responsible for Instantiating and managing the so called
Spring beans?
Correct : B. ApplicationContext
27. Beans can be created by which of the following properties?
Correct : D. It’s own constructor
28. Which attribute is used to specify class name of the bean?
Correct : C. class
29. Which of the following method can be used to used to instantiate a method?
Correct : A. static factory method
30. Which attribute is used to specify static factory-method?
Correct : A. factory-method
31. Purpose of Static Factory Method?
Correct : A. Static method to create an object
32. Which of the following contains both date and time?
Correct : D. java.util.datetime
33. Which of the following is advantage of using JDBC connection pool?
Correct : D. better performance
34. Which of the following is advantage of using PreparedStatement in Java?
Correct : C. prevents sql injection
35. Which one of the following contains date information?
Correct : A. java.sql.timestamp
36. What does setAutoCommit(false) do?
Correct : C. does not commit transweraction automatically after each query
37. Which of the following is used to call stored procedure?
Correct : C. callablestatment
38. Which of the following is method of JDBC batch process?
Correct : D. addbatch()
39. Which of the following is used to rollback a JDBC trAnsweraction?
Correct : A. rollback()
40. Which driver uses ODBC driver to connect to the database?
Correct : A. jdbc-odbc bridge driver
41. How many JDBC product components does the Java software provides?
Correct : A. 3
42. How many types of JDBC drivers are available?
Correct : B. 4
43. Which result set generally does not show changes to the underlying database
that are made while it is open. The membership, order, and column values of
rows are typically fixed when the result set is created?
Correct : B. type_scroll_insensitive
44. Which method is used for an SQL statement that is executed frequently?
Correct : A. prepare statement
45. What is used to execute parameterized query?
Correct : B. preparedstatement interface
46. Which JDBC product components does the Java software provide?
Correct : D. all mentioned above
47. JDBC stands for?
Correct : A. java database connectivity
48. Which of the following allows non repeatable read in JDBC Connection?
Correct : D. transweraction_repeatable_read
49. Which of the following statements is false as far as different type of
statements is concern in JDBC?
Correct : D. interim statement
50. Which of the following methods are needed for loading a database driver in
JDBC?
Correct : C. both a and b
51. Which of the following is false as far as type 4 driver is concern?
Correct : D. type 4 drivers can not be used with netscape
52. Which driver is efficient and always preferable for using JDBC applications?
Correct : A. type – 4
53. JDBC facilitates to store the java objects by using which of the methods of
PreparedStatement
setObject () 2. setBlob() 3. setClob()
Correct : B. 1,2,3
54. The JDBC-ODBC bridge is
Correct : B. multithreaded
55. All raw data types (including binary documents or images) should be read and
uploaded to the database as an array of
Correct : A. byte
56. The class javA)sql.Timestamp has its super class as
Correct : B. java)util.date
57. BLOB, CLOB, ARRAY and REF type columns can be updated in
Correct : D. jdbc 3.0
58. Which of the following methods finds the maximum number of connections
that a specific driver can obtain?
Correct : C. databasemetadata)getmaxconnections
59. When the message “No Suitable Driver” occurs?
Correct : C. when the jdbc database url passed is not constructed properly
60. Which driver is called as thin-driver in JDBC?
Correct : A. type-4 driver
61. How many trAnsweraction isolation levels are defined in javA)sql.Connection
interface?
Correct : C. 5
62. Which method is used to perform DML statements in JDBC?
Correct : C. executeupdate()
63. What is the disadvantage of Type-4 Native-Protocol Driver?
Correct : A. at client side, a separate driver is needed for each database.
64. TCP,FTP,Telnet,SMTP are example of?
Correct : C. protocol
65. In Inetaddress class which method returns the host name of IP address?
Correct : A. public string gethostname()
66. Show some networking terminology given below?
Correct : A. all
67. Which classes are used for connection less socket programming?
Correct : C. both a and b
68. how many ports TCP/IP are reserved for specific protocol?
Correct : B. 1024
69. how many bits are in a single IP address?
Correct : C. 32
70. Which of these class is used to encapsulate IP address and DNS?
Correct : C. inetaddress
71. Which of these is return type of getAddress method of DatagramPacket class?
Correct : B. getaddress()
72. Which of these method of DatagramPacket is used to find port number?
Correct : A. port()
73. Which of these class is necessary to implement datagrams?
Correct : C. all of the mentioned
74. Which of these method of DatagramPacket is used to find the port number?
Correct : A. port()
75. Which of these method of DatagramPacket is used to obtain the byte array of
data contained in a datagram?
Correct : A. getdata()
76. Which of these method of DatagramPacket is used to find the length of byte
array?
Correct : D. getlength()
77. Which of these method is used to start a server thread?
Correct : A. run()
78. Which of these method is called when http daemon is acting like a normal web
server?
Correct : C. handleget()
79. Which of these methods of httpd class is used to read data from the stream?
Correct : D. getrawrequest()
80. Which of these method of httpd class is used to get report on each hit to HTTP
server?
Correct : B. logentry()
81. Which of these method is used to find a URL from the cache of httpd?
Correct : C. servefromcache()
82. Which of these variables stores the number of hits that are successfully served
out of cache?
Correct : D. hits.to.cache
83. Which of these method of httpd class is used to write UrlCacheEntry object into
local disk?
Correct : A. writediskcache()
84. Which of these is an instance variable of class httpd?
Correct : D. all of the mentioned
85. Which of these is an instance variable of httpd that is a Hashtable?
Correct : C. log
86. Which of these exception is thrown by URL class’s constructors?
Correct : C. malformedurlexception
87. Which of these methods is used to know host of an URL?
Correct : B. gethost()
88. Which of these methods is used to know the full URL of an URL object?
Correct : D. toexternalform()
89. Which of these class is used to access actual bits or content information of a
URL?
Correct : D. all of the mentioned
90. Which object of HttpSession can be used to view and manipulate information
about a session?
Correct : D. all mentioned above
91. Which of these ways used to communicate from an applet to servlet?
Correct : D. all mentioned above
92. Which methods are used to bind the objects on HttpSession instance andget
the objects?
Correct : C. both a & b
93. Which type of ServletEngine is a server that includes built-in support for
servlets?
Correct : C. standalone servletengine
94. What type of servlets use these methods doGet(), doPost(),doHead, doDelete(),
doTrace()?
Correct : B. httpservlets
95. Which cookie it is valid for single session only and it is removed each time
when the user closes the browser?
Correct : B. non-persistent cookie
96. Which action tags are used in JSP for developing web application with Java
Bean?
Correct : D. both b & c
97. Which technology do we mix our business logic with the presentation logic?
Correct : A. servlet
98. Which tag is used to execute java source code in JSP?
Correct : B. scriptlet tag
99. Which JSP Action tags is used to include the content of another resource,it
May be jsp, html or servlet?
Correct : A. jsp:include
100. In JSP how many ways are there to perform exception handling?