Question | Answer | % Correct |
---|---|---|
What will be executed from the code below? $a = 12; ($a == 12) ? 5 : 1 | 5 | 100%
|
Which of the following statements is/are true about Constructors in PHP ? | All of the Above | 100%
|
Which of the following function can be used to get an array in the reverse order ? | array_reverse() | 100%
|
Which of the following method can be used to close a MySQL database using PHP ? | mysql_close() | 100%
|
Which of the below statements is equivalent to $num += $num | $num = $num + $num; | 100%
|
Which one of the following is the right way to invoke a method ? | $object->methodName(); | 100%
|
Which function can be used to move the pointer to the previous array position ? | prev() | 100%
|
Which keyword allows class members (methods and properties) to be used without needing to instantiate a new instance of the class ? | static | 100%
|
Which of the following advanced OOP features is/are not supported by PHP ? | All of the Above | 67%
|
Which one of the following keyword is used to inherit our subclass into a superclass ? | extends | 67%
|
If your object must inherit behavior from a number of sources you must use a/an? | Interface | 67%
|
Which of the below symbols is a newline character ? | \n | 67%
|
Which of the following function is used to locate a string within a string ? | strpos() | 67%
|
Which statement will output $x on the screen ? | echo "\$x"; | 33%
|
Copyright H Brothers Inc, 2008–2024
Contact Us | Go To Top | View Mobile Site