

MCQOPTIONS
Saved Bookmarks
This section includes 41 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. | 0 |
B. | 5 |
C. | Undefined variable: n |
D. | 5 and 0 |
E. | None of these |
Answer» D. 5 and 0 | |
2. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 2 |
C. | 22 |
D. | 222 |
E. | None of these |
Answer» E. None of these | |
3. |
What will be the output of the following PHP code ?
|
A. | 7 |
B. | 789 |
C. | 78 |
D. | 89 |
E. | None of these |
Answer» C. 78 | |
4. |
What will be the output of the following PHP code ?
|
A. | 5 |
B. | 56 |
C. | 567 |
D. | 5678 |
E. | None of these |
Answer» D. 5678 | |
5. |
What will be the output of the following PHP code ?
|
A. | 5 |
B. | Nothing |
C. | Error |
D. | 555 |
E. | None of these |
Answer» E. None of these | |
6. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 15 |
C. | 25 |
D. | Nothing |
E. | None of these |
Answer» D. Nothing | |
7. |
What will be the output of the following PHP code ?
|
A. | 15 |
B. | 18 |
C. | 33 |
D. | Error |
E. | None of these |
Answer» D. Error | |
8. |
What will be the output of the following PHP code ?
|
A. | $Test |
B. | $Example |
C. | $Test $Example |
D. | |
E. | None of these |
Answer» E. None of these | |
9. |
What will be the output of the following PHP code ?
|
A. | $Example |
B. | |
C. | $Test |
D. | Nothing |
E. | None of these |
Answer» B. | |
10. |
What will be the output of the following PHP code ?
|
A. | Test |
B. | Example |
C. | / |
D. | Nothing |
E. | None of these |
Answer» D. Nothing | |
11. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 18 |
C. | 8 |
D. | 1580 |
E. | None of these |
Answer» E. None of these | |
12. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | Error |
C. | 61 |
D. | 31 |
E. | None of these |
Answer» C. 61 | |
13. |
What will be the output of the following PHP code ?
|
A. | 7 |
B. | 8 |
C. | 15 |
D. | Error |
E. | None of these |
Answer» D. Error | |
14. |
What will be the output of the following PHP code ?
|
A. | 6511 |
B. | 611 |
C. | Nothing |
D. | Error |
E. | None of these |
Answer» B. 611 | |
15. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | 6 |
C. | 5 |
D. | 65 |
E. | 6513 |
Answer» F. | |
16. |
What will be the output of the following PHP code ?
|
A. | 25 |
B. | 15 |
C. | 1525 |
D. | Error |
E. | None of these |
Answer» D. Error | |
17. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 51 |
C. | Nothing |
D. | 51 51 |
E. | None of these |
Answer» D. 51 51 | |
18. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 25 |
C. | Nothing |
D. | $n |
E. | None of these |
Answer» C. Nothing | |
19. |
What will be the output of the following PHP code ?
|
A. | 10 |
B. | Error |
C. | 20 |
D. | 2020 |
E. | None of these |
Answer» E. None of these | |
20. |
What will be the output of the following PHP code ?
|
A. | 0 |
B. | True |
C. | 1 |
D. | False |
E. | Undefined variable: n |
Answer» F. | |
21. |
What will be the output of the following PHP code ?
|
A. | Hello |
B. | Interveiw |
C. | Mania |
D. | All of above |
E. | None of these |
Answer» C. Mania | |
22. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | Error |
C. | 5 |
D. | 0.25 |
E. | None of these |
Answer» C. 5 | |
23. |
What will be the output of the following PHP code ?
|
A. | $five |
B. | 5 |
C. | Error |
D. | Nothing |
E. | None of these |
Answer» D. Nothing | |
24. |
What will be the output of the following PHP code ?
|
A. | 9 |
B. | 8 |
C. | 5.6 |
D. | Error |
E. | None of these |
Answer» E. None of these | |
25. |
What will be the output of the following PHP code ?
|
A. | 1 |
B. | 15 |
C. | 9 |
D. | 8 |
E. | Error |
Answer» C. 9 | |
26. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | True |
C. | False |
D. | 0 |
E. | Error |
Answer» F. | |
27. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | 1.25 |
C. | 3.52 |
D. | Error |
E. | None of these |
Answer» E. None of these | |
28. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 1.25 |
C. | Nothing |
D. | 5.25 |
E. | None of these |
Answer» C. Nothing | |
29. |
What will be the output of the following PHP code ?
|
A. | 0.25 |
B. | Error |
C. | 0 |
D. | 25.2 |
E. | None of these |
Answer» C. 0 | |
30. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 5 |
C. | 5.5 |
D. | 1 |
Answer» B. 5 | |
31. |
What will be the output of the following PHP code ?
|
A. | 0.46875 |
B. | 7.5 |
C. | 4 |
D. | 0 |
E. | None of these |
Answer» B. 7.5 | |
32. |
What will be the output of the following PHP code ?
|
A. | 8 |
B. | -6 |
C. | -8.5 |
D. | 11 |
E. | None of these |
Answer» D. 11 | |
33. |
What will be the output of the following PHP code ?
|
A. | Undefined variable |
B. | Undefined variable: r -4 |
C. | 2 |
D. | -2 |
E. | None of these |
Answer» C. 2 | |
34. |
What will be the output of the following PHP code ?
|
A. | 35.5 |
B. | 23 |
C. | 15 |
D. | 25 |
E. | None of these |
Answer» B. 23 | |
35. |
What will be the output of the following PHP code ?
|
A. | 12 |
B. | 34 |
C. | 21 |
D. | 13 |
E. | 34.625 |
Answer» F. | |
36. |
What will be the output of the following PHP code ?
|
A. | 15 |
B. | 5 |
C. | 7 |
D. | Error |
E. | None of these |
Answer» D. Error | |
37. |
What will be the output of the following PHP code ?
|
A. | 22 |
B. | 5 |
C. | 4 |
D. | 2 |
E. | None of these |
Answer» E. None of these | |
38. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | $p % $q |
C. | 2 |
D. | Error |
E. | None of these |
Answer» D. Error | |
39. |
What will be the output of the following PHP code ?
|
A. | Error |
B. | 41 |
C. | 13 |
D. | 10 |
E. | 64 |
Answer» F. | |
40. |
What will be the output of the following PHP code ?
|
A. | 14 = 14 + 31 + 11 |
B. | Error |
C. | $n1 = $n1 + $n2 + $n3 |
D. | Nothing |
E. | None of these |
Answer» B. Error | |
41. |
What will be the output of the following PHP code ?
|
A. | 15 + 11 |
B. | 15 |
C. | $n1 + $n2 |
D. | 11 |
E. | None of these |
Answer» B. 15 | |