wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

2C DBMS Theory Quiz 1

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

A company is experiencing rapid growth, and they need to store customer information, product data, and sales transactions efficiently. Which system would be more suitable, a database system or a file system?

a)

Database System

b)

File System

c)

Both are equally suitable

d)

It depends on specific requirements

2.

You are developing a database for a social media platform. You have tables for 'Users' and 'Posts.' Each post is created by a user, and a user can have multiple posts. How would you implement this relationship using foreign keys?

a)

Create a foreign key in the 'Users' table referencing 'Posts'

b)

Create a foreign key in the 'Posts' table referencing 'Users'

c)

Create a separate table for 'UserPosts' with foreign keys referencing 'Users' and 'Posts'

d)

No need for foreign keys in this scenario

3.

Consider a database table "Students" with the following attributes:

Student_ID (Primary Key), Student_Name, Course_ID (Foreign Key)

 

If there are 100 records in the "Students" table, and each student is enrolled in one of the five available courses, how many unique values can the "Course_ID" column have?

a)

5 unique records

b)

100 unique records

c)

1 unique record

d)

500 unique records

4.

A car rental company manages its fleet of vehicles in a database. The vehicles can be categorized as cars, trucks, and vans. Each category has specific attributes, such as maximum cargo capacity for trucks. Which DBMS concept is most appropriate for modeling this scenario?

a)

Aggregation

b)

Specialization

c)

Generalization

d)

Normalization

5.

Identify the minimum number of tables required for the following ER diagram in relational model:

a)

3

b)

2

c)

5

d)

4

6.

You are designing a database for an e-commerce platform. Each customer has a unique email address, and you want to ensure that this email address is used as a unique identifier for customer accounts.

Which key should you use?

a)

Primary Key

b)

Candidate Key

c)

Partial Key

d)

Foreign Key

7.

A University wants to model its student information system. Students have a unique ID, name, date of birth, and email address. Students are also enrolled in courses, and each course has a name and a unique course code.

What entities and relationships are involved?

a)

Entity: Student; Relationship: Enrolls In; Entity: Course

b)

Entity: University; Relationship: Manages; Entity: Student

c)

Entity: Student; Relationship: Attends; Entity: University

d)

Entity: Course; Relationship: Teaches; Entity: Professor

8.

A small local library wants to keep track of its book inventory. They have a limited budget and don't require complex querying capabilities. Which system would be more cost-effective, a database system or a file system?

a)

Database System

b)

File System

c)

Both are equally cost-effective

d)

It depends on the library's future growth

9.

The ability to query data, as well as insert, delete, and update tuples, is offered by ____________.

a)

TCL (Transaction Control Language)

b)

DCL (Data Control Language)

c)

DDL (Data Definition Language)

d)

DML (Data Manipulation Language)

10.

You are designing an ER diagram for a university database. There are two main entities: "Student" and "Course." Students can enroll in multiple courses, and each course can have multiple students.

What type of relationship exists between Student and Course?

a)

Many-to-Many relationship.

b)

One-to-Many relationship.

c)

Many-to-One relationship.

d)

One-to-One relationship.