Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DBMS Quiz2

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What does BLOB in SQL stand for?

a)

Binary Large Object

b)

Big Large Object

c)

Binary Language for Objects

d)

None of the above

2.

What does the following code snippet do?

ALTER TABLE STUDENT ADD(ADDRESS VARCHAR2(20));

a)

Adds a Column called Address

b)

Checks if a column called ADDRESS is present in the table Student

c)

Invalid Syntax

d)

None of the above

3.

What does the following code snippet do?

DELETE FROM STUDENTS WHERE AGE = 16;

ROLLBACK;

a)

Performs an undo Operation on the Delete Operation

b)

Deletes the rows from the table where age=16

c)

Deletes the entire table

d)

None of the above

4.

 

Which SQL constraint do we use to set some value to a field whose value has not been added explicitly?

a)

Unique

b)

Not Null

c)

Default

d)

Check

5.

 

Primary key can be?

a)

Null

b)

Not Null

c)

Both Null & Not Null

d)

Depends on Situation

6.

Which of the following commands is used to delete a trigger in SQL?

a)

Drop

b)

Delete

c)

Alter

d)

None of the above

7.

Which of the following is the right syntax for assertion?

a)

Create assertion 'assertion-name' check 'predicate';

b)

Create assertion check 'predicate' 'assertion-name';

c)

Create assertions 'predicates';

d)

All of the mentioned

8.

Views can be created for?

a)

One table

b)

Many table

c)

another view

d)

All of the above

9.

What are the major components of the JDBC?

a)

DriverManager, Driver, Connection, Statement, and ResultSet

b)

DriverManager, Driver, Connection, and Statement

c)

DriverManager, Statement, and ResultSet

d)

DriverManager, Connection, Statement, and ResultSet

10.

Select the packages in which JDBC classes are defined?

a)

jdbc and javax.jdbc

b)

rdb and javax.rdb

c)

jdbc and java.jdbc.sql

d)

sql and javax.sql