

MCQOPTIONS
Saved Bookmarks
This section includes 26 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.
1. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | Nothing |
C. | Neha |
D. | Abhay |
E. | Sumi |
Answer» B. Nothing | |
2. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | Error |
C. | HelloInterviewMania |
D. | InterviewHelloMania |
E. | None of these |
Answer» E. None of these | |
3. |
What will be the output of the following PHP code ?
|
A. | 0 |
B. | Error |
C. | Nothing |
D. | g |
E. | None of these |
Answer» D. g | |
4. |
What will be the output of the following PHP code ?
|
A. | c |
B. | cc |
C. | ccc |
D. | cccc |
E. | ccccc |
Answer» F. | |
5. |
What will be the output of the following PHP code ?
|
A. | Neha |
B. | Sumi |
C. | SumiAbhay |
D. | Krishna |
E. | None of these |
Answer» D. Krishna | |
6. |
What will be the output of the following PHP code ?
|
A. | Interview 20 times |
B. | Interview |
C. | Mania |
D. | Mania 20 times |
E. | None of these |
Answer» D. Mania 20 times | |
7. |
What will be the output of the following PHP code ?
|
A. | AjitAtsAjuRahul |
B. | AjitAtsAju |
C. | AtsRahul |
D. | AjitAts |
E. | None of these |
Answer» D. AjitAts | |
8. |
What will be the output of the following PHP code ?
|
A. | AjitAtsAjuRahul |
B. | AjuAtsRahul |
C. | Error |
D. | Nothing |
E. | AjitAtsAju |
Answer» F. | |
9. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | Error |
C. | 012345......infinite time |
D. | 543210......infinite time |
E. | None of these |
Answer» B. Error | |
10. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 0-1-2-3-4 |
C. | 0-1-2-2-3-3-4-3-4 |
D. | Infinite loop |
E. | None of these |
Answer» E. None of these | |
11. |
What will be the output of the following PHP code ?
|
A. | d |
B. | dd |
C. | ddd |
D. | dddd |
E. | ddddd |
Answer» F. | |
12. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | 25 |
C. | Error |
D. | Infinite loop |
E. | None of these |
Answer» E. None of these | |
13. |
What will be the output of the following PHP code ?
|
A. | 1 |
B. | 2 |
C. | -5 |
D. | Error |
E. | None of these |
Answer» D. Error | |
14. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 2 |
C. | 24 |
D. | 246 |
E. | None of these |
Answer» E. None of these | |
15. |
What will be the output of the following PHP code ?
|
A. | ********* |
B. | ****** |
C. | *** |
D. | Error |
E. | Nothing |
Answer» B. ****** | |
16. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | Infinite loop |
C. | 678910 |
D. | 67891011 |
E. | None of these |
Answer» E. None of these | |
17. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | 10 |
C. | $n |
D. | Error |
E. | None of these |
Answer» E. None of these | |
18. |
What will be the output of the following PHP code ?
|
A. | 0 |
B. | Error |
C. | Nothing |
D. | g |
E. | None of these |
Answer» D. g | |
19. |
What will be the output of the following PHP code ?
|
A. | Interview |
B. | Interview 5 time |
C. | Mania |
D. | Mania 5 time |
E. | None of these |
Answer» C. Mania | |
20. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 10 |
C. | 45 |
D. | Nothing |
E. | None of these |
Answer» D. Nothing | |
21. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | Infinite loop |
C. | Error |
D. | 1357..........35 |
E. | None of these |
Answer» C. Error | |
22. |
What will be the output of the following PHP code ?
|
A. | After for loop statement executed... |
B. | Error |
C. | In for loop statement executed... |
D. | Nothing |
E. | None of these |
Answer» B. Error | |
23. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | In for loop executed... |
C. | After for loop statement executed... |
D. | Error |
E. | None of these |
Answer» D. Error | |
24. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | In for loop execute... |
C. | After loop executed... |
D. | Nothing |
E. | None of these |
Answer» D. Nothing | |
25. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | -4 |
C. | -6 |
D. | Error |
E. | None of these |
Answer» B. -4 | |
26. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | Nothing |
C. | -5-6-7-8-9........infinite time |
D. | -1-2-3-4-5-6-7 |
E. | None of these |
Answer» D. -1-2-3-4-5-6-7 | |