wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Database Design and Management Assessment

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What does ER stand for in database design?

a)

Entity-Record

b)

Entity-Response

c)

Entity-Relation

d)

Entity-Relationship

2.

List two types of SQL commands used for database modification.

a)

DELETE

b)

INSERT, UPDATE

c)

SELECT

d)

CREATE

3.

What is the purpose of DDL in database management?

a)

To perform data analysis and reporting.

b)

To optimize database queries.

c)

To handle user authentication.

d)

The purpose of DDL in database management is to define and manage the structure of the database.

4.

Define what a primary key is in a database schema.

a)

A primary key is a unique identifier for a record in a database schema.

b)

A primary key is an optional field in a database schema.

c)

A primary key can have duplicate values in a database schema.

d)

A primary key is a type of foreign key in a database schema.

5.

Explain the difference between a table and a view in SQL.

a)

A view can store data physically, while a table cannot.

b)

A table can only be created from a view, not the other way around.

c)

A table is a temporary storage, while a view is a permanent storage.

d)

A table stores data physically, while a view is a virtual representation of data based on a query.

6.

What command would you use to create a new table in SQL?

a)

DELETE FROM table_name WHERE condition;

b)

INSERT INTO table_name (column1, column2);

c)

UPDATE table_name SET column1 = value;

d)

CREATE TABLE table_name (column1 datatype, column2 datatype, ...);

7.

Describe the role of foreign keys in relational databases.

a)

Foreign keys link tables and enforce referential integrity in relational databases.

b)

Foreign keys are used to create indexes on tables.

c)

Foreign keys store data in a single table only.

d)

Foreign keys are primarily for data encryption.

8.

How can you enforce data integrity in a database?

a)

Ignore data types and constraints altogether.

b)

Use only primary keys for data integrity.

c)

Use primary keys, foreign keys, constraints, and triggers.

d)

Rely solely on application-level validation.

9.

What is the purpose of creating indices in a database?

a)

The purpose of creating indices in a database is to enhance query performance by speeding up data retrieval.

b)

To create backups of the database data.

c)

To reduce the size of the database files.

d)

To enforce data integrity and constraints.

10.

Explain the process of exporting an ER diagram from a database.

a)

Exporting the ER diagram is not possible from any database management tool.

b)

You can only export the ER diagram as a PDF file.

c)

The process involves using a database management tool to export the ER diagram in a chosen format.

d)

The process requires manual drawing of the ER diagram on paper.

11.

What SQL command is used to delete a table?

a)

DROP TABLE

b)

REMOVE TABLE

c)

DELETE TABLE

d)

CLEAR TABLE

12.

How would you bulk import data into a database using SQL?

a)

Use 'CREATE TABLE' to import data

b)

Use 'SELECT INTO' for data import

c)

Use 'INSERT INTO' for all databases

d)

Use 'LOAD DATA INFILE' for MySQL, 'COPY' for PostgreSQL, or 'BULK INSERT' for SQL Server.

13.

What is the significance of setting constraints in a database schema?

a)

Constraints are crucial for maintaining data integrity and enforcing business rules in a database.

b)

Constraints are only used for indexing data in a database.

c)

Constraints are optional and can be ignored during schema design.

d)

Constraints have no impact on data retrieval performance.

14.

Describe a scenario where you would need to modify an existing database schema.

a)

Adding a new 'Orders' table without any relationships to existing tables.

b)

Changing the 'Users' table to remove the 'email' column.

c)

Modifying the 'Products' table to add new columns for 'color' and 'size'.

d)

Renaming the 'Categories' table to 'Items' without altering its structure.

15.

What steps would you take to verify relationships in an ER diagram?

a)

Verify relationships by checking entities, cardinality, foreign keys, meaningfulness, and consistency.

b)

Check only the primary keys of entities.

c)

Assume all relationships are correct without verification.

d)

Ignore cardinality and focus on attributes only.