Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Databases Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

SQL stands for_______

a)

Style Query Language

b)

Structured Query Language

c)

Syntax Query Language

d)

Symbol Query Language

2.

Which of the below queries is syntactically correct?

a)

create table student_data (name, class, marks) with types (text, int, int)

b)

create table student_data (name varchar(50), class int, marks int);

c)

create table student_daa(name-varchar(50), id-int, marks-int);

d)

All of the above

3.

To change the name of a table in MySQL which of the following queries is used?

a)

rename table oldtable to newtable;

b)

rename table change oldtable to newtable;

c)

rename table modify oldtable to newtable;

d)

rename table to newtable from oldtable;

4.

Which Of The Following Query Is Correct To Filter Columns While Fetching The Data?

a)

Select * From Student Where Column=Name And Column=Marks

b)

Select Name, Marks From Student

c)

Select Columns Name, Marks From Student

d)

Select Data Name, Marks From Student

5.

boolean data type contains only 2 possible values

a)

True

b)

False

6.

All the rows from one table are fetched when _____is used.

a)

Inner join

b)

Left join

c)

Right join

d)

B & C

7.

The commands in SQL are case sensitive.

a)

True

b)

False

8.

Name Of The Database Can Contain ___?

a)

Alphabets, Numbers And All Special Characters

b)

Alphabets, Numbers And ‘.’ Symbol

c)

Alphabets, Numbers And ‘_’ Symbol

d)

Alphabets, Numbers And ‘@’ Symbol

9.

Which of the following is a valid syntax for ‘insert’ command?

a)

insert into <table name> (<column list>) values (<value list>)

b)

insert into <table name> values (<value list>)

c)

Both

d)

None

10.

Which of the following command deletes the table along with the data?

a)

delete

b)

drop

c)

truncate

d)

All of the Above