Ajp CT 2 QB

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

CLASS TEST-II

QUESTION BANK (AJP)

1) Which IP address is multicast IP address.


a. 192.168.2.32 b. 235.55.45.2
c. 12.22.1.2 d. None of these

2) How many ports of TCP/IP are reserved for specific protocols.


a. 10 b. 1024 c. 2048 d. 512

3) How many bits are in a single IP address.


a. 8 b. 16 c. 32 d. 64

4) What is the purpose of the "URLConnection" class in Java.


a. To represent a URL connection b. To establish a secure SSL connection
c. To handle HTTP requests and responses d. To encode and decode URLs

5) Which Java class is used to represent an IP address.


a. IPAdress b. InetAddress c. IPHost d. HostAddress

6) What does the java.net.InetAddress class represent.


a. Socket b. IP Address
c. Protocol d. MAC Address

7) Which of this package contains classes and interfaces for networking.


a. java.io b. java.util c. java.net d. javax.swing

8) Which is main component of JDBC API.


a. DriverManager b. Driver
c. Connection d. All of these

9) What does JDBC stand for.


a. Java Database Control b. Java Database Connectivity
c. Java Data Binding Connector d. Java Database Console

10) Which package in Java contains the JDBC classes.


a. java.sql b. java.jdbc
c. java.db d. java.connection

11) Which of the following is used to execute SQL queries in JDBC.


a. DriverManager b. Connection
c. ResultSet d. PreparedStatement

12) In JDBC _____ imports all Java classes that are concern with Database connectivity.
a. javax.sql b.java.mysql c.java.sql d.com.sql
13) Which of the following is not a JDBC driver.
a. MySQL Connector/J b. PostgreSQL JDBC Driver
c. Microsoft SQL Server JDBC Driver d. ODBC Driver

14) How many Result sets available with the JDBC 2.0 core API.
a. 2 b. 3 c. 4 d. 5

15) The JDBC API has always supported persistent storage of objects defined in the Java programming
language through the methods getObject and setObject.
a. True b. False

16) In JDBC _____ imports all Java classes that are concern with Database connectivity.
a. javax.sql b. java.mysql c. java.sql d. com.sql

You might also like