wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

INFOMANAGEMENT MIDTERM

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

A database is an organized collection of data. In an RDBMS, which part represents the attributes (fields) of the data?

a)

Rows

b)

Primary Keys

c)

Columns

d)

Relationships

2.

Which characteristic of MySQL specifically refers to its ability to handle increasing amounts of data and high-traffic demands without sacrificing performance?  

a)

Open-Source 

 

b)

SQL-based 

c)

Scalable 

d)

Cross-Platform 

3.

In the XAMPP acronym, what does the "X" signify regarding the software’s compatibility?  

a)

It is an eXtended version of the original LAMP stack. 

b)

It is designed exclusively for the Windows "X" operating system. 

c)

it is Cross-Platform, supporting Windows, macOS, and Linux. 

d)

It indicates that the database uses XML for data storage.

4.

SQL is described as a "standardized programming language."

For which specific purpose was it engineered? 

a)

Designing the User Interface (UI) of web applications. 

b)

Managing and manipulating relational databases. 

c)

Compiling operating system kernels like Linux.

d)

Scripting the client-side behavior of web browsers. 

5.

Which of the following is a mandatory requirement for every column created within a MySQL database table?  

a)

A Foreign Key and a Default Value. 

b)

A Name and a Data Type. 

c)

An Auto-increment value and a Comment. 

d)

A Primary Key and an Encryption Key. 

6.

In the structural hierarchy of a database table, "Rows" are best defined as:  

a)

Individual records or entries within the table. 

 

b)

The attributes that define the data category. 

c)

The links that connect two separate tables. 

d)

The SQL commands used to delete information. 

7.

Why is MySQL’s "Open-Source" nature considered an advantage for BSIT developers?  

a)

It is completely managed by a single corporation with no external input. 

b)

It allows anyone on the internet to view the developer's private data. 

c)

It does not require an operating system to function. 

d)

It is freely available for use and modification with community support. 

8.

To allow a developer to test a database-driven web application locally using XAMPP, which two modules must be active in the Control Panel?  

a)

FileZilla and Mercury 

b)

Tomcat and Apache 

c)

Apache and MySQL

d)

PHP and Perl

9.

Which of the following best describes the "Relational" aspect of MySQL?  

a)

All data is stored in a flat file with no connections. 

b)

Data is organized into tables that can be linked based on common data. 

c)

It only allows data to be stored if it is related to the user's login. 

d)

It refers to the relationship between the hardware and the software

10.

If a developer needs to store currency values or financial records in a MySQL table, which data type mentioned in the Week 1 curriculum would be most appropriate?  

a)

Binary 

b)

Money 

c)

Character 

d)

Integer

11.

In the architectural hierarchy of SQL, Data Definition Language (DDL) is frequently described as the "blueprint." What is the technical implication of this analogy?  

a)

DDL handles the encryption and security of the data rows.  

b)

DDL defines and manages the structure of database objects rather than the data itself.  

c)

DDL is used to perform complex mathematical calculations on stored integers.  

d)

DDL manages the connection between the web server and the database engine. 

12.

What is the most critical technical risk associated with the DROP DATABASE command?  

a)

It only deletes the tables but keeps the database structure intact.  

 

b)

It requires a manual restart of the Apache module in XAMPP.  

c)

It results in the complete and permanent loss of all information and structures within that database.  

d)

It prevents the creation of any new databases for a 24-hour period. 

13.

When executing a CREATE DATABASE testDB; command, what is the primary prerequisite for the SQL engine to successfully complete the operation?  

a)

The database name must be written in lowercase only.  

b)

The database engine must verify that no other database with the exact same name exists.  

c)

A table must be defined immediately within the statement.  

d)

The system must be in "Read-Only" mode.

14.

In the context of the tblStudent example, what is the specific function of the NOT NULL constraint applied to the studID column?  

a)

It ensures the ID is automatically generated by the system.  

b)

It guarantees that the column cannot contain empty or missing values.  

c)

It allows the column to accept alphanumeric characters.  

d)

It prevents the column from being modified by an ALTER statement. 

