Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Wildcard1

Total questions: 84

Worksheet time: 14mins

Name
Class
Date
1.

What is a database?

a)

Organized collection of information that cannot be accessed, updated, and managed

b)

Collection of data or information without organizing

c)

Organized collection of data or information that can be accessed, updated, and managed

d)

Organized collection of data that cannot be updated

2.

Which type of data can be stored in the database?

a)

Image oriented data

b)

Text, files containing data

c)

Data in the form of audio or video

d)

All of the above

3.

Which of the following is not an example of DBMS?

a)

MySQL

b)

Microsoft Acess

c)

IBM DB2

d)

Google

4.

Which of the following is not a feature of DBMS?

a)

Minimum Duplication and Redundancy of Data

b)

High Level of Security

c)

Single-user Access only

d)

Support ACID Property

5.

Which of the following is known as a set of entities of the same type that share same properties, or attributes?

a)

Relation set

b)

Tuples

c)

Entity set

d)

Entity Relation model

6.

What does an RDBMS consist of?

a)

Collection of Records

b)

Collection of Keys

c)

Collection of Tables

d)

Collection of Fields

7.

______________ is a set of one or more attributes taken collectively to uniquely identify a record.

a)

Primary Key

b)

Foreign key

c)

Super key

d)

Candidate key

8.

_______ indicates the maximum number of entities that can be involved in a relationship.

a)

Greater Entity Count

b)

Minimum cardinality

c)

Maximum cardinality

d)

ERD

9.

Which of the following is the view level database model

a)

ER model

b)

Relational Model

c)

Table

d)

File

10.

Which of the following is not Unary operation?

a)

Select

b)

Project

c)

Rename

d)

Union

11.

The operation which is not considered a basic operation of relational algebra is

a)

Cross Product

b)

Selection

c)

Union

d)

None of the above

12.

Relational Algebra is a __________ query language that takes two relation as input and produces another relation as output of the query.

a)

Relational

b)

Structural

c)

Procedural

d)

Fundamental

13.

A list of the attributes we wish to appear in the result is displayed in ___ operation.

a)

Select

b)

Project

c)

Union

d)

Rename

14.

If there are 2 types of tuples, A & B, the ___ operation contains all the tuples that are either in A or B or both in A & B.

a)

Project

b)

Select

c)

Union

d)

Rename

15.

In a one-to-many relationship, the entity that is on the one side of the relationship is called a(n) ________ entity.

a)

Parent

b)

Child

c)

Instance

d)

Subtype

16.

.

In which of the following is a single-entity instance of one type of related to a single-entity instance of another type?

a)

One-to-One Relationship

b)

One-to-Many Relationship

c)

Many-to-Many Relationship

d)

Composite Relationship

17.

Let E, and E’ be two entities in an ER diagram with simple single-valued attributes, R1 and R2 are two relationships between E and E’ where R1, is one-to-many and R2 is many-to-many. R1 and R2 do not have any attributes of their own. What is the minimum number of tables required to represent this situation in the relational model.

a)

2

b)

3

c)

4

d)

5

18.

Consider the following relation schema pertaining to a student database:

               Student (rollno, name, address)

                        Enroll (rollno, courseno, coursename)

where the primary keys are shown underlined. The number of tuples in the student and Enroll tables are 120 and 8 respectively. What are the maximum and minimum number of tuples that can be present in (Student Enroll), where denotes natural join?

a)

8 , 8

b)

120 , 8

c)

960 , 8

d)

960 , 180

19.

Properties that describes the characteristics of the entities are called ................

a)

Entities

b)

Identifiers

c)

Attributes

d)

Relationships

20.

Which one of the following is used to define the structure of the relation, deleting relations and relating schemas?

a)

DML(Data Manipulation Langauge)

b)

DDL(Data Definition Langauge)

c)

Query

d)

Relational Schema

21.

CREATE TABLE employee (name VARCHAR, id INTEGER)

What type of statement is this?

a)

DML

b)

DDL

c)

View

d)

Integrity constraint

22.

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

23.

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

24.

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

25.

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

26.

A database management system (DBMS) is a collection of programs that enables users to

a)

create a database

b)

manipulate a database

c)

both create and manipulate a database

d)

for storing data only

27.

The database definition or descriptive information is also stored by the DBMS in the form of a _______________

a)

Data catalog

b)

excel file

c)

document file

d)

pdf file

28.

The database and DBMS software together is called a ________________

a)

Database system

b)

Data Model

c)

Application Program

d)

System software

