Explore topic-wise MCQs in PHP Questions & Answers Exception Handling.

This section includes 1 Mcqs, each offering curated multiple-choice questions to sharpen your PHP Questions & Answers Exception Handling knowledge and support exam preparation. Choose a topic below to get started.

1.

Which one of the following is the right description for the method getMessage()?

A. Returns the message if it is passed to the constructor
B. Returns the message if it is passed to the class
C. Returns the message if it is passed to the file
D. Returns the message if it is passed to the object
Answer» B. Returns the message if it is passed to the class