131. Which of the below is most useful for debugging:
132. What is the value of message?
$name = “John”;
$message = ‘Hello, $name’;
$name = “John”;
$message = ‘Hello, $name’;
133. The result of below statements will be:
$str = ""Hello fri3nd, you're
feeling happy today?”;
echo str_word_count($str);
$str = ""Hello fri3nd, you're
feeling happy today?”;
echo str_word_count($str);
134. PHP recognises constructors by the name . . . . .
135. In . . . . . constructors, it is important to remember that you have to call the parent constructor explicitly.
136. Constructor and destructor methods have no . . . . . . and are called automatically - they cannot be called explicitly and consequently their declarations need no access specifier.
137. Unlike constructors, you cannot pass information to a destructor, because you are never sure when its going to be run.
138. You can invoke class constructors that don’t have any relation to the instantiated object by simply prefacing _constructor with the class name like.
139. . . . . . . is a class which can only be instantiated once. You can effectively only have one object per . . . . . class in an application.
140. Even if you don’t delete the object yourself using . . . . . , PHP still calls the destructor when it determines that the object is no longer used.
Read More Section(Object Oriented Concept)
Each Section contains maximum 100 MCQs question on Object Oriented Concept. To get more questions visit other sections.