JAVA Networking Set 2
On This Page
This set of Advanced JAVA Multiple Choice Questions & Answers (MCQs) focuses on JAVA Networking Set 2
Q1 | JDBC is a Java API that is used to connect and execute query to the database
- True
- False
- none
- all
Q2 | In the following JDBC drivers which is known as fully java driver?
- Native-API driver
- Network Protocol driver
- Thin driver
- Both B & C
Q3 | Which JDBC drivers will run your program?
- The JDBC-ODBC bridge
- The JDBC driver manager
- The JDBC driver test suite
- None of the above
Q4 | What is the reason that a java program cannot directly communicate with an ODBCdriver?
- ODBC written in C# language
- ODBC written in C language
- ODBC written in C++ language
- None of the above
Q5 | A leading database connectivity vendor, worked together to produce the ____.
- JDBC-ODBC Bridge
- JDBC Driver Test Suite
- Both A & B
- None of the above
Q6 | Which driver converts JDBC calls directly into the vendor-specific database protocol?
- Native - API driver
- Network Protocol driver
- Thin driver
- Both B & C
Q7 | Which models do the JDBC API support for the database access?
- Two-tier models
- Three-tier models
- Both A & B
- None of the above
Q8 | Which of the following JDBC drivers is known as a partially java driver?
- JDBC-ODBC bridge driver
- Native-API driver
- Network Protocol driver
- Thin driver
Q9 | The JDBC API is what allows access to a data source from a Java middle tier
- True
- False
- none
- all
Q10 | Which driver uses ODBC driver to connect to the database?
- JDBC-ODBC bridge driver
- Native - API driver
- Network Protocol driver
- Thin driver
Q11 | How many JDBC product components does the Java software provides?
- 3
- 2
- 4
- 5
Q12 | How many types of JDBC drivers are available?
- 3
- 4
- 2
- 5
Q13 | Which method is used for an SQL statement that is executed frequently?
- prepareStatement
- prepareCall
- createStatement
- None of the above
Q14 | How is the dynamic interception of requests and responses to transform the informationdone?
- servlet container
- servlet config
- servlet context
- servlet filter
Q15 | Which type of ServletEngine is a server that includes built-in support for servlets?
- Add-on ServletEngin
- Embedded ServletEngine
- Standalone ServletEngine
- None of the above
Q16 | What type of servlets use these methods doGet(), doPost(),doHead, doDelete(),doTrace()?
- Genereic Servlets
- HttpServlets
- All of the above
- None of the above
Q17 | Which cookie it is valid for single session only and it is removed each time when the usercloses the browser?
- Persistent cookie
- Non-persistent cookie
- All the above
- None of the above
Q18 | Sessions is a part of the SessionTracking and it is for maintaining the client state at serverside.
- True
- False
- none
- all
Q19 | When destroy() method of a filter is called?
- The destroy() method is called only once at the end of the life cycle of a filter
- The destroy() method is called after the filter has executed doFilter method
- The destroy() method is called only once at the begining of the life cycle of a filter
- The destroyer() method is called after the filter has executed
Q20 | Web server is used for loading the init() method of servlet.
- True
- False
- none
- all
Q21 | Servlets handle multiple simultaneous requests by using threads.
- True
- False
- none
- all
Q22 | Which method is used to send the same request and response objects to another servlet inRequestDispacher ?
- forward()
- sendRedirect()
- Both A & B
- None of the above
Q23 | The sendRedirect() method of HttpServletResponse interface can be used to redirectresponse to another resource, it may be servlet, jsp or html file
- True
- False
- none
- all
Q24 | Which packages represent interfaces and classes for servlet API?
- javax.servlet
- javax.servlet.http
- Both A & B
- None of the above
Q25 | Which class can handle any type of request so that it is protocol-independent?
- GenericServlet
- HttpServle
- Both A & B
- None of the above