Java MCQ Unit 5
Java MCQ Unit 5
NO QUESTION
What does DBMS stand for?
1
Which of the following is a type of DBMS?
2
What is a relational database?
3
Which SQL command is used to retrieve data?
4
What is the purpose of the INSERT statement in
5 SQL?
Which SQL statement is used to modify existing
6 data?
Which command is used to delete records from a
7 table?
What does SQL stand for?
8
What is a primary key in a database?
9
Which SQL keyword is used to filter records?
10
What is JDBC?
11
Which method is used to establish a connection with
12 the database in JDBC?
D Hierarchical
A SELECT
C MODIFY
B REMOVE
A WHERE
A DriverManager.getConnection()
A Statement
A Connection.createStatement()
A close()
B statement.executeInsert()
B Sorts data
C REMOVE TABLE
B INNER JOIN
A VARCHAR
A ORDER BY
D Type 1
A COUNT()
C To sort results
A ALTER TABLE
A try-catch
A MAX()
A CREATE INDEX
A AVG()
A A key made of two or more columns
A executeUpdate()
A CONCAT()
A A virtual table
B RENAME COLUMN
D getMetaData()
A CREATE USER
C INT
B READ UNCOMMITTED
Relational Object-oriented
GET FETCH
CHANGE UPDATE
DELETE DROP
SELECT FILTER
DriverManager.connect() Database.connect()
Query Command
DriverManager.createStatement() Statement.create()
end() finish()
statement.executeUpdate() statement.executeQuery()
CHAR STRING
SORT BY GROUP BY
Type 2 Type 3
SUM() TOTAL()
if-else switch-case
HIGH() TOP()
Limits the number of records deleted Limits the number of records updated
MEAN() AVERAGE()
A key that can be duplicated A key with no duplicates
executeInsert() executeQuery()
JOIN() MERGE()
getDatabaseInfo() getDataInfo()
VARCHAR STRING
A graph database
READ
To retrieve records
ALTER
CLEAR
HAVING
ConnectionManager.get()
SQLStatement
Statement.new()
A connection type
disconnect()
statement.addData()
Joins tables
SELECT table;
Splitting records
CLEAR TABLE
LEFT JOIN
TEXT
FILTER
Type 4
NUMBER()
To join tables
UPDATE TABLE
To sort results
loop
MAXIMUM()
NEW INDEX
SUM()
A unique identifier
runUpdate()
To delete a table
Sorts results
COMBINE()
A type of index
CHANGE TABLE
getDatabaseMetaData()
INSERT USER
To sort results
BOOLEAN
Sorts data
To sort results
Both A and B
SERIALIZABLE