MCQs
Total Questions : 147
| Page 7 of 15 pages
Answer: Option A. -> extends
Answer: Option B. -> public $name;
Answer: Option D. -> $this
Answer: Option C. -> static
Answer: Option C. -> 1 and 2
Answer: Option B. -> destinationObject = clone targetObject;
Answer: Option B. -> PHP 5
Answer: Option D. -> 2 and 4
Question 69. Which of the following is/are true for an abstract class?
1. A class is declared abstract by prefacing the definition with the word abstract.
2. A class is declare abstract by using the keyword implements.
3. It is a class that really isn’t supposed to ever be instantiated but instead serves as a base class.
4. Attempting to instantiate an abstract class results in an error.
1. A class is declared abstract by prefacing the definition with the word abstract.
2. A class is declare abstract by using the keyword implements.
3. It is a class that really isn’t supposed to ever be instantiated but instead serves as a base class.
4. Attempting to instantiate an abstract class results in an error.
Answer: Option A. -> Only 2
Answer: Option A. -> Interface