Vidyalelo
PHP · all questions

Object Oriented Concept
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

141

Questions

5/8

Page

Pick an option on a question to see the right answer and solution.

Which keyword can be used to fix the above error?

Select an option to see the answer and solution.

Which one of the following statements is true for include_once() and require_once()?

Select an option to see the answer and solution.

Which one of the following statements is true for require() and require_once()?

Select an option to see the answer and solution.

Which function was introduced to help automate the inclusion of class files?

Select an option to see the answer and solution.

How many times can you define _______ autoload in a process?

Select an option to see the answer and solution.

Which one of the following functions will you use to check that the class exists before you work with it?

Select an option to see the answer and solution.

Which one of the following will you use to check the class of an object?

Select an option to see the answer and solution.

PHP 4 did not support instanceof. Instead, which function did it provide?

Select an option to see the answer and solution.

You use the get_class_methods() function to return the names of all the methods in the class. Which function will you use to print it on the screen?

Select an option to see the answer and solution.

If you call a method and it doesn’t exist it’ll cause a problem. To check the method which function will you use?

Select an option to see the answer and solution.

What will be the output if a protected method is given as argument to the function method_exist()?

Select an option to see the answer and solution.

Which one of the following function should I use to find the parent class of a class?

Select an option to see the answer and solution.

Which class accepts a class name or an object reference and returns an array of interface name?

Select an option to see the answer and solution.

Object-oriented code tries to minimize dependencies by moving responsibility for handling tasks away from _______ and toward the objects in the system.

Select an option to see the answer and solution.

Placing a static method for generating _______ objects in the ________ class is convenient.

Select an option to see the answer and solution.

The extent to which proximate procedures are related to one another is known as.

Select an option to see the answer and solution.

______ occurs when discrete parts of a system’s code are tightly bound up with one another so that a change in one part necessitates changes in the others.

Select an option to see the answer and solution.

________ code makes change easier because the impact of altering an implementation will be localized to the component being altered.

Select an option to see the answer and solution.

Polymorphism is also known as______

Select an option to see the answer and solution.

Which one of the following is know as the key to object-oriented programming?

Select an option to see the answer and solution.