Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ICTPRG431Session 2 Introduction Database Management Systems Quiz

Total questions: 22

Worksheet time: 11mins

Name
Class
Date
1.

What does SQL stand for in database management systems?

a)

Structured Query Language

b)

Simple Query Language

c)

Sequential Query Language

d)

Standard Query Language

2.

Which language is used for defining and manipulating data in a relational database?

a)

Java

b)

Python

c)

SQL

d)

C++

3.

What is the purpose of DDL in SQL?

a)

To manipulate data

b)

To define data structures

c)

To enhance performance

d)

To create backups

4.

What is the primary purpose of using SELECT, INSERT, UPDATE, and DELETE commands in SQL?

a)

To modify the SQL software

b)

To control user access and permissions

c)

To manage data in a database

d)

To configure network settings

5.

Which SQL command is used to modify existing data within a table?

a)

SELECT

b)

INSERT

c)

UPDATE

d)

DELETE

6.

What is the primary purpose of key constraints in relational databases?

a)

To link tables together

b)

To ensure only valid data is entered into tables

c)

To increase processing speed

d)

To duplicate data for backup purposes

7.

What is the purpose of a primary key in a database?

a)

To link two tables together

b)

To uniquely identify a row in a table

c)

To set default values for a column

d)

To enforce data validation rules

8.

Which of the following is true about a foreign key?

a)

It cannot reference a primary key in another table

b)

It must have a different data type than the primary key it references

c)

It ensures referential integrity by linking to a primary key in another table

d)

It must always be a unique value

9.

What does a NULL constraint in SQL specify?

a)

The column must always have a numeric value

b)

The column cannot have duplicate values

c)

The column must not have any value

d)

The column can have empty values

10.

What is the purpose of a unique constraint in SQL?

a)

To ensure all rows in a table can have identical values.

b)

To prevent duplicate entries in a column that is not a primary key.

c)

To link two tables together.

d)

To automatically update data in a table.

11.

How does a check constraint function in SQL?

a)

It ensures that all SQL commands are checked for errors before execution.

b)

It restricts the type of data that can be inserted into a table based on specific conditions.

c)

It checks and removes incorrect entries from a table automatically.

d)

It verifies user permissions before allowing data insertion.

12.

Why are naming conventions not standardized across different companies?

a)

Because all companies use the same software systems

b)

Because different companies in the same field have different naming conventions

c)

Because naming conventions are legally protected

d)

Because naming conventions are irrelevant in modern databases

13.

What should companies do regarding naming conventions according to the image?

a)

Ignore naming conventions as they are outdated

b)

Choose naming conventions randomly

c)

Identify and follow a naming convention

d)

Create a new naming convention for each project

14.

What is the recommended practice for naming tables in a database?

a)

Tables should be named in plural form

b)

Tables should be named in singular form

c)

Tables should include numerals

d)

Tables should use multiple words without linking

15.

What should foreign key constraints in databases include according to the image?

a)

A simple name related to the table

b)

A composite name identifying tables and functionality

c)

Only the primary key of the parent table

d)

Numerals to distinguish different foreign keys

16.

What is the purpose of the "Varchar" data type in MariaDB?

a)

To store fixed-length strings.

b)

To store variable-length strings up to a specified number of characters.

c)

To store integers only.

d)

To store boolean values.

17.

What does DML stand for in SQL and what is its primary function?

a)

Data Manipulation Language, used to retrieve and manipulate database data

b)

Data Modification Language, used to define database structures

c)

Data Management Language, used to control access to data

d)

Data Mapping Language, used to map data structures

18.

Which SQL command is part of DDL?

a)

SELECT

b)

UPDATE

c)

CREATE TABLE

d)

GRANT

19.

Which of the following is not a function of DML?

a)

INSERT

b)

ALTER TABLE

c)

DELETE

d)

UPDATE

20.

What is the primary function of the 'SQL' tab in phpMyAdmin as described in the image?

a)

To import data from SQL files

b)

To manipulate records in database tables using SQL queries

c)

To modify the phpMyAdmin user interface

d)

To export data to CSV files

21.

What SQL command is used to insert new data into a database?

a)

DELETE

b)

UPDATE

c)

SELECT

d)

INSERT INTO

22.

Which of the following correctly represents the basic syntax structure of the INSERT INTO command?

a)

INSERT INTO [table_name] VALUES ([value1], [value2]...)

b)

UPDATE [table_name] SET [column1]=[value1], [column2]=[value2]...

c)

DELETE FROM [table_name] WHERE [condition]

d)

INSERT INTO [table_name] ([column1], [column2]...) VALUES ([value1], [value2]...)