PHP Quiz for dummies #4 - Statistics

General Stats
  • This quiz has been taken 10 times
  • The average score is 8 of 14
Answer Stats
Question Answer % Correct
What will be executed from the code below? $a = 12; ($a == 12) ? 5 : 1 5
75%
Which of the following statements is/are true about Constructors in PHP ? All of the Above
75%
Which of the following function can be used to get an array in the reverse order ? array_reverse()
75%
Which of the following method can be used to close a MySQL database using PHP ? mysql_close()
75%
Which of the below statements is equivalent to $num += $num $num = $num + $num;
75%
Which function can be used to move the pointer to the previous array position ? prev()
75%
Which of the following function is used to locate a string within a string ? strpos()
75%
Which one of the following keyword is used to inherit our subclass into a superclass ? extends
50%
Which of the below symbols is a newline character ? \n
50%
Which one of the following is the right way to invoke a method ? $object->methodName();
50%
Which keyword allows class members (methods and properties) to be used without needing to instantiate a new instance of the class ? static
50%
Which statement will output $x on the screen ? echo "\$x";
25%
If your object must inherit behavior from a number of sources you must use a/an? Interface
25%
Which of the following advanced OOP features is/are not supported by PHP ? All of the Above
0%
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