29.
A database entity is also known as:
a)
a table
b)
a field
c)
a row
d)
a report
30.

What does "SQL" stand for?

a)

Structured Question Language

b)

Structured Query Language

c)

Simple Query Language

d)

Simple Question Language

31.

Which statement is used to extract data from a database?

a)

Extract

b)

Get

c)

Open

d)

Select

32.

Which word is missing from the following SQL statement?


Select * table_name

a)

With

b)

Where

c)

From

d)

And

33.

How do we select all rows for the "Designer" table?

a)

SELECT * FROM Designer

b)

SELECT [All] FROM Designer

c)

SELECT Designer.*

d)

SELECT FROM Designer

34.

DDL means

(a)  

35.

DML

(a)  

36.

It is a DML command that is used to display record.

a)

DISPLAY

b)

STRUCTURE

c)

WHERE

d)

SELECT

37.

Where does the CREATE Command belong?

a)

DML

b)

DDL

c)

DCL

38.

An SQL command used to create a table.

a)

Insert

b)

Create

c)

Update

d)

Add

39.

What is the meaning of DCL?

a)

Data Count Language

b)

Database Control Language

c)

Data Calculation Language

d)

Data Control Language

40.

What does SQL stand for?

a)

Structured Query Language

b)

Strong Question Language

c)

Structured Question Language

d)

Strong Query Language

41.

Which SQL statement is used to extract data from a database?

a)

OPEN

b)

SELECT

c)

EXTRACT

d)

GET

42.

Which SQL statement is used to delete data from a database?

a)

DELETE

b)

COLLAPSE

c)

DROP

d)

REMOVE

43.

Which SQL statement is used to update data in a database?

a)

MODIFY

b)

SAVE AS

c)

SAVE

d)

UPDATE

44.

With SQL, how do you select a column named "FirstName" from a table named "Persons"?

a)

SELECT FirstName FROM Persons

b)

SELECT Persons.FirstName

c)

SELECT Persons Where FirstName

d)

SELECT Persons From FirstName

45.

Which SQL statement is used to insert new data in a database?

a)

ADD RECORD

b)

INSERT INTO

c)

ADD NEW

d)

INSERT NEW

46.

With SQL, how do you select all the columns from a table named "Persons"?

a)

SELECT [all] FROM Persons

b)

SELECT Persons

c)

SELECT * FROM Persons

d)

SELECT Persons From Persons

47.

With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?

a)

SELECT * FROM Persons WHERE FirstName<>'Peter'

b)

SELECT * FROM Persons WHERE FirstName LIKE 'Peter'

c)

SELECT * FROM Persons WHERE FirstName='Peter'

d)

SELECT [all] FROM Persons WHERE FirstName='Peter'

48.

The OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if ALL of the conditions listed are true

a)

True

b)

False

c)

Both A and B

d)

None of these

49.

With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and the "LastName" is "Jackson"?

a)

SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson'

b)

SELECT * FROM Persons WHERE FirstName<>'Peter' AND LastName<>'Jackson'

c)

SELECT FirstName='Peter', LastName='Jackson' FROM Persons

d)

SELECT*FROM Persons WHERE FirstName='Peter' OR LastName='Jackson'

50.

With SQL, how do you select all the records from a table named "Persons" where the "LastName" is alphabetically between (and including) "Hansen" and "Pettersen"?

a)

SELECT LastName>'Hansen' AND LastName<'Pettersen' FROM Persons

b)

SELECT * FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen'

c)

SELECT [all] FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen'

d)

SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'

51.

With SQL, how can you insert a new record into the "Persons" table?

a)

INSERT ('Jimmy', 'Jackson') INTO Persons

b)

INSERT VALUES ('Jimmy', 'Jackson') INTO Persons

c)

INSERT INTO Persons VALUES ('Jimmy', 'Jackson')

d)

INSERT INTO Persons VALUES

52.

With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?

a)

INSERT INTO Persons (LastName) VALUES ('Olsen')

b)

INSERT ('Olsen') INTO Persons (LastName)

c)

INSERT INTO Persons ('Olsen') INTO LastName

d)

INSERT IN Persons ('Olsen') TO LastName

53.

Which operator is used to select values within a range?

a)

WITHIN

b)

RANGE

c)

ORDER BY

d)

BETWEEN

54.

Which SQL statement is used to create a database table called 'Customers'?

a)

CREATE TABLE Customers

b)

CREATE DATABASE TABLE Customers

c)

CREATE DATABASE TAB Customers

d)

CREATE DB Customers

