

MCQOPTIONS
Saved Bookmarks
This section includes 20 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. | None of these |
Answer» B. Nothing | |
2. |
What will be the output of the following PHP code?
|
A. | None of these |
Answer» C. | |
3. |
What will be the output of the following PHP code?
|
A. | None of these |
Answer» D. | |
4. |
What will be the output of the following PHP code?
|
A. | 1 |
B. | 2 |
C. | 3 |
D. | True |
E. | False |
Answer» D. True | |
5. |
What will be the output of the following PHP code?
|
A. | Sunflower |
B. | Lily |
C. | Rose |
D. | Sunflower Lily |
E. | Lily Sunflower |
Answer» F. | |
6. |
What will be the output of the following PHP code?
|
A. | 6 |
B. | 5 |
C. | 4 |
D. | 3 |
E. | None of these |
Answer» B. 5 | |
7. |
What will be the output of the following PHP code?
|
A. | None of these |
Answer» B. | |
8. |
What will be the output of the following PHP code?
|
A. | None of these |
Answer» E. | |
9. |
What will be the output of the following PHP code?
|
A. | None of these |
Answer» D. | |
10. |
What will be the output of the following PHP code?
|
A. | None of these |
Answer» B. | |
11. |
What will be the output of the following PHP code?
|
A. | Error |
B. | Nothing |
C. | Rose Lily Sunflower |
D. | I like Rose, Lily and Sunflower. |
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. | None of these |
Answer» B. Error | |
13. |
What will be the output of the following PHP code ?
|
A. | 2 |
B. | 15 |
C. | 20 |
D. | 1 |
E. | 600 |
Answer» F. | |
14. |
What will be the output of the following PHP code?
|
A. | Error |
B. | Nothing |
C. | India England USA |
D. | I like USA, England and India. |
E. | None of these |
Answer» E. None of these | |
15. |
What will be the output of the following PHP code ?
|
A. | Nothing |
B. | Error |
C. | None of these |
Answer» C. None of these | |
16. |
What will be the output of the following PHP code?
|
A. | Error |
B. | Ajit is the friend of Rahul and Ats. |
C. | Nothing |
D. | Ajit Rahul Ats |
E. | None of these |
Answer» B. Ajit is the friend of Rahul and Ats. | |
17. |
What will be the output of the following PHP code?
|
A. | Rahul |
B. | Error |
C. | Rahul is the friend of Ajit and Ats. |
D. | Nothing |
E. | None of these |
Answer» D. Nothing | |
18. |
What will be the output of the following PHP code?
|
A. | None of these |
Answer» B. | |
19. |
What will be the output of the following PHP code?
|
A. | None of these |
Answer» E. | |
20. |
PHP s numerically indexed array begin with position ___________. |
A. | 0 |
B. | -1 |
C. | 2 |
D. | 1 |
E. | None of these |
Answer» B. -1 | |