Home > PHP & Programming > Quizzes > Practice Test: Classes And Objects In PHP
Practice Test: Classes And Objects In PHP
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 50% Most missed: “… returns a string containing a byte-stream representation of any value that can…”
Practice Test: Classes And Objects In PHP
Time left 00:00
20 Questions

1. The …. function returns an associative array containing the names of all properties and their corresponding values defined within the class specified by class_name.
2. The … method is called when a script tries to call an object as a function.
3. The …. function returns TRUE if a method named method_name is available to object and returns FALSE otherwise.
4. The …. function returns an associative array containing the names of all properties and their corresponding values defined within the class specified by class_name.
5. The …. function allows the class to be referred to by more than one name.
6. … returns a string containing a byte-stream representation of any value that can be stored in PHP.
7. The function … can be used to retrieve a string with the name of the called class.
8. The …. function returns the name of the parent of the class to which the object belongs.
9. … is used to commit pending data or perform similar cleanup tasks.
10. … is invoked when uset() is used on inaccessible or non-existing properties.
11. The …. function returns an array containing the names of all classes defined within the currently executing script.
12. The …. function returns an associative containing the defined properties available to object and their corresponding values.
13. The …. function returns an array containing all method names defined by the class_name.
14. … is used to re-establish any database connections that may have been lost during serialization and perform other reinitialization tasks.
15. The …. function returns the name of the parent of the class to which the object belongs.
16. … is triggred by calling isset() or empty() on inaccessible or non-existing properties.
17. The …. function returns TRUE if the class specified by class_name exists within the currently executing script context and returns FALSE otherwise.
18. The …. function allows the class to be referred to by more than one name.
19. The …. function determines whether an interface exists, returning TRUE if it does, and FALSE otherwise.
20. The …. function returns TRUE if the class specified by class_name exists within the currently executing script context and returns FALSE otherwise.