Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Information Management-MidQuiz

Total questions: 31

Worksheet time: 17mins

Name
Class
Date
1.

Which key attribute is used to establish relationships between entities in a relational database?

a)

Candidate key

b)

Primary key

c)

Foreign key

d)

Alternate key

2.

A key attribute that consists of two or more attributes used together to uniquely identify records.

a)

Composite key

b)

Primary key

c)

Candidate key

d)

Foreign key

3.

Which data integrity constraint enforces that values in a column must be unique but allows for NULL values?

a)

Not null constraint

b)

Unique Constraint

c)

Null constraint

d)

Data Redundancy

4.

What does SQL stand for?

a)

Strong Question Language

b)

Structured Question Language

c)

Structured Query Language

d)

Strong Query Language

5.

What does the SQL DROP TABLE statement do?

a)

Deletes a table and all its data from the database

b)

Renames an existing table

c)

Copies a table and its data to a new table

d)

Clones a table

6.

Which one of the following sorts rows in SQL?

a)

ALIGN BY

b)

ORDER BY

c)

SORT BY

d)

GROUP BY

7.

Which SQL statement is used to add new record in a database?

a)

INSERT NEW

b)

ADD NEW

c)

INSERT INTO

d)

ADD RECORD

8.

The result of a SQL SELECT statement is a ______.

a)

FILE

b)

REPORT

c)

FORM

d)

TABLE

9.

In SQL, how do you select a column named "FirstName" from a table named Student?

a)

SELECT Student.FirstName

b)

EXTRACT FirstName FROM Student

c)

SELECT FirstName FROM Student

d)

SELECT Student FROM FirstName

10.

Which operator performs pattern matching?

a)

BETWEEN

b)

LIKE

c)

EXISTS

d)

OR

11.

Which of the SQL statement is correct?

a)

SELECT Username AND Password FROM Users

b)

SELECT Username, Password FROM Users

c)

SELECT Username, Password WHERE Username='user1'

d)

All of these

12.

The FROM SQL clause is used to _______.

a)

specify what table we are selecting or deleting data from

b)

specify range for search condition

c)

specify each condition

d)

None of these

13.

Which of the following SQL commands is used to retrieve data?

a)

DELETE

b)

INSERT

c)

SELECT

d)

JOIN

14.

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

a)

DELETE

b)

MODIFY

c)

REMOVE

d)

UPDATE

15.

Display the Grade in increasing order of all students.

a)

SELECT Name FROM Student ORDER BY Grade;

b)

SELECT Name, Grade FROM Student;

c)

SELECT Name, Grade FROM Student ORDER BY Grade;

d)

SELECT Name, Grade FROM Student ORDER BY Name;

16.

Which of the following is NOT a type of SQL constraint?

a)

PRIMARY KEY

b)

ALTERNATE KEY

c)

FOREIGN KEY

d)

UNIQUE

17.

The wildcard in a WHERE clause is useful when?

a)

An exact match is necessary in a CREATE statement

b)

An exact match is necessary in a SELECT statement

c)

An exact match is not possible in SELECT statement

d)

An exact match is not possible in CREATE statement

18.

Which of the following query is correct for using comparison operator in SQL?

a)

SELECT * FROM Student WHERE Age>20 and <35;

b)

SELECT * FROM Student WHERE Age>20 and Age<35;

c)

SELECT * FROM Student WHERE Age>20 and WHERE Age<35;

d)

SELECT * FROM Student WHERE Age<20 and Age>35;

19.

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

a)

SELECT Students

b)

SELECT * FROM Students

c)

SELECT [all] FROM Students

d)

SELECT * Students


20.

How can you change "John Lloyd" into "Derek" in the FirstName column in the Students table?

a)

UPDATE Students SET FirstName='Derek' WHERE FirstName='John Lloyd';

b)

UPDATE Students SET FirstName='John Lloyd' WHERE FirstName='Derek';

c)

MODIFY Students SET FirstName='Derek' WHERE FirstName='John Lloyd';

d)

MODIFY Students SET FirstName='John Lloyd' WHERE FirstName='Derek';

21.

With SQL, how can you delete the records where the "FirstName" is "Nicole" in the Students table?

a)

DELETE FROM Students WHERE FirstName = 'Nicole';

b)

DELETE WHERE FirstName = 'Nicole' FROM Students;

c)

DELETE ROW FirstName = 'Nicole' FROM Students;

d)

DELETE FROM Students FirstName = 'Nicole';

22.

In a fully normalized database, there is no redundancy, and data is stored in a single table.

a)

TRUE

b)

FALSE

23.

The process of database normalization is typically a one-time task and doesn't need to be revisited as data requirements change.

a)

TRUE

b)

FALSE

24.

Redundancy in a database can lead to data anomalies, such as the update anomaly, where changing data in one place leads to inconsistencies.

a)

TRUE

b)

FALSE

25.

Multivalued dependencies are a concern in 5NF.

a)

TRUE

b)

FALSE

26.

Normalization always results in fewer tables and more attributes per table.

a)

TRUE

b)

FALSE

27.

In the First Normal Form (1NF), all attributes in a table must be atomic, meaning they cannot be further divided.

a)

TRUE

b)

FALSE

28.

Database normalization is the process of decreasing data redundancy in a database to improve data integrity.

a)

TRUE

b)

FALSE

29.

The Second Normal Form (2NF) deals with eliminating partial dependencies by ensuring non-key attributes are functionally dependent on the entire primary key.

a)

TRUE

b)

FALSE

30.

A superkey is a set of attributes that uniquely identifies a tuple (row) in a relation.

a)

TRUE

b)

FALSE

31.

In the Third Normal Form (3NF), transitive dependencies between non-key attributes are allowed.

a)

TRUE

b)

FALSE