15.

A table is defined with a Primary Key. According to the standard rules of RDBMS, which of the following statements regarding the Primary Key is true? 

a)

A table can have multiple Primary Keys to ensure redundancy.  

b)

The Primary Key column is allowed to contain NULL values if the table is empty.

c)

A table can have only one Primary Key, and it must contain unique values.  

d)

The Primary Key must always be a VARCHAR data type. 

16.

You need to remove all student records from tblStudent to clear the database for a new semester, but you must keep the table structure (columns and data types) for future use. Which command is technically correct?  

a)

DROP TABLE tblStudent;  

b)

DELETE DATABASE tblStudent;  

c)

TRUNCATE TABLE tblStudent;  

d)

ALTER TABLE tblStudent DROP ALL; 

17.

Which clause is used in conjunction with ALTER TABLE to add a new attribute, such as email, to an existing table?  

a)

INSERT COLUMN  

b)

ADD 

c)

CREATE  

d)

UPDATE 

18.

If a developer needs to change the data type of an existing column named address from VARCHAR(30) to VARCHAR(100), which ALTER TABLE sub-command is required?  

a)

CHANGE COLUMN  

b)

MODIFY COLUMN 

c)

UPDATE TYPE

d)

REPLACE DATA

19.

What occurs physically to the data when the command DROP TABLE tblStudent; is executed?

a)

The data is moved to a temporary backup folder.  

b)

The data remains, but the column headers are hidden.  

c)

The table structure and all data records within it are permanently deleted. 

d)

The table is renamed to "Deleted_tblStudent." 

20.

In a CREATE TABLE statement, the AUTO_INCREMENT keyword is commonly used for Primary Keys. What is its primary purpose?  

a)

To automatically encrypt the ID for security.  

 

b)

To generate a unique number automatically whenever a new record is inserted.  

c)

To prevent the table from growing too large in size.  

d)

To link the table to another database automatically. 

21.

Which of the following commands is NOT considered a part of the Data Definition Language (DDL) subset?  

a)

ALTER  

b)

CREATE 

c)

SELECT

d)

DROP 

22.

Analyze the following syntax: ALTER TABLE tblStudent DROP COLUMN email;. What is the result of this operation?  

a)

It deletes the specific email address of a single student.  

b)

It removes the entire email column and all its associated data from the table structure. 

c)

It clears the data in the email column but keeps the column header.  

d)

It renames the column to "DROP." 

 

23.

Why must a developer be "careful" before executing a DROP command compared to a TRUNCATE command?  

a)

DROP is faster than TRUNCATE.  

b)

DROP removes the "container" (table/database), while TRUNCATE only removes the "content." 

c)

TRUNCATE deletes the database, while DROP only deletes a row. 

d)

There is no technical difference between the two.

24.

Which of these is the correct syntax to create a database named 'University'?  

a)

MAKE DATABASE University;  

b)

NEW DATABASE University;  

c)

CREATE DATABASE University;  

d)

DATABASE CREATE University; 

25.

Data Manipulation Language (DML) is distinct from Data Definition Language (DDL). Which of the following best describes the primary objective of DML commands in MySQL?  

a)

To create, modify, and remove the schema and table structures. 

b)

To manage and interact with the actual data records stored within tables. 

c)

To define the data types and constraints of specific columns. 

d)

To configure the physical storage settings of the database engine. 

26.

When executing a SELECT statement, where is the retrieved data technically held before being displayed to the user? 

a)

In a permanent secondary table within the database. 

b)

In a temporary "result-set" or result table. 

c)

Within the system’s BIOS configuration.

d)

In the CREATE TABLE log file. 

27.

In the command SELECT FROM tblStudInfo;, what is the technical implication of the wildcard () symbol?  

a)

It instructs the engine to find records that contain errors. 

b)

It acts as a placeholder for a specific, unknown record ID. 

c)

It indicates that all columns from the specified table should be returned. 

d)

It filters the data to show only the primary key column. 

28.

You are tasked with adding a new student to tblStudInfo. Which DML command is specifically engineered for adding new rows of data?  

