PHP Quiz for dummies #3 - Statistics

General Stats
  • This quiz has been taken 13 times
  • The average score is 10 of 15
Answer Stats
Question Answer % 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 PHP False
100%
PHP is Scripting language Server Side
100%
Can you assign the default values to a function parameters? True
100%
The (2>0 || 4>5) condition will return what in PHP True
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%
What function do you use in PHP in order to access MySQL? mysql_connect()
75%
Which of the following is correct for PHP variables? All of the above.
50%
Select the correct code to create a associative array in PHP Both of the above.
50%
In PHP, which function is used to convert a JSON string into a PHP variable? json_decode()
50%
What is the purpose of the 'session_start()' function in PHP? Starts new or resume existing session
50%
Which of the following function returns selected parts of an array? array_slice();
25%
What does the 'PDO' stand for in PHP? PHP Database Object
25%
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.
25%
No matching quizzes found
Score Distribution
Percent of People with Each Score
Percentile by Number Answered
Your Score History
You have not taken this quiz