

MCQOPTIONS
Saved Bookmarks
This section includes 83 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.
51. |
What will be the output of the following PHP code?$? |
A. | 0.11845976421345 |
B. | 0.23568451142521 |
C. | 0.46364760900081 |
D. | 1 |
Answer» D. 1 | |
52. |
What will be the output of the following PHP code?$? |
A. | Hello World! |
B. | welcome to india |
C. | This is PHP! |
D. | MCQ questons |
Answer» B. welcome to india | |
53. |
What will be the output of the following PHP code?(){ define("const","I am awesome!"); echo constant("const");}one();?>$? |
A. | I am awesome!! |
B. | const |
C. | const, I am awesome!! |
D. | “const”,”I am awesome!” |
Answer» B. const | |
54. |
What will be the output of the following PHP code ?? |
A. | I am here to spoil this code |
B. | Error |
C. | My favourite TV show isI am here to spoil this code |
D. | None of the mentioned |
Answer» C. My favourite TV show isI am here to spoil this code | |
55. |
What will be the output of the following PHP code?? |
A. | I am b |
B. | I am bI am a |
C. | Error |
D. | I am a Error |
Answer» E. | |
56. |
What will be the output of the following PHP code?? |
A. | 106 |
B. | 103 |
C. | 104 |
D. | 209 |
Answer» D. 209 | |
57. |
What will be the output of the following PHP code?? |
A. | I am b |
B. | I am bI am a |
C. | Error |
D. | I am a Error |
Answer» D. I am a Error | |
58. |
What will be the output of the following PHP code ? |
A. | Welcome to Narnia |
B. | greeting |
C. | GREETING |
D. | ERROR |
Answer» E. | |
59. |
What will be the output of the following PHP code ?= 0) echo "Not True";}mine(0);?> |
A. | Less Than 0 |
B. | Not True |
C. | No Output |
D. | None of the Mentioned |
Answer» C. No Output | |
60. |
What will be the output of the following PHP code? |
A. | 3 |
B. | 7 |
C. | 8 |
D. | 10 |
Answer» C. 8 | |
61. |
What will be the output of the following PHP code? |
A. | 0 |
B. | 1 |
C. | 0.5 |
D. | -0.5 |
Answer» C. 0.5 | |
62. |
What will be the output of the following PHP code? |
A. | welcome to India |
B. | welcome to india |
C. | Welcome to India |
D. | Welcome to india |
Answer» B. welcome to india | |
63. |
What will be the output of the following PHP code? |
A. | 4 |
B. | 5 |
C. | 2 |
D. | None of the mentioned |
Answer» B. 5 | |
64. |
What will be the output of the following PHP code? |
A. | I am b |
B. | I am bI am a |
C. | Error |
D. | I am a Error |
Answer» E. | |
65. |
What will be the output of the following PHP code ? |
A. | Time Pa55 |
B. | Towe Pa55 |
C. | Towe Pass |
D. | Time Pass |
Answer» E. | |
66. |
What will be the output of the following PHP code ? |
A. | Error |
B. | 10 |
C. | No Output |
D. | None of the Mentioned |
Answer» D. None of the Mentioned | |
67. |
What will be the output of the following PHP code ? |
A. | I am here to spoil this code |
B. | Error |
C. | my favourite TV show isI am here to spoil this code |
D. | None of the mentioned |
Answer» B. Error | |
68. |
What will be the output of the following PHP code? |
A. | Hilla Warld |
B. | Hello World |
C. | ia |
D. | eo |
Answer» C. ia | |
69. |
What will be the output of the following PHP code? |
A. | Error |
B. | 0 |
C. | 42 |
D. | 84 |
Answer» D. 84 | |
70. |
What will be the output of the following PHP code? |
A. | Error |
B. | 49 |
C. | 1 |
D. | Sum |
Answer» D. Sum | |
71. |
What will be the output of the following PHP code? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» E. | |
72. |
What will be the output of the following PHP code? |
A. | I love my country |
B. | i love my Country |
C. | I love my Country |
D. | I Love My Country |
Answer» E. | |
73. |
What will be the output of the following PHP code?span>function one(){ echo " this works"; function two() { echo "this too works"; }}one();two();?> |
A. | error |
B. | this works |
C. | this worksthis too works |
D. | this works this too works |
Answer» D. this works this too works | |
74. |
phpinfo() will display about?1. OS version information2. PHP installation3. Variables4. HTTP headers |
A. | Option 1 |
B. | Option 2 |
C. | Option 3 |
D. | Option 4 |
E. | All the Above |
Answer» F. | |
75. |
What will be the output of the following PHP code ? |
A. | Returned value from the function : $return_value |
B. | Error |
C. | Returned value from the function : 30 |
D. | Returned value from the function : |
Answer» D. Returned value from the function : | |
76. |
Output will be:$array = array(0, 1, 2);$array = array_pad($array, -6, ‘NEW’);$ |
A. | Array ( [1] => NEW [2] => NEW [3] => NEW [4] => 0 [5] => 1 [6] => 2 ) |
B. | Array ( [-1] => NEW [-2] => NEW [-3] => NEW [-4] => 0 [-5] => 1 [-6] => 2 ) |
C. | Array ( [0] => NEW [-1] => NEW [-2] => NEW [-3] => 0 [-4] => 1 [-5] => 2 ) |
D. | Array ( [0] => NEW [1] => NEW [2] => NEW [3] => 0 [4] => 1 [5] => 2 ) |
Answer» E. | |
77. |
What will be the output of the following PHP code ? |
A. | I |
B. | You Do Not Talk About Fight Club |
C. | You Do Not Talk About Kill Bill |
D. | You Do Not Talk About Pulp Fiction |
E. | None of the mentioned |
Answer» B. You Do Not Talk About Fight Club | |
78. |
Above usleep() function pauses PHP for .usleep(1000000); |
A. | 1 second |
B. | 1 microseconds |
C. | 10 seconds |
D. | 100 microseconds |
Answer» B. 1 microseconds | |
79. |
What will be the output of the following PHP code ? |
A. | 3 |
B. | $num |
C. | 5 |
D. | None of the mentioned |
Answer» C. 5 | |
80. |
¬¨‚Ä . . . . . converts the keys of an array into values and the values into keys.$ |
A. | array_flips() |
B. | array_transpose() |
C. | array_trans() |
D. | array_flip() |
Answer» E. | |
81. |
What will be the output of the following PHP code ? |
A. | 3 |
B. | $num |
C. | 5 |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
82. |
What will be the output of the following PHP code ? |
A. | o world! |
B. | Hello world! |
C. | 111 |
D. | No Output |
Answer» B. Hello world! | |
83. |
What will be the output of the following PHP code ? |
A. | This Works |
B. | This Too Seems To Work |
C. | This WorksThis Too Seems To Work |
D. | ERROR |
Answer» D. ERROR | |