55.

which of the following is not a valid SQL commands?

a)

Data Definition Language

b)

Data Manipulation Language

c)

Data Control Language

d)

Data Verification Language

56.

Which is not a DDL Command?

a)

CREATE

b)

ALTER

c)

DROP

d)

UPDATE

57.

Which is not a DML Command?

a)

SELECT

b)

INSERT

c)

ALTER

d)

DELETE

58.

Which of the following is not a valid SQL type?

a)

DECIMAL

b)

NUMERIC

c)

FLOAT

d)

CHARACTER

59.

Which of the following are DCL commands?

a)

COMMIT and ROLLBACK

b)

UPDATE and TRUNCATE

c)

GRANT and REVOKE

d)

SELECT and UPDATE

60.

The language used application programs to request data from the DBMS is referred to as __________

a)

DDL

b)

DML

c)

Query Language

d)

All of the mentioned

61.

Match SQL language with SQL commands

1)DDL i)Revok, Grant

2)DML ii)rename a table

3)TCL iii)insert, update

4)DCL iv)rollback , commit

a)

1-iii,2-i,3-ii,4-iv

b)

1-iii,2-ii,3-iv,4-i

c)

1-ii,2-iii,3-iv,4-i

d)

1-i,2-iii,3-ii,4-iv

62.

Which of the following is not a type of SQL statement?

a)

Data Manipulation Language (DML)

b)

Data Definition Language (DDL)

c)

Data Control Language (DCL)

d)

Data Communication Language (DCL)

63.

In existing table, ALTER TABLE statement is used to

a)

Add columns

b)

Add constraints

c)

Delete columns

d)

Delete constrains

e)

All the above

64.

SQL Query to delete all rows in a table without deleting the table (structure, attributes, and indexes)

a)

DELETE FROM table_name;

b)

DELETE TABLE table_name;

c)

DROP TABLE table_name;

d)

None

65.

Correct syntax query syntax to drop a column from a table is

a)

DELETE COLUMN column_name;

b)

DROP COLUMN column_name;

c)

ALTER TABLE table_name DROP COLUMN column_name;

d)

None is correct.

66.

SQL has how many main commands for DDL:

a)

1

b)

2

c)

3

d)

4

67.

Which command is used for removing a table and all its data from the database:

a)

Create command

b)

Drop table command

c)

Alter table command

d)

All of the mentioned

68.

Which of the following language is used to specify database Schema ?

a)

DDL

b)

DML

c)

DCL

d)

None

69.

DDL Stands for ___________.

a)

Data Management Language

b)

Data Manupulation Language

c)

Data Development Language

d)

Data Definition Language

70.

SQL is

a)

Structured Query Language

b)

Simple Query Language

c)

Structured Question Language

d)

Structure Quality Language

71.

DDL means

(a)  

72.

DML

(a)  

73.

To remove a record from a table which SQL statement would you use?

a)

Remove

b)

Cancel

c)

Delete

d)

Eradicate

74.

In order to modify data in a database we would use which SQL statement?

a)

Update

b)

Amend

c)

Alter

d)

Modify

75.

Which statement is used to extract data from a database?

a)

Extract

b)

Get

c)

Open

d)

Select

76.

Which statement allows us to add a record to a table?

a)

Add To

b)

Update To

c)

Add Into

d)

Insert Into

77.

Less than or equal to?

a)

>=

b)

=>

c)

=<

d)

<=

78.

Which word is missing from the following SQL statement?


Select * table_name

a)

With

b)

Where

c)

From

d)

And

79.

Which SQL statement would add a record to the database?

a)

INSERT INTO Designer VALUES ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456')

b)

INSERT VALUES ('SMI01', 'M Smith', 'mail@msmith.com', 01224123456') INTO Designer

c)

INSERT ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456') INTO Designer

d)

INSERT Designer INTO VALUES (''SMI01', 'M Smith', 'mail@msmith.com', '01224123456')

80.

Where does the CREATE Command belong?

a)

DML

b)

DDL

c)

DCL

81.

It is a DML command that is used to display record.

a)

DISPLAY

b)

STRUCTURE

c)

WHERE

d)

SELECT

82.

Referential Integrity is

a)

System of rules

b)

System of data

c)

Table constraints

d)

is related to Primary key

83.

______________ constraint prevents NULL values

a)

UNIQUE

b)

NOT NULL

c)

NULL

d)

FOREIGN KEY

84.

A primary key can be NULL in the table? TRUE or FALSE

a)

TRUE

b)

FALSE