

MCQOPTIONS
Saved Bookmarks
This section includes 50 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. | Interview |
C. | Mania |
D. | Interview Mania |
E. | None of these |
Answer» E. None of these | |
2. |
What will be the output of the following PHP code ?
|
A. | Mania |
B. | Inter |
C. | view |
D. | Inter$view |
E. | None of these |
Answer» E. None of these | |
3. |
What will be the output of the following PHP code ?
|
A. | view |
B. | error |
C. | Mania |
D. | Inter{$str}Mania |
E. | None of these |
Answer» E. None of these | |
4. |
What will be the output of the following PHP code ?
|
A. | InterMania |
B. | InterviewMania |
C. | Error |
D. | ManiaInter |
E. | None of these |
Answer» C. Error | |
5. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 8 |
C. | Nothing |
D. | 0 |
E. | None of these |
Answer» C. Nothing | |
6. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 15 |
C. | Nothing |
D. | 15.......infinite time |
E. | None of these |
Answer» E. None of these | |
7. |
What will be the output of the following PHP code ?
|
A. | 76543211111111......infinite time |
B. | Error |
C. | Nothing |
D. | 7654321 |
E. | None of these |
Answer» B. Error | |
8. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | nothing |
C. | Interview Mania......infinite time |
D. | 10Interview Mania.....infinite time |
E. | None of these |
Answer» E. None of these | |
9. |
What will be the output of the following PHP code ?
|
A. | Interview Mania |
B. | Interview |
C. | Mania |
D. | infinite loop |
E. | None of these |
Answer» E. None of these | |
10. |
What will be the output of the following PHP code ?
|
A. | Interview |
B. | infinite loop |
C. | Interview Mania |
D. | Mania |
E. | None of these |
Answer» D. Mania | |
11. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 12 |
C. | Nothing |
D. | 13131415 |
E. | None of these |
Answer» E. None of these | |
12. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 0 |
C. | Nothing |
D. | 5 |
E. | None of these |
Answer» E. None of these | |
13. |
What will be the output of the following PHP code ?
|
A. | 82 |
B. | 4 |
C. | 8 |
D. | Nothing |
E. | None of these |
Answer» B. 4 | |
14. |
What will be the output of the following PHP code ?
|
A. | true |
B. | 7 |
C. | 6 |
D. | true 67 |
E. | true 76 |
Answer» F. | |
15. |
What will be the output of the following PHP code ?
|
A. | 10 |
B. | 20 |
C. | True |
D. | 10True |
E. | True10 |
Answer» F. | |
16. |
What will be the output of the following PHP code ?
|
A. | 20 |
B. | 10 |
C. | True |
D. | True20 |
E. | None of these |
Answer» E. None of these | |
17. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 10 |
C. | 18 |
D. | 18.75 |
E. | None of these |
Answer» E. None of these | |
18. |
What will be the output of the following PHP code ?
|
A. | 10 |
B. | -8 |
C. | 111 |
D. | 2 |
E. | None of these |
Answer» D. 2 | |
19. |
What will be the output of the following PHP code ?
|
A. | 10 |
B. | 26.5 |
C. | 15 |
D. | 14 |
E. | 12 |
Answer» C. 15 | |
20. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 12 |
C. | Nothing |
D. | 1212 |
E. | None of these |
Answer» E. None of these | |
21. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 8 |
C. | 3 |
D. | 4 |
E. | None of these |
Answer» C. 3 | |
22. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | 20 |
C. | 25 |
D. | 45 |
E. | Error |
Answer» E. Error | |
23. |
What will be the output of the following PHP code ?
|
A. | 12 |
B. | Error |
C. | Nothing |
D. | 1219 |
E. | None of these |
Answer» E. None of these | |
24. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | 11812 |
C. | 12811 |
D. | Error |
E. | Nothing |
Answer» C. 12811 | |
25. |
What will be the output of the following PHP code ?
|
A. | 10 |
B. | 15 |
C. | Error |
D. | 16 |
E. | 11 |
Answer» D. 16 | |
26. |
What will be the output of the following PHP code ?
|
A. | 10 |
B. | 15 |
C. | Nothing |
D. | Error |
E. | None of these |
Answer» E. None of these | |
27. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 25 |
C. | 26 |
D. | 10 |
E. | None of these |
Answer» C. 26 | |
28. |
What will be the output of the following PHP code ?
|
A. | 15 |
B. | 1 |
C. | 8 |
D. | 7 |
E. | None of these |
Answer» B. 1 | |
29. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | Nothing |
C. | 13 |
D. | 14 |
E. | None of these |
Answer» B. Nothing | |
30. |
What will be the output of the following PHP code ?
|
A. | 5 |
B. | 3 |
C. | 1 |
D. | 0 |
E. | None of these |
Answer» D. 0 | |
31. |
What will be the output of the following PHP code ?
|
A. | 17 |
B. | 6 |
C. | -8 |
D. | 2 |
E. | None of these |
Answer» B. 6 | |
32. |
What will be the output of the following PHP code ?
|
A. | 10 |
B. | 9 |
C. | 8 |
D. | Error |
E. | None of these |
Answer» B. 9 | |
33. |
What will be the output of the following PHP code ?
|
A. | 15 |
B. | 12 |
C. | Error |
D. | Nothing |
E. | 27 |
Answer» F. | |
34. |
What will be the output of the following PHP code ?
|
A. | n |
B. | 8 |
C. | 0 |
D. | 1 |
E. | None of these |
Answer» C. 0 | |
35. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 0 |
C. | 7190272 |
D. | 8 |
E. | 0x6db7 |
Answer» D. 8 | |
36. |
What will be the output of the following PHP code ?
|
A. | 1 |
B. | 10 |
C. | 11 |
D. | 12 |
Answer» B. 10 | |
37. |
What will be the output of the following PHP code ?
|
A. | 0 |
B. | 1 |
C. | Nothing |
D. | Error |
E. | None of these |
Answer» D. Error | |
38. |
What will be the output of the following PHP code ?
|
A. | 5 |
B. | true |
C. | 0 |
D. | Result is 1 |
E. | None of these |
Answer» E. None of these | |
39. |
What will be the output of the following PHP code ?
|
A. | 0 |
B. | 1 |
C. | true |
D. | false |
E. | None of these |
Answer» C. true | |
40. |
What will be the output of the following PHP code ?
|
A. | 0 |
B. | Error |
C. | 55 |
D. | 5 |
E. | None of these |
Answer» B. Error | |
41. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 0 |
C. | 4 |
D. | 44 |
E. | None of these |
Answer» C. 4 | |
42. |
What will be the output of the following PHP code ?
|
A. | 21 |
B. | 23 |
C. | Error |
D. | Nothing |
E. | None of these |
Answer» D. Nothing | |
43. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 1 |
C. | Nothing |
D. | 0 |
E. | None of these |
Answer» C. Nothing | |
44. |
What will be the output of the following PHP code ?
|
A. | Hello Interview Mania |
B. | Interview Mania |
C. | Hello Interview Mania Interview Mania |
D. | Interview Mania Interview Mania |
E. | None of these |
Answer» D. Interview Mania Interview Mania | |
45. |
What will be the output of the following PHP code ?
|
A. | 15 |
B. | 14 |
C. | Error |
D. | Nothing |
E. | None of these |
Answer» C. Error | |
46. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 9 |
C. | 987654321 |
D. | Nothing |
E. | None of these |
Answer» D. Nothing | |
47. |
What will be the output of the following PHP code ?
|
A. | 43210 |
B. | 4 |
C. | Error |
D. | 01234 |
E. | None of these |
Answer» B. 4 | |
48. |
What will be the output of the following PHP code ?
|
A. | 0000000000........infinite time |
B. | 2222222.........infinite time |
C. | -2-2-2-2-2-2-2-2.......infinite time |
D. | All of above |
E. | None of these |
Answer» C. -2-2-2-2-2-2-2-2.......infinite time | |
49. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | Error |
C. | -1 |
D. | 0 |
E. | None of these |
Answer» B. Error | |
50. |
What will be the output of the following PHP code ?
|
A. | 123456789101112.......infinite time |
B. | Error |
C. | 12345 |
D. | Nothing |
E. | None of these |
Answer» B. Error | |