wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SQL DB

Total questions: 11

Worksheet time: 8mins

Name
Class
Date
1.

What is the Full Form of DDL

a)

Data Determination Language

b)

Data Description Language

c)

Data Definition Language

d)

Data Damage Language

2.

What values can be stored in a column with Datatype as Varchar2

a)

ABCD

b)

!@#$

c)

AB12

d)

All The Above

3.

Which of the create table syntax is correct ?

a)

Create table_name

(

Emp_Name Varchar2(10),

Emp_No Number,

Salary Number

);

b)

Create Table table_name

(

Emp_Name Varchar2(10),

Emp_No Number,

Salary Number

);

c)

Create Table table_name

(

Emp_Name Varchar2(10),

Emp_No Number,

Salary Number,

;

d)

Create Table

(

Emp_Name Varchar2(10),

Emp_No Number,

Salary Number

);

4.

What alter keyword is followed by column and column Name ?

a)

Rename

Drop

b)

Add

Modify

c)

Rename

Modify

d)

All the Above

5.

Which SQL statement is followed by commit;

a)

Insert

Update

b)

Delete

c)

Both A & B

d)

None of the Above

6.

Write an update statement to update salary of A employee to 7000.

Table_Name : emp

Name Number salary Location

A 01 5000 HYD

B 02 7000 BLR

C 03 9000 CHN

(a)  

7.

Which all of the below statements comes under TCL ?

a)

Commit

Grant

Savepoint

b)

Rollback

Commit

revoke

c)

Commit

Rollback

Savepoint

d)

Grant

Revoke

8.

What happens to the table if I run the truncate statement ?

a)

Deletes data and structure

b)

Deletes only structure

c)

Deletes the complete table from database

d)

Deletes only the data but not structure

9.

What all can be done by running a delete statement ?

a)

Deletes complete data but not structure

b)

Deletes specific data

c)

Both A & B

d)

deletes structure and data

10.

What is the functionality of the rollback ?

a)

Rollback your data till last commit point

b)

Roll back all your data

c)

Rollback will not rollback the data it will rollback only the structure

d)

None of the above

11.

what happens to a table when we run a drop statement?

a)

Deletes the structure

b)

Removes structure and data

c)

Remove the complete object from the database

d)

Both B & C