| | | | MCQ Tutorial - JAVA->SERVLET | | | | 1.) The Java __________ specification defines an application programming interface for communication between the Web server and the application program. | | Options are: | | A.) Program
| | B.) Servlet
| | C.) Randomise
| | D.) Server
| | Correct Option: B | | | | | | | 2.) The doGet() method in the example extracts values of the parameter’s type and number by using __________
| | Options are: | | A.) responce.getAttribute()
| | B.) responce.getParameter()
| | C.) request.getParameter()
| | D.) request.setParameter()
| | Correct Option: C | | | | | | | 3.) How many JDBC driver types does Sun define? | | Options are: | | A.) One
| | B.) Two
| | C.) Four
| | D.) Three
| | Correct Option: C | | | | | | | 4.) Which JDBC driver Type(s) can be used in either applet or servlet code? | | Options are: | | A.) Both Type 1 and Type 2
| | B.) Both Type 3 and Type 4
| | C.) Type 4 only
| | D.) Both Type 1 and Type 3
| | Correct Option: B | | | | | | | 5.) A JSP is transformed into a(n): | | Options are: | | A.) Neither JSP or Applet
| | B.) Java Applet
| | C.) Either JSP or Applet
| | D.) Java Servlet
| | Correct Option: D | | | | | | | | | | | |