MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the description of Error level E_ERROR? |
| A. | Fatal run-time error |
| B. | Near-fatal error |
| C. | Compile-time error |
| D. | Fatal Compile-time error |
| E. | |
| Answer» B. Near-fatal error | |
| 2. |
Which of the following is not specialized keywords in exception handling. |
| A. | try |
| B. | catch |
| C. | throw |
| D. | this |
| Answer» E. | |
| 3. |
Why Exception Handling in PHP used? |
| A. | Separation of error handling code from normal code |
| B. | Grouping of error types |
| C. | Both A And B |
| D. | None of the above |
| Answer» D. None of the above | |
| 4. |
what is throw block do? |
| A. | It represent block of code in which exception can arise. |
| B. | It is used in place of catch block or after catch block . |
| C. | It is used to throw an exception. |
| D. | None of the above |
| Answer» D. None of the above | |
| 5. |
what is finally block do? |
| A. | It represent block of code in which exception can arise. |
| B. | It is used in place of catch block or after catch block . |
| C. | It is used to throw an exception. |
| D. | None of the above |
| Answer» C. It is used to throw an exception. | |
| 6. |
what is try block do? |
| A. | It represent block of code in which exception can arise. |
| B. | It is used in place of catch block or after catch block . |
| C. | It is used to throw an exception. |
| D. | None of the above |
| Answer» B. It is used in place of catch block or after catch block . | |
| 7. |
In Which php version Exception handling was added? |
| A. | PHP 5.1 |
| B. | PHP 5.2 |
| C. | PHP 5.3 |
| D. | PHP 5 |
| Answer» E. | |