Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database concepts and the Structured Query Language

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

The SQL used by front-end application programs to request data from the DBMS is called _______

a)

A. DML

b)

B .DDL

c)

C .VDL

d)

D. SDL

2.

The command used to delete a particular column in a relation is ____________

a)

A.UPDATE TABLE

b)

B.TRUNCATE COLUMN

c)

C.ALTER , DROP

d)

D.DELETE COLUMN

3.

Which of the following operations requires the relations to be union compatible?

a)

A.UNION

b)

B.INTERSECTION

c)

C.DIFFERENCE

d)

D.ALL OF THESE

4.

The database language that allows us to access data in a database is called :

a)

A.DCL

b)

B.DML

c)

C.DDL

d)

D.None Of Above

5.

Which data manipulation command is used to combines the records from one or more tables?

a)

A.SELECT

b)

B.PROJECT

c)

C.JOIN

d)

D.PRODUCT

6.

Which of the following is a legal expression in SQL?

a)

A.SELECT NULL FROM SALES;

b)

B.SELECT NAME FROM SALES;

c)

C.SELECT * FROM SALES WHEN PRICE = NULL;

d)

D.SELECT # FROM SALES;

7.

DCL provides commands to perform actions like

a)

A.Change the structure of Tables

b)

B.Insert, Update or Delete Records and Values

c)

C.Authorizing Access and other control over Database

d)

D.None of Above

8.

Which data type can store unstructured data in a column?

a)

A.RAW

b)

B.CHAR

c)

C.NUMERIC

d)

D.VARCHAR

9.

The virtual table that its created by data from the result of an SQL 'Select' statement is called _________

a)

A.View

b)

B.Synonym

c)

C.Sequence

d)

D.Transaction

10.

What is the full form of DDL ?

a)

A.Dynamic Data Language

b)

B.Detailed Data Language

c)

C.Data Definition Language

d)

D.Data Derivation Language

11.

In SQL, which command is used to SELECT only one copy of each set of duplicable rows

a)

A. SELECT DISTINCT

b)

B. SELECT UNIQUE

c)

C. SELECT DIFFERENT

d)

D. All of the above

12.

The SQL statementSELECT SUBSTR('123456789', INSTR('abcabcabc', 'b'), 4) FROM DUAL;

a)

A. 6789

b)

B. 2345

c)

C. 1234

d)

D. 456789

13.

The SQL statementSELECT ROUND(45.926, -1) FROM DUAL;

a)

A. is illegal

b)

B. prints garbage

c)

C. prints 045.926

d)

D. prints 50

14.

Find all the cities whose humidity is 89

a)

A. SELECT city WHERE humidity = 89;

b)

B. SELECT city FROM weather WHERE humidity = 89;

c)

C. SELECT humidity = 89 FROM weather;

d)

D. SELECT city FROM weather;

15.

Database __________ which is the logical design of the database, and the database _______ which is a snapshot of the data in the database at a given instant in time.

a)

a) Instance, Schema

b)

b) Relation, Schema

c)

c) Relation, Domain

d)

d) Schema, Instance

16.

Course(course_id,sec_id,semester)

Here the course_id,sec_id and semester are __________ and course is a _________

a)

a) Relations, Attribute

b)

b) Attributes, Relation

c)

c) Tuple, Relation

d)

c) Tuple, Relation

17.

The “father” of MySQL is ______.

a)

A. Michael Widenius

b)

B. Bill Joy

c)

C. Bill Gates

d)

D. Stephanie Wall

e)

E. Sigmund Velin

18.

MySQL runs on which operating systems?

a)

A. Unix and Linux only

b)

B. Linux and Mac OS-X only

c)

C. Unix, Linux, Windows and others

d)

D. Any operating system at all

19.

Which of the following is NOT supported by MySQL?

a)

A. Temporary (Hash) Tables

b)

B. Table Joining

c)

C. Stored Procedures

d)

D. Regular Expression Matching

20.

Which of these field types would be best to hold a .jpg image?

a)

A. char binary

b)

B. nchar binary

c)

C. text

d)

D. blob