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. | ello |
| B. | i |
| C. | o output |
| D. | rror |
| Answer» D. rror | |
| 2. |
What will be the output of the following PHP code ? |
| A. | ello |
| B. | i |
| C. | o output |
| D. | rror |
| Answer» D. rror | |
| 3. |
What will be the output of the following PHP code ? |
| A. | 0 |
| B. | nfinite loop |
| C. | o output |
| D. | rror |
| Answer» C. o output | |
| 4. |
What will be the output of the following PHP code ? |
| A. | 4 |
| B. | 34 |
| C. | 234 |
| Answer» B. 34 | |
| 5. |
What will be the output of the following PHP code ? |
| A. | ihihi |
| B. | ihellohihellohihello |
| C. | ellohellohello |
| D. | i |
| Answer» E. | |
| 6. |
What will be the output of the following PHP code ? |
| A. | ihihi |
| B. | ihellohihellohihello |
| C. | ellohellohello |
| D. | i |
| Answer» B. ihellohihellohihello | |
| 7. |
What will be the output of the following PHP code ? |
| A. | shleyBaleBlank |
| B. | shleyBale |
| C. | shleyBaleShrek |
| D. | o output |
| Answer» B. shleyBale | |
| 8. |
What will be the output of the following PHP code ? |
| A. | nfinite loop |
| B. | 1 2 3 4 5 |
| C. | 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 0 1 2 3 4 5 |
| D. | o output |
| Answer» E. | |
| 9. |
What will be the output of the following PHP code ? |
| A. | nfinite loop |
| B. | 1 2 3 4 5 |
| C. | 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 0 1 2 3 4 5 |
| D. | o output |
| Answer» B. 1 2 3 4 5 | |
| 10. |
What will be the output of the following PHP code ? |
| A. | 1 2 3 4 |
| B. | 1 2 3 |
| C. | 1 2 3 4 5 |
| D. | rror |
| Answer» C. 1 2 3 4 5 | |
| 11. |
What will be the output of the following PHP code ? |
| A. | ihellobye |
| B. | nfinite loop |
| C. | ihello |
| D. | o output |
| Answer» E. | |
| 12. |
What will be the output of the following PHP code ? |
| A. | iiii |
| B. | nfinite loop |
| C. | iiiiiiiiiiiiiiiiiiiiiiii |
| D. | o output |
| Answer» B. nfinite loop | |
| 13. |
What will be the output of the following PHP code ? |
| A. | rror |
| B. | nfinite loop |
| C. | o output |
| Answer» C. o output | |
| 14. |
What will be the output of the following PHP code ? |
| A. | shleyBaleBlank |
| B. | aleShrek |
| C. | shleyBlank |
| D. | ale |
| Answer» C. shleyBlank | |
| 15. |
What will be the output of the following PHP code ? |
| A. | shleyBaleBlank |
| B. | ale |
| C. | shleyShrek |
| D. | aleBlank |
| Answer» B. ale | |
| 16. |
What will be the output of the following PHP code ? |
| A. | rrayArrayArrayArrayArrayArray….infinitely |
| B. | “hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)…infinitely |
| C. | ihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely |
| D. | o output |
| Answer» B. “hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)…infinitely | |
| 17. |
What will be the output of the following PHP code ?~! |
| A. | ArrayArrayArrayArrayArrayArray….infinitely |
| B. | (“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)…infinitely |
| C. | hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely |
| D. | no output |
| Answer» B. (‚Äö√Ñ√∫hi‚Äö√Ñ√π,‚Äö√Ñ√πhello‚Äö√Ñ√π,‚Äö√Ñ√πbye‚Äö√Ñ√π)(‚Äö√Ñ√∫hi‚Äö√Ñ√π,‚Äö√Ñ√πhello‚Äö√Ñ√π,‚Äö√Ñ√πbye‚Äö√Ñ√π)(‚Äö√Ñ√∫hi‚Äö√Ñ√π,‚Äö√Ñ√πhello‚Äö√Ñ√π,‚Äö√Ñ√πbye‚Äö√Ñ√π)(‚Äö√Ñ√∫hi‚Äö√Ñ√π,‚Äö√Ñ√πhello‚Äö√Ñ√π,‚Äö√Ñ√πbye‚Äö√Ñ√π)‚Äö√Ѭ∂infinitely | |
| 18. |
What will be the output of the following PHP code ?%! |
| A. | true |
| B. | false |
| C. | error |
| D. | no output |
| Answer» B. false | |
| 19. |
What will be the output of the following PHP code ?%! |
| A. | all |
| B. | some |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 20. |
What will be the output of the following PHP code ?%! |
| A. | hello |
| B. | infinite loop |
| C. | hihello |
| D. | error |
| Answer» C. hihello | |
| 21. |
What will be the output of the following PHP code ?%! |
| A. | 1234567891011121314….infinitely |
| B. | 01234567891011121314…infinitely |
| C. | 1 |
| D. | 0 |
| Answer» B. 01234567891011121314‚Äö√Ѭ∂infinitely | |
| 22. |
What will be the output of the following PHP code ?%! |
| A. | 0 |
| B. | infinite loop |
| C. | no output |
| D. | error |
| Answer» E. | |
| 23. |
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» D. Infinite loop | |
| 24. |
What will be the output of the following PHP code ?%! |
| A. | 20 |
| B. | 19 |
| C. | 12345678910….19 |
| D. | 12345678910….1920 |
| Answer» B. 19 | |
| 25. |
What will be the output of the following PHP code ?%! |
| A. | hihellohi1 |
| B. | no output |
| C. | hihi1 |
| D. | hi1 |
| Answer» C. hihi1 | |
| 26. |
What will be the output of the following PHP code ?%! |
| A. | hi |
| B. | hihello |
| C. | error |
| D. | no output |
| Answer» D. no output | |
| 27. |
What will be the output of the following PHP code ?%! |
| A. | hellolength |
| B. | 5 |
| C. | hi |
| D. | error |
| Answer» B. 5 | |
| 28. |
What will be the output of the following PHP code ?%! |
| A. | 2 |
| B. | 3 |
| C. | 0 |
| D. | 1 |
| Answer» C. 0 | |
| 29. |
What will be the output of the following PHP code ?%! |
| A. | 1hello |
| B. | 1hi |
| C. | 1hi1 |
| D. | error |
| Answer» C. 1hi1 | |
| 30. |
What will be the output of the following PHP code ?%! |
| A. | hihellobye |
| B. | infinite loop |
| C. | hihello |
| D. | no output |
| Answer» E. | |
| 31. |
*$_What will be the output of the following PHP code ?? |
| A. | 10 |
| B. | infinite loop |
| C. | no output |
| D. | error |
| Answer» C. no output | |
| 32. |
*$_What will be the output of the following PHP code ?? |
| A. | hihellobye |
| B. | infinite loop |
| C. | hihello |
| D. | no output |
| Answer» E. | |
| 33. |
*/*_What will be the output of the following PHP code ?? |
| A. | 1hello |
| B. | 1hi |
| C. | 1hi1 |
| D. | error |
| Answer» C. 1hi1 | |
| 34. |
*/*_What will be the output of the following PHP code ?? |
| A. | 2 |
| B. | 3 |
| C. | 0 |
| D. | 1 |
| Answer» C. 0 | |
| 35. |
*/*_What will be the output of the following PHP code ?? |
| A. | hellolength |
| B. | 5 |
| C. | hi |
| D. | error |
| Answer» B. 5 | |
| 36. |
*/*_What will be the output of the following PHP code ?? |
| A. | hihellohi1 |
| B. | no output |
| C. | hihi1 |
| D. | hi1 |
| Answer» C. hihi1 | |
| 37. |
*/*_What will be the output of the following PHP code ?? |
| A. | hi |
| B. | hihello |
| C. | error |
| D. | no output |
| Answer» D. no output | |
| 38. |
*/*_What will be the output of the following PHP code ?? |
| A. | all |
| B. | some |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 39. |
*/*_What will be the output of the following PHP code ?? |
| A. | how are u |
| B. | hi |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 40. |
*/*_What will be the output of the following PHP code ?? |
| A. | true |
| B. | false |
| C. | error |
| D. | no output |
| Answer» B. false | |
| 41. |
*/*_What will be the output of the following PHP code ?? |
| A. | 20 |
| B. | 19 |
| C. | 12345678910….19 |
| D. | 12345678910….1920 |
| Answer» B. 19 | |
| 42. |
*/*_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» D. Infinite loop | |
| 43. |
*/*_What will be the output of the following PHP code ?? |
| A. | 0 |
| B. | infinite loop |
| C. | no output |
| D. | error |
| Answer» E. | |
| 44. |
*/*_What will be the output of the following PHP code ?? |
| A. | 1234567891011121314….infinitely |
| B. | 01234567891011121314…infinitely |
| C. | 1 |
| D. | 0 |
| Answer» B. 01234567891011121314‚Äö√Ѭ∂infinitely | |
| 45. |
*/*_What will be the output of the following PHP code ?? |
| A. | hello |
| B. | infinite loop |
| C. | hihello |
| D. | error |
| Answer» C. hihello | |
| 46. |
*/*_What will be the output of the following PHP code ?? |
| A. | true |
| B. | false |
| C. | error |
| D. | no output |
| Answer» E. | |
| 47. |
*/*_What will be the output of the following PHP code ?? |
| A. | 0 |
| B. | infinite loop |
| C. | -1 |
| D. | 1 |
| Answer» D. 1 | |
| 48. |
*/*_What will be the output of the following PHP code ?? |
| A. | all |
| B. | some |
| C. | error |
| D. | no output |
| Answer» D. no output | |
| 49. |
*/*_What will be the output of the following PHP code ?? |
| A. | Hi is printed 8 times, hello 7 times and then hi 2 times |
| B. | Hi is printed 10 times, hello 7 times |
| C. | Hi is printed once, hello 7 times |
| D. | Hi is printed once, hello 7 times and then hi 2 times |
| Answer» E. | |
| 50. |
*/*_What will be the output of the following PHP code ?? |
| A. | 54321111111….infinitely |
| B. | 555555555…infinitely |
| C. | 54321 |
| D. | 5 |
| Answer» B. 555555555‚Äö√Ѭ∂infinitely | |