Statistics for PHP Quiz for dummies #3

Click here to take the quiz!

General Stats

  • This quiz has been taken 5 times
  • The average score is 11 of 15

Answer Stats

QuestionAnswer% Correct
Which of the following type of variables have only two possible values either true or false?Boolean
100%
The (2>0 && 4>5) condition will return what in PHPFalse
100%
What function do you use in PHP in order to access MySQL?mysql_connect()
100%
PHP is Scripting languageServer Side
100%
The (2>0 || 4>5) condition will return what in PHPTrue
100%
Which of the following keyword terminates the for loop or switch statement and transfers execution to the statement immediately following the for loop or switch?Break
75%
Which of the following magic constant of PHP returns function name?_FUNCTION_
75%
Which of the following is correct about preg_match() function?The preg_match() function searches string for pattern, returning true if pattern exists, and false otherwise.
75%
Can you assign the default values to a function parameters?True
75%
Which of the following is correct for PHP variables?All of the above.
50%
Which of the following function returns selected parts of an array?array_slice();
50%
In PHP, which function is used to convert a JSON string into a PHP variable?json_decode()
50%
What does the 'PDO' stand for in PHP?PHP Database Object
50%
What is the purpose of the 'session_start()' function in PHP?Starts new or resume existing session
50%
Select the correct code to create a associative array in PHPBoth of the above.
25%

Score Distribution

Percentile by Number Answered

Percent of People with Each Score

Your Score History

You have not taken this quiz