AJP-Test 2 Question Bank
AJP-Test 2 Question Bank
AJP-Test 2 Question Bank
****************************************************************
Q11) What is the limit of data to be passed from HTML to doGet() __________
a) 8KB b) 1KB c) 4KB d) 2KB
Q12) Which of the following is the default HttpRequest method? _____________
a) doGet() b) doPost() c) doTrace() d) doPut()
Q13) Servlet Lifecycle has _______states
a) 2 b) 3 c) 4 d) 5
Q14) Which of the following is not a type of JDBC driver? __________
a) 100% pure java driver
e) b) JDBC- net pure java driver
b) c) JDBC- native API driver
c) JDBC – native pure java driver
Q15) What is purpose of next() method __________
a) To retain the next element in a series
e) To retain next table
b) To retain next record in a series
c) None of the above
Q16) The_______ package contains classes that help in connecting to a database, sending SQL
statements to the database and process the query request _______
a) Connection.sql b) Db.sql c) Pkg.sql d) javax.sql
Q17) ODBC minimum SQL grammar contains_______
a) Stored procedure
b) Data,time and timestamp only
c) Create or drop view
d) Insert, update, delete only
Q18) The syntax to create a table named “Course” should begin with _________
a) create new table course
b) b) create table course
c) table course create
d) new table course
Q19) DELETE statement of SQL is executed by _______
a) execute() b) executeQuery() c) executeUpdate() d) executeDelete()
Q20) ________ is a table of data which represents a data from table
a) MetaData b) ResultSetMetaData c) ResultSet d) Statement
Q1) Which of the following is not a type of JDBC driver? __________
a) 100% pure java driver
b) JDBC- net pure java driver
c) JDBC- native API driver
d) JDBC – native pure java driver
Q2) What is purpose of next() method __________
a) To retain the next element in a series
b) To retain next table
c) To retain next record in a series
d) None of the above
Q3) The_______ package contains classes that help in connecting to a database, sending SQL statements
to the database and process the query request _______
a) Connection.sql b) Db.sql c) Pkg.sql d) javax.sql
Q4) ODBC minimum SQL grammar contains________
a) Stored procedure
b) Data,time and timestamp only
c) Create or drop view
d) Insert, update, delete only
Q5) The syntax to create a table named “Course” should begin with _________
a) create new table course
b) create table course
c) table course create
d)new table course
Q6) DELETE statement of SQL is executed by _______
a) execute() b) executeQuery() c) executeUpdate() d) executeDelete()
Q7) ________ is a table of data which represents a data from table
a) MetaData b) ResultSetMetaData c) ResultSet d) Statement
*****************************************************
Q1) What is the limit of data to be passed from HTML to doGet() __________
a) 8KB b) 1KB c) 4KB d) 2KB
Q2) Which of the following is the default HttpRequest method ? _____________
a) doGet() b) doPost() c) doTrace() d) doPut()
Q3) Servlet Lifecycle has _______states
a) 2 b) 3 c) 4 d) 5
Q4) Which of the following is not a type of JDBC driver? __________
a) 100% pure java driver
b) JDBC- net pure java driver
c) JDBC- native API driver
d) JDBC – native pure java driver
Q5) What is purpose of next() method __________
a) To retain the next element in a series
b) To retain next table
c) To retain next record in a series
d) None of the above
Q6) The_______ package contains classes that help in connecting to a database, sending SQL statements
to the database and process the query request _______
a) Connection.sql b) Db.sql c) Pkg.sql d) javax.sql
Q7) Which life cycle method is used to process client’s request _________
a) start() b) init() c) service() d) destroy()
Q8) _______is used to read data from a client request
a) ServletResponse b)ServletRequest c) Servlet d) ServletConfig
Q9) JSP stands for ___________
a) Java Service Provider b)Java Server Path c) Java Server Pages d) Java Server Program
16. How many JDBC driver types are available by sun Microsystem?
a) 6
b) 4
c) 5
d) 3
20. Which JDBC driver Types are used for over communications
networks?
a) Type 2
b) Type 3
c) Type 4
d) Both Type 3 and Type 4
1.In the _______ method of servlet connection is created.
a) destroy()
b) service()
c) init()
d) connect()
11. servletrunner utility tool listens on ______ port for incoming client
requests.
a) 80
b) 21
c) 53
d) 8080