51.
Which one of the following is the right way to define a constant?

54.
Which of the following is/are the right way to declare a method?
1. function functionName() { function body }
2. scope function functionName() { function body }
3. method methodName() { method body }
4. scope method methodName() { method body }

55.
Which of the following method scopes is/are not supported by PHP?
1. private
2. final
3. static
4 abstract

57.
Which of the following statements is/are true about Constructors in PHP?
1. PHP 4 introduced class constructors.
2. Constructors can accept parameters.
3. Constructors can call class methods or other functions.
4. Class constructors can call on other constructors.

58.
PHP recognizes constructors by the name_________

59.
Which version of PHP introduced the instanceof keyword?

60.
Which one of the following functions is used to determine whether a class exists?

Read More Section(Object Oriented Concept)

Each Section contains maximum 100 MCQs question on Object Oriented Concept. To get more questions visit other sections.