PHP and MySQL Web Development: Chapters 1, 2, & 3 Quiz

¡Supera tus tareas y exámenes ahora con Quizwiz!

Which of the following is NOT a problem of working with flat files in PHP?

When a file becomes small, working with it can be very slow

Which of the following fopen() file modes denotes 'cautious write'?

X

The three different PHP sorting functions are sort() asort(), and

ksort()

The __________ construct can be used to split an array into a number of values.

list()

Which of the following is a PHP function used to declare constants?

Define

Which of the following statements is false concerning PHP identifiers?

Identifiers are case insensitive.

The PHP constant ____________ will sort an array as strings depending on the current locale.

SORT_LOCALE_STRING

What kind of PHP variable stores a single value?

Scalar

What is the purpose of the semicolon in PHP?

Statement termination

Which of the following PHP data types stores only true or false values?

Boolean

Which of the following PHP array operators signifies non-identity?

!==

Which of the following statements tests for equality between the PHP variables $a and $b?

$a == $b

Which of the following expression shows a correct PHP array definition?

$products = ['Tires', 'Oil', 'Spark Plugs'];

Which of the following symbol represents a single-line comment in PHP?

//

PHP indexes start at ________ by default.

0

In PHP writing data to a file requires how many steps?

3

How does the PHP engine process whitespace?

Ignores it

Which of the following represents a reading lock of the flock() function?

LOCK_SH

An array containing other arrays is known as a(n) ___________ array.

Multidimensional

In PHP which bitwise operation is signified by the pipe (|) character?

OR

MySQL is an example of a(n):

RDBMS

The _________ function modifies every element in an array the same way.

array_walk()

PHP string interpolation requires:

double quotation marks

Which of the following is an example of a short-style PHP tag?

echo '<p>Order processed.</p>';

In PHP, a while loop tests for the end of the file by using which function?

feof()

The statement $products{0} access the ________ element in an array.

first

To open a file in PHP you use the _________ function

fopen ()

The _________ function reads an arbitrary number of bytes from a file.

fread()

Which of the following is an alternative to the PHP file_put_contents() function?

fwrite()

Disable PHP from opening files via fopen() and FTP by editing:

php.ini


Conjuntos de estudio relacionados

exam 2 study ch 5-7 quiz answers

View Set

CC exam 1 (ch 11, 12, 13, 14, 15)

View Set

Intermediate Accounting Final Notecards 1

View Set

Study Session 15: Readying 54: Introduction to Asset-Backed Securities

View Set