MCQOPTIONS
Saved Bookmarks
This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What will be the output of the following PHP code ?? |
| A. | infinite loop |
| B. | 0 |
| C. | no output |
| D. | error |
| Answer» D. error | |
| 2. |
What will be the output of the following PHP code ?? |
| A. | AshleyBaleBlank |
| B. | BaleShrek |
| C. | AshleyBlank |
| D. | Bale |
| Answer» C. AshleyBlank | |
| 3. |
What will be the output of the following PHP code ?? |
| A. | hihellohi1 |
| B. | hi |
| C. | hihello |
| D. | hello |
| Answer» E. | |
| 4. |
What will be the output of the following PHP code ?? |
| A. | hi |
| B. | hello |
| C. | error |
| D. | no output |
| Answer» B. hello | |
| 5. |
What will be the output of the following PHP code ?? |
| A. | hello |
| B. | no output |
| C. | hi |
| D. | error |
| Answer» B. no output | |
| 6. |
What will be the output of the following PHP code ?? |
| A. | 0 |
| B. | 1 |
| C. | error |
| D. | no output |
| Answer» D. no output | |
| 7. |
What will be the output of the following PHP code ?? |
| A. | true |
| B. | false |
| C. | error |
| D. | no output |
| Answer» B. false | |
| 8. |
What will be the output of the following PHP code ?? |
| A. | how are u |
| B. | hi |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 9. |
What will be the output of the following PHP code ? |
| A. | hi |
| B. | no output |
| C. | error |
| D. | how are u |
| Answer» E. | |
| 10. |
What will be the output of the following PHP code ? |
| A. | In for loopIn for loopIn for loopIn for loop……infinitely |
| B. | After for loopAfter for loopAfter for loop……..infinitely |
| C. | In for loopAfter for loopIn for loopAfter for loopIn for loopAfter for loop…..infinitely |
| D. | After for loop |
| Answer» B. After for loopAfter for loopAfter for loop‚Äö√Ѭ∂‚Äö√Ѭ∂..infinitely | |
| 11. |
What will be the output of the following PHP code ? |
| A. | ********** |
| B. | ********* |
| C. | *********** |
| D. | infinite loop |
| Answer» C. *********** | |
| 12. |
What will be the output of the following PHP code ? |
| A. | 00000000000000000000….infinitely |
| B. | -1-1-1-1-1-1-1-1-1-1…infinitely |
| C. | no output |
| D. | error |
| Answer» B. -1-1-1-1-1-1-1-1-1-1‚Äö√Ѭ∂infinitely | |
| 13. |
What will be the output of the following PHP code ? |
| A. | 4hello4hello4hello4hello4hello…..infinite |
| B. | 5hello5hello5hello5hello5hello…..infinite |
| C. | no output |
| D. | error |
| Answer» B. 5hello5hello5hello5hello5hello‚Äö√Ѭ∂..infinite | |
| 14. |
What will be the output of the following PHP code ? |
| A. | 0 |
| B. | infinite loop |
| C. | 01 |
| D. | 1 |
| Answer» E. | |
| 15. |
What will be the output of the following PHP code ? |
| A. | hihihi |
| B. | hihellohihellohihello |
| C. | hellohellohello |
| D. | hi |
| Answer» B. hihellohihellohihello | |
| 16. |
What will be the output of the following PHP code ? |
| A. | 0 1 2 3 4 |
| B. | 0 1 2 3 |
| C. | 0 1 2 3 4 5 |
| D. | error |
| Answer» C. 0 1 2 3 4 5 | |
| 17. |
What will be the output of the following PHP code ? |
| A. | AshleyBaleBlank |
| B. | Bale |
| C. | AshleyShrek |
| D. | BaleBlank |
| Answer» B. Bale | |
| 18. |
What will be the output of the following PHP code ? |
| A. | hihellohi1 |
| B. | hi |
| C. | hihello |
| D. | hi1 |
| Answer» C. hihello | |
| 19. |
What will be the output of the following PHP code ? |
| A. | hello |
| B. | hi |
| C. | no output |
| D. | error |
| Answer» D. error | |
| 20. |
What will be the output of the following PHP code ? |
| A. | hi |
| B. | hello |
| C. | error |
| D. | no output |
| Answer» D. no output | |
| 21. |
What will be the output of the following PHP code ? |
| A. | how are u |
| B. | hi |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 22. |
What will be the output of the following PHP code ? |
| A. | 0 |
| B. | 1 |
| C. | error |
| D. | how are u |
| Answer» E. | |
| 23. |
What will be the output of the following PHP code ? |
| A. | true |
| B. | false |
| C. | error |
| D. | no output |
| Answer» D. no output | |
| 24. |
What will be the output of the following PHP code ? |
| A. | all |
| B. | some |
| C. | error |
| D. | no output |
| Answer» B. some | |
| 25. |
What will be the output of the following PHP code? |
| A. | how are u |
| B. | hi |
| C. | error |
| D. | no output |
| Answer» B. hi | |
| 26. |
What will be the output of the following PHP code ? |
| A. | In for loop |
| B. | After for loop |
| C. | In for loopAfter for loop |
| D. | Infinite loop |
| Answer» C. In for loopAfter for loop | |
| 27. |
What will be the output of the following PHP code ? |
| A. | 123456789101112 |
| B. | 12345678910 |
| C. | 1234567891011 |
| D. | infinite loop |
| Answer» B. 12345678910 | |
| 28. |
What will be the output of the following PHP code ? |
| A. | 1234567891011121314….infinitely |
| B. | 01234567891011121314…infinitely |
| C. | no output |
| D. | error |
| Answer» D. error | |
| 29. |
What will be the output of the following PHP code ? |
| A. | hello |
| B. | infinite loop |
| C. | hihello |
| D. | error |
| Answer» C. hihello | |
| 30. |
What will be the output of the following PHP code ? |
| A. | 2 |
| B. | 3 |
| C. | 0 |
| D. | 1 |
| Answer» C. 0 | |