a)

ADD RECORD 

b)

INSERT INTO

c)

CREATE ROW 

d)

UPDATE NEW 

29.

A developer executes the following: UPDATE tblStudInfo SET lastName = 'Reyes';. If there are 500 records in the table, what is the result of this operation?  

a)

Only the first record in the table will have its last name changed to 'Reyes'. 

b)

The command will fail because no Primary Key was specified. 

c)

Every single record in the table will have its last name updated to 'Reyes'. 

d)

Only the records that currently have a NULL last name will be updated. 

30.

Why is the WHERE clause considered the most critical component of an UPDATE or DELETE operation in a production environment?  

a)

It is the only way to specify which data type the column should use. 

b)

It defines which specific records should be affected, preventing accidental mass data loss or modification. 

c)

It speeds up the database by compressing the data before the change. 

d)

It is required by the SQL engine to identify the name of the table. 

31.

Which of the following is the correct syntax for updating a student's address based on their unique identification number?  

a)

UPDATE tblStudInfo WHERE studID = 10 SET address = 'Manila'; 

b)

CHANGE tblStudInfo SET address = 'Manila' WHERE studID = 10; 

c)

UPDATE tblStudInfo SET address = 'Manila' WHERE studID = 10; 

d)

MODIFY tblStudInfo SET address = 'Manila' WHERE studID = 10; 

32.

When deleting a specific record, such as "Juan Dela Cruz" with a studID of 12, why is it standard practice to use the Primary Key in the WHERE clause rather than the name? 

a)

Using the name is restricted by MySQL security protocols. 

b)

Names are not unique; using the Primary Key ensures that only the specific intended record is deleted. 

c)

The DELETE command does not recognize string/character data types. 

d)

Primary Keys are automatically deleted faster by the CPU. 

33.

If you omit the WHERE clause in a DELETE FROM tblStudInfo; statement, what happens to the table structure itself?  

a)
The table structure remains unchanged, but all records are deleted.
b)
The table structure is duplicated with empty records.
c)
The table structure is modified to include new columns.
d)
The table structure is deleted along with all records.
34.

In the context of the SELECT statement, how does a developer retrieve only the firstName and lastName columns without pulling all other attributes?  

a)

SELECT (firstName, lastName) FROM tblStudInfo; 

b)

SELECT firstName, lastName FROM tblStudInfo; 

c)

SELECT * FROM tblStudInfo WHERE columns = 'firstName, lastName'; 

d)

GET firstName, lastName FROM tblStudInfo; 

35.

Which of the following commands is used to remove existing records from a table?  

a)

DROP 

b)

TRUNCATE 

c)

REMOVE 

d)

DELETE

36.

Analyze this command: DELETE FROM tblStudInfo WHERE lastName = 'Dela Cruz';. If multiple students share the last name 'Dela Cruz', how many will be removed?  

a)

Only the one with the lowest Primary Key value. 

b)

Only the most recently added record. 

c)

All records where the last name matches 'Dela Cruz'. 

d)

None; the command will fail because names are not unique. 

37.

Which DML command is used to retrieve data but does not modify the data stored on the disk? 

a)

UPDATE 

b)

INSERT INTO 

c)

SELECT

d)

DELETE

38.

What is the logical difference between DELETE and DROP?  

a)

DELETE is DDL; DROP is DML. 

b)

DELETE removes records (data); DROP removes the entire table or database (structure). 

c)

DELETE is used for databases; DROP is used for rows. 

d)

There is no difference; they are synonymous in MySQL.

39.

Which keyword in an UPDATE statement is used to specify the new values for the columns being modified?  

a)

CHANGE 

b)

SET 

c)

VALUES

d)

INTO 

40.

When using the WHERE clause to filter data, which of the following best describes the underlying technical process performed by the SQL engine?  

a)

It reorders the physical storage of the table to match the query.  

 

b)

It evaluates each row against a specific boolean condition and extracts only those that return TRUE.  

c)

It deletes the rows that do not match the criteria from the temporary memory.  

d)

