MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following PHP statement/statements will store 111 in variable num? |
| A. | Both i) and ii) |
| B. | i), ii), iii) and iv) |
| C. | Only iii) |
| D. | Only i)View Answer |
| Answer» D. Only i)View Answer | |
| 2. |
How should we add a single line comment in our PHP code? |
| A. | Only ii) |
| B. | i), iii) and iv) |
| C. | ii), iii) and iv) |
| D. | Both ii) and iv)View Answer |
| Answer» D. Both ii) and iv)View Answer | |
| 3. |
Which version of PHP introduced Try/catch Exception? |
| A. | PHP 4 |
| B. | PHP 5 |
| C. | PHP 6 |
| D. | PHP 5 and later |
| Answer» E. | |
| 4. |
Which of the following must be installed on your computer so as to run PHP script? |
| A. | i), ii), iii) and iv) |
| B. | Only ii) |
| C. | ii) and iii) |
| D. | ii), iii) and iv)View Answer |
| Answer» E. | |
| 5. |
Which of the following is/are a PHP code editor? |
| A. | Only iv) |
| B. | i), ii), iii) and iv) |
| C. | i), ii) and iii) |
| D. | Only iii)View Answer |
| Answer» C. i), ii) and iii) | |
| 6. |
What should be the correct syntax to write a PHP code? |
| A. | < php > |
| B. | < ? php ?> |
| C. | <? ?> |
| D. | <?php ?> |
| Answer» D. <?php ?> | |
| 7. |
PHP files have a default file extension of_______ |
| A. | .html |
| B. | .xml |
| C. | .php |
| D. | .ph |
| Answer» D. .ph | |
| 8. |
What does PHP stand for? |
| A. | Both i) and iii) |
| B. | Both ii) and iv) |
| C. | Only ii) |
| D. | Both i) and ii)View Answer |
| Answer» E. | |