wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

IT12 (Finals) - Quiz 1

Total questions: 15

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following is a key reason why databases are essential for modern web applications?

a)

A. They exclusively handle front-end UI interactions.

b)

B. They serve as persistent storage for application data.

c)

C. They compile server-side code into executables.

d)

D. They are only used for static content delivery.

2.

What is the primary goal of database normalization?

a)

A. To increase data redundancy for faster retrieval.

b)

B. To organize columns and tables to reduce data redundancy and improve integrity.

c)

C. To simplify complex queries by merging all tables into one.

d)

D. To convert relational databases into NoSQL databases.

3.

A table is in First Normal Form (1NF) if, among other things, each table cell contains what kind of value?

a)

A. A list of values.

b)

B. An array of related data.

c)

C. A single, atomic value.

d)

D. A composite key value.

4.

What additional condition must be met for a table in 1NF to be in Second Normal Form (2NF)?

a)

A. All non-key attributes must be dependent on a non-key attribute.

b)

B. It must contain only auto-incrementing primary keys.

c)

C. No non-key attribute is dependent on only a part of the composite primary key.

d)

D. All attributes must be stored in separate tables.

5.

Third Normal Form (3NF) requires a table to be in 2NF and eliminate what type of dependency?

a)

A. Functional dependencies.

b)

B. Transitive dependencies.

c)

C. Partial dependencies.

d)

D. Multi-valued dependencies.

6.

Which characteristic is mandatory for a Primary Key?

a)

A. It can contain NULL values if the record is incomplete.

b)

B. It must be an auto-incrementing integer.

c)

C. It must contain unique values for each row.

d)

D. It is used to link to multiple other tables exclusively.

7.

What is the primary role of a Foreign Key in a database schema?

a)

A. To define a secondary index for faster searches.

b)

B. To enforce referential integrity and establish relationships between tables.

c)

C. To uniquely identify each record within its own table.

d)

D. To store large binary objects (BLOBs).

8.

In a One-to-Many (1:M) relationship, how do records in Table A typically relate to records in Table B?

a)

A. One record in Table A relates to exactly one record in Table B.

b)

B. Many records in Table A relate to many records in Table B.

c)

C. One record in Table A can relate to many records in Table B, but one record in Table B relates to only one record in Table A.

d)

D. One record in Table B can relate to many records in Table A, but one record in Table A relates to only one record in Table B.

9.

What is generally required to resolve a Many-to-Many (M:N) relationship in a relational database?

a)

A. A direct link using a foreign key in one of the tables.

b)

B. An intermediary 'junction' or 'associative' table.

c)

C. Converting one of the entities into an attribute.

d)

D. Denormalizing the database entirely.

10.

What is an Entity-Relationship Diagram (ERD) primarily used for?

a)

A. Executing database queries.

b)

B. Visualizing database performance metrics.

c)

C. Providing a visual representation of entities within a database and their relationships.

d)

D. Automating database migrations.

11.

In an ERD, how are real-world objects or concepts (entities) typically represented?

a)

A. As diamonds labeled with verb phrases.

b)

B. As ovals connected to other shapes.

c)

C. As rectangles, labeled with the entity name.

d)

D. As lines connecting different attributes.

12.

How are attributes, which represent properties or characteristics of an entity, typically shown in an ERD?

a)

A. As rectangles within other rectangles.

b)

B. As diamonds, often underlined.

c)

C. As ovals connected to their respective entity, with key attributes often underlined.

d)

D. As dashed lines extending from entities.

13.

What do relationships in an ERD signify?

a)

A. The physical storage location of data.

b)

B. The data types of various attributes.

c)

C. Associations between two or more entities, indicating how they interact or are connected.

d)

D. The access permissions for different users.

14.

What does 'Cardinality' specify in the context of ERDs?

a)

A. The data type of an attribute.

b)

B. The number of instances of one entity that can be associated with instances of another entity.

c)

C. Whether a relationship is optional or mandatory.

d)

D. The order in which entities are processed.

15.

In ERDs, what concept indicates whether a relationship between entities is optional or mandatory?

a)

A. Cardinality.

b)

B. Modality.

c)

C. Normal Form.

d)

D. Association.