wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

314 REVIEW EXAM

Total questions: 40

Worksheet time: 38mins

Name
Class
Date
1.

A command that is used to modify the existing records in a table.

(a)  

2.

A student with ID = 2 transferred schools. You need to remove only that record from the STUDENT table. Which SQL statement is correct?

a)

DELETE FROM STUDENT WHERE ID = 2;

b)

DROP FROM STUDENT WHERE ID = 2;

c)

DELETE STUDENT WHERE ID = 2;

d)

DELETE FROM STUDENT ID = 2;

3.

It is used to specify a condition while fetching the data from a single table or by joining multiple tables.

(a)  

4.

A significant feature of CRUD operations is that they enable application scalability and allow developers to efficiently handle large volumes of data.

(a)  

5.

The (a)   command is used to completely delete a database and all of its objects, such as tables, indexes, views and other dependent objects.

6.

It is a set of SQL commands to manage database security and control user access to database objects.

(a)  

7.

It refers to the set of SQL commands that can create and manipulate the structures of a database.

(a)  

8.

To simplify complex queries involving joins, you can break the query into manageable pieces by using (a)   or temporary tables.

9.

A command that is used to remove the existing records from a table.

(a)  

10.

It has a set of commands that is used to perform queries on the data and find information.

(a)  

11.

A command that is used to add new data rows to a database table.

(a)  

12.

It provides a timeout before closing the connection.

(a)  

13.

It is a family of computer languages, including commands permitting users to manipulate data in a database.

(a)  

14.

It uniquely identifies a row/record in any other database table.

(a)  

15.

The (a)   command is used to invalidate privileges from a user for a database object.

16.

All the string values should not be enclosed in single quotes

a)

TRUE

b)

FALSE

17.

To control a JOIN operation precisely, the (a)   statement specifies the condition for how tables connect.

18.

It ensures that all values in a column satisfy certain conditions.

(a)  

19.

A significant feature of CRUD operations allows developers to create, read, update, and delete data in the database, enabling them to manage the data effectively.

(a)  

20.

What is the syntax for connecting to MYSQL using PHP Script?

a)

mysql_connection (server, user, password, new_link, client_flag);

b)

connect_mysql (server, user, password, new_link, client_flag);

c)

mysql_connect (server, user, password);

d)

connection mysql_connect (server, user, password, new_link, client_flag);

21.

All numeric values should be supplied directly without enclosing them in single or double quotes.

a)

TRUE

b)

FALSE

22.

A command that can be used to prevent unauthorized access to sensitive data or to restrict access to certain users or groups.

(a)  

23.

It uniquely identifies each row/record in a database table.

(a)  

24.

The (a)   parameters specify the names of the columns of the table.

25.

CODE ANALYSIS: Analyze the given code and supply what is missing.
(a)   "db_connection.php";

26.

It defines the nature of the data that can be stored in a particular table column.

(a)  

27.

It ensures the accuracy and reliability of the data in the database.

(a)  

28.

You need to add a new student but only know their ID, LASTNAME, and FIRSTNAME. The table has NOT NULL constraints on ADDRESS and ALLOWANCE -- what happens if you run: INSERT INTO STUDENT (ID, LASTNAME, FIRSTNAME) VALUES (6, 'Dela Rosa', 'Eve');

a)

The row is inserted; ADDRESS and ALLOWANCE default to NULL

b)

The row fails insertion due to NOT NULL constraint violation.

c)

The missing columns AUTO-GENERATE default values.

d)

The row is inserted but AGE defaults to zero and others is NULL.

29.

What word is missing from the following SQL statement? SELECT * table_name

(a)  

30.

CODE ANALYSIS: Analyze the given code and supply what is missing.
if ($result -> num_rows > 0) { while ($row = $result -> (a)   ) {

31.

A function that disconnects you from the MySQL database server using PHP.

(a)  

32.

It ensures that all the values in a column are different

(a)  

33.

It is used to specify a condition while fetching the data from a single table or by joining multiple tables.

(a)  

34.

This operation refers to the retrieval of records from the database.

(a)  

35.

An SQL command adds a new column to an existing table.

(a)  

36.

In a LEFT JOIN, if there is no matching row in the right table, the (a)   value will appear in the result for that row's columns from the right table.

37.

It is a command that is used to delete complete data from an existing table.

(a)  

38.

It is used to give users or groups access to specific database objects such as tables, views, or stored procedures.

(a)  

39.

It is a computer language for storing, manipulating, and retrieving data in a relational database.

(a)  

40.

CODE ANALYSIS: Analyze the given code and supply what is missing.
if (isset($_GET['id'])) {
$stu_id = (a)   ['id'];