Search Header Logo

PHP-Midterm Exam

Authored by DENNIS GONZALES

Computers

University

Used 3+ times

PHP-Midterm Exam
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which PHP function is used to execute SQL queries?

mysqli_query()

mysql_query()

pdo_query()

sql_query()

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

It is a collection of 1024 Terabytes

Exabyte

Petabyte

Zettabyte

Yottabyte

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is used to retrieve data from a MySQL database?

mysqli_fetch_array()

mysql_fetch_all()

pdo_fetch_all()

mysqli_query()

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is used to establish a connection to a MySQL database?

mysqli_connect()

mysql_connect()

pdo_connect()

sql_connect()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is used to initialize your session?

session_close()

session_start()

session_unset()

session_destroy()

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is used to retrieve the number of rows in a result set?

mysqli_num_rows()

mysql_num_rows()

pdo_num_rows()

sql_num_rows()

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which SQL statement is used to extract data from a database?

SELECT

INSERT

UPDATE

DELETE

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?