It creates a new permanent table containing only the filtered results. 

41.

You are writing a query to find students who live in 'Manila' AND are enrolled in the 'BSIT' course. What is the logical requirement for a record to be displayed in the result-set?  

a)

A. The record is displayed if either the city is Manila or the course is BSIT.  

b)

The record is displayed only if both conditions—living in Manila and being in BSIT—are simultaneously true.  

c)

The record is displayed if the student does not live in Manila but is in BSIT.  

d)

The record is displayed regardless of the course, as long as the city is Manila.

42.

In a scenario where a registrar needs a list of students who are either from 'Quezon City' OR 'Dasmariñas', how will the OR operator handle a student who lives in 'Cavite'? 

a)

It will display the record because 'Cavite' is a neighboring city.  

b)

It will exclude the record because it does not satisfy at least one of the specified conditions.  

c)

It will display the record but mark the city as "Unknown." 

d)

It will throw a syntax error because the OR operator only works for numeric values. 

 

43.

Which operator would you utilize if you wanted to retrieve all student records except for those whose status is 'Dropped'? 

a)

AND  

b)

BETWEEN 

c)

NOT  

d)

EXCLUDE 

44.

A web developer needs to implement a "Top 5 Highest Scores" feature on a leaderboard. Which clause is most efficient for restricting the number of records returned to exactly five?  

a)

WHERE  

b)

OFFSET 

c)

LIMIT  

d)

SET 

45.

Data Definition Language (DDL) is considered the "blueprint" of a database because it focuses exclusively on defining the containers (schemas, tables, columns) rather than managing the records stored within them.

a)

True

b)

False

46.

When a developer executes the DROP DATABASE command, the database engine removes the database name but maintains a temporary hidden backup of the information until the server is restarted.

a)

True

b)

False

47.

In a MySQL table, a Primary Key is technically allowed to contain NULL values provided that all other entries in that specific column remain unique and non-repeating. 

a)

True

b)

False

48.

The TRUNCATE TABLE statement is a structural command that deletes both the data records and the table’s column definitions, effectively performing the same action as DROP TABLE.

a)

True

b)

False

49.

If you need to change the data type of an existing column, such as converting a VARCHAR(30) to a TEXT type, the MODIFY keyword must be used within an ALTER TABLE statement. 

a)

True

b)

False

50.

The AUTO_INCREMENT attribute is primarily used to ensure that the database engine automatically generates a unique numerical sequence for a column, typically the Primary Key. 

a)

True

b)

False

51.

According to the fundamental syntax rules for the CREATE TABLE statement, every column defined must be assigned both a unique name and a specific data type. 

a)

True

b)

False

52.

A single MySQL table is architecturally capable of supporting multiple Primary Keys to allow for more complex data relationships within the same container. 

a)

True

b)

False

53.

Using the ALTER TABLE command with the ADD clause allows a developer to integrate a new column into a table without deleting or corrupting the data currently stored in the existing columns. 

a)

True

b)

False

54.

Data Definition Language (DDL) includes commands such as CREATE, ALTER, and DROP, while commands like INSERT and UPDATE are categorized under Data Manipulation Language (DML). 

a)

True

b)

False

55.

Data Manipulation Language (DML) is technically responsible for defining the schema and the data types of columns within a MySQL database. 

 

a)

True

b)

False

56.

When a SELECT statement is executed, the data is returned and stored in a temporary table structure known as a result-set. 

a)

True

b)

False

57.

The use of the wildcard asterisk (*) in a SELECT statement instructs the SQL engine to retrieve only the Primary Key and the first column of the specified table. 

a)

True

b)

False

58.

In MySQL, the INSERT INTO statement is specifically used to add new records to a table, but it cannot be used to modify existing data. 

a)

True

b)

False

59.

If a developer executes an UPDATE statement and accidentally omits the WHERE clause, the MySQL engine will automatically abort the operation to prevent data loss. 

a)

True

b)

False

60.

To ensure precision and avoid accidental mass updates, it is standard industry practice to use the Primary Key as the identifier within a WHERE clause.

a)

True

b)

False