0% found this document useful (0 votes)
22 views3 pages

Ajput 2

ajp

Uploaded by

devicol451
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views3 pages

Ajput 2

ajp

Uploaded by

devicol451
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Q.1.

Attempt The Following (Marks 20)


How many Ports of TCP/IP are reserved for specific Protocols?
1 a.10 b.1024
c.2048 d.512
The ______ package contains classes that help in connecting to a database, sending SQL
statements to the database and process the query request.
2 a. connection.sql b.db.sql
c. pkg.sql d. java.sql
Which of the following is the default HttpRequest method?
3 a. doGet( ) b.doPost( )
c. doTrace( ) d. doPut( )
Identify the proper syntax of doGet().
a. void doGet(HttpResponse res,HttpRequest req) throws IOException, ServletException
4 b. void doGet(HttpRequest req,HttpResponseres) throws IOException, ServletException
c. void doGet(HttpResponse res) throws IOException, ServletException
d. void doGet(HttpRequest req) throws IOException, ServletException
___is a small piece of information that is passed back & forth in HTTP request &
response.
5 a. Servlet b. Applet
c. Cookie d. Session
Which life cycle method is used to process a client’s request?
6 a. start() b. init( )
c. service() d. destroy( )
________ is necessary to implement Datagram.
7 a. DatagramPacket b. DatagramSocket
c. Both A & B d.None of A & B
Which of the following type of JDBC driver, uses database native protocol?
A - JDBC-ODBC Bridge plus ODBC driver
8 B - Native-API, partly Java driver
C - JDBC-Net, pure Java driver
D - Native-protocol, pure Java driver
The_________class is used to create TCP server.
9 a. Server b. Socket Server
c.Server Socket d. Socket
Which class/interface is used for an SQL statement that is executed frequently?
10 a. Statement b. Callable Statement
c. Prepared Statement d. None of the above
Which of the following method is used to perform DML statements in JDBC?
1. None
2. executeQuery()
11
3. executeUpdate()
4. execute()

A user types the URL http://www.msbte.com/result.php. Which request gets generated?


a. GET method b. POST method
12
c. HEAD method d. PUT method

Which method is used to specify before any lines that used the PrintWriter?
13 a. setPageType( ) b. setContextType( )
c. setContentType( ) d. setResponseType( )
What is the limit of data to be passed from HTML to doGet() ?
14 a. 8kb b. 1kb
c. 4kb d. 2kb
Which constructor of DatagramPacket class are used for receiving purpose?
a. DatagramPacket(byte data[ ], int size) DatagramPacket(byte data[ ], int size, int offset,
int port)
b. DatagramPacket(byte data[ ], int port) DatagramPacket(byte data[ ], int offset, int size
15
, int port)
c. DatagramPacket(byte data[ ], int size) DatagramPacket(byte data[ ], int size,
InetAddress ip, int port)
d. All of these
_____________ is a table of data which represents a data from table.
16 a. MetaData b. ResultSetMetaData
c. ResultSet d. Statement
JSP stands for _______.
17 a. Java Service Provider b. Java Server Path
c. Java Server Pages d. Java Server Program
What are the major components of the JDBC?
1. DriverManager, Driver, Connection, Statement, and ResultSet
2. DriverManager, Driver, Connection, and Statement
18
3. DriverManager, Statement, and ResultSet
4. DriverManager, Connection, Statement, and ResultSet

Public class DriverManager extends ____________


19 a. Object b. String
c. Connection d. Statement
JSP embeds __________ in ___________.
20 a. Servlet, HTML b. HTML, Java
c. HTML, Servlet d. Java, HTML

You might also like