Filters
Question type

Study Flashcards

PEAR stands for ________________________________________.

Correct Answer

verifed

verified

PHP Extens...

View Answer

The ____ command with a mysql_query() function executes successfully if the table already exists.


A) SHOW EXISTING TABLE
B) SHOW MATCHING TABLE
C) SHOW SAME TABLE
D) SHOW TABLES LIKE

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

The mysqli package is the object-oriented equivalent of the mysql package.

A) True
B) False

Correct Answer

verifed

verified

With an INSERT query, the ___ function returns the number of records added and duplicated along with the number of warnings.


A) mysql_update_info()
B) mysql_info()
C) mysql_update()
D) mysql_info_update()

E) A) and C)
F) B) and C)

Correct Answer

verifed

verified

To add multiple records to a database from an external file, you use the ____ statement with the name of the local text file that contains the records you want to add.


A) INSERT DATA
B) LOAD DATA
C) INSERT RECORDS
D) UPLOAD RECORDS

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

A list of records that are returned from a query is called a resultset.

A) True
B) False

Correct Answer

verifed

verified

To create a table, use the ____________________ statement with the mysql_query() function.

Correct Answer

verifed

verified

The mysql_connect() function returns a 1 if it connects to the database successfully or 0 if it doesn't.

A) True
B) False

Correct Answer

verifed

verified

To delete records in a table, use the keywords ____.


A) DELETE, RECORD
B) DELETE, WHERE
C) REMOVE, WHERE
D) REMOVE, RECORD

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

When adding a record to a table, you can specify ____________________ in any fields for which you do not have a value.

Correct Answer

verifed

verified

The ____________________ function returns the number of rows in a query result.

Correct Answer

verifed

verified

The ___ function returns a text string describing the error in PHP code.


A) mysql_error()
B) mysql_errno()
C) mysql_err()
D) mysql_error_number()

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

To delete records in a table, use the DELETE and WHERE keywords with the mysql_query() function.

A) True
B) False

Correct Answer

verifed

verified

If you are connecting to an instance of the MySQL database server that is running on the same server as the PHP scripting engine, use a value of ____________________ or "127.0.0.1" for the host argument.

Correct Answer

verifed

verified

The error control operator disables error checking.

A) True
B) False

Correct Answer

verifed

verified

The mysql_close() function is used to explicitly close a database connection.

A) True
B) False

Correct Answer

verifed

verified

The NOT NULL keywords are often used with primary keys to require that a field include a value.

A) True
B) False

Correct Answer

verifed

verified

To delete all the records in a table, you use the DELETE statement but omit the ____________________ keyword.

Correct Answer

verifed

verified

To change records in a table, use the UPDATE keyword to specify the name of the table to update and the ___ keyword to specify the value to assign to the fields in the records that match the condition in the WHERE keyword.


A) CHANGE
B) INSERT
C) PUT
D) SET

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

You pass the mysql_close() function the database ____________________ variable to close the database.

Correct Answer

verifed

verified

Showing 21 - 40 of 84

Related Exams

Show Answer