Home > Web Development > Quizzes > Advanced Web Technologies Practice Test: Introduction to Object Oriented Programming in PHP
Advanced Web Technologies Practice Test: Introduction to Object Oriented Programming in PHP
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 73% Most missed: “_______an object means converting it to a byte stream representation that can be…”
Advanced Web Technologies Practice Test: Introduction to Object Oriented Programming in PHP
Time left 00:00
25 Questions

1. _________ is a blue print of any object in OOP.
2. An _______ is one that cannot be instantiated, only inherited
3. _______an object means converting it to a byte stream representation that can be stored into file.
4. Which keyword allows class members (methods and properties) to be used without needing to instantiate a new instance of the class?
5. the _____function returns the square root of a number:
6. The _____ method starts with two underscores (__).
7. Which of the following statements are true is/are true about constructors in PHP? (i) PHP 4 introduced class constructors. (ii) Constructors can accept parameters. (iii) Constructors can call class methods or other functions (iv) Class constructors can call on other constructors.
8. The _____ function returns the absolute (positive) value of a number:
9. Constant name are proceeded by _____ like a normal variable declaration.
10. Which method scope prevents a method from being overridden by a subclass?
11. In PHP7, you can create an Array constant using the ____ function.
12. The ability to hide the details of implementation is known as _____.
13. The index can be assigned automatically (index always starts at 0), like this: $cars = array('Volvo', 'BMW', 'Toyota');
14. An _____ is an instance or occurrence of our class.....
15. If you create a __construct() function, PHP will automatically call this function when you create an object from a class.
16. If you create a __destruct() function, PHP will automatically call this function at the end of the script.
17. A ______allows you to initialize an object's properties upon creation of the object.
18. A ______is called when the object is destructed or the script is stopped or exited.
19. The _____function rounds a floating-point number to its nearest integer:
20. A class property used by another class is called ______.
21. Which one of the following functions is used to determine whether a class exists?
22. A ______is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.
23. _________is used to support multiple inheritance
24. A ______ is a way to store information (in variables) to be used across multiple pages.
25. In PHP, there are three types of arrays: