

MCQOPTIONS
Saved Bookmarks
This section includes 280 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.
251. |
What will be the output of the following PHP code ? |
A. | 2 |
B. | 1 |
C. | 3 |
D. | no output |
Answer» B. 1 | |
252. |
What will be the output of the following PHP code ? |
A. | 11111213 |
B. | 11121213 |
C. | 11111212 |
D. | 11111112 |
Answer» B. 11121213 | |
253. |
What will be the output of the following PHP code ? |
A. | 5 |
B. | 0 |
C. | 10 |
D. | 1 |
Answer» E. | |
254. |
What will be the output of the following PHP code ? |
A. | 5 |
B. | 4 |
C. | 3 |
D. | error |
Answer» B. 4 | |
255. |
What will be the output of the following PHP code ?! ($j - $k));?> |
A. | 1 |
B. | no output |
C. | error |
D. | 0 |
Answer» B. no output | |
256. |
What will be the output of the following PHP code ? |
A. | 5 |
B. | error |
C. | 6 |
D. | 7 |
Answer» B. error | |
257. |
What will be the output of the following PHP code ? |
A. | 16 |
B. | 06 |
C. | 15 |
D. | 05 |
Answer» B. 06 | |
258. |
What will be the output of the following PHP code ? |
A. | echo hello world |
B. | hello world |
C. | nothing |
D. | error |
Answer» B. hello world | |
259. |
What will be the output of the following PHP code ? |
A. | 104 |
B. | 410 |
C. | 1400 |
D. | 4100 |
Answer» D. 4100 | |
260. |
What will be the output of the following PHP code ? |
A. | test |
B. | error |
C. | myObject::CONSTANT |
D. | no output |
Answer» C. myObject::CONSTANT | |
261. |
What will be the output of the following PHP code ? |
A. | 0.01.0 |
B. | 01 |
C. | No output |
D. | ERROR |
Answer» E. | |
262. |
What will be the output of the following PHP code ? |
A. | onetwo |
B. | $one$two |
C. | one |
D. | error |
Answer» B. $one$two | |
263. |
What will be the output of the following PHP code ? |
A. | Hello World |
B. | Hello |
C. | World |
D. | HelloWorld |
Answer» E. | |
264. |
What will be the output of the following PHP code ? |
A. | 11 |
B. | 2 |
C. | 0 |
D. | 1 |
Answer» C. 0 | |
265. |
What will be the output of the following PHP code ? |
A. | red |
B. | green |
C. | red green |
D. | error |
Answer» C. red green | |
266. |
What will be the output of the following PHP code ? |
A. | 0 |
B. | 105 |
C. | 510 |
D. | Error |
Answer» C. 510 | |
267. |
What will be the output of the following PHP code ? |
A. | 0 |
B. | 1 |
C. | Nothing |
D. | Error |
Answer» D. Error | |
268. |
What will be the output of the following PHP code ? |
A. | 4.5 |
B. | 7 |
C. | 3.5 |
D. | Error |
Answer» B. 7 | |
269. |
What will be the output of the following PHP code ? |
A. | Hello world |
B. | echo “Hello world” |
C. | echo Hello world |
D. | Error |
Answer» E. | |
270. |
What will be the output of the following PHP code ? |
A. | 0.75 |
B. | 0.05 |
C. | 1.25 |
D. | Error |
Answer» E. | |
271. |
What will be the output of the following PHP code ? |
A. | 0 |
B. | 1 |
C. | 2 |
D. | Error |
Answer» D. Error | |
272. |
What will be the output of the following PHP code ? |
A. | Error |
B. | Hello World |
C. | Nothing |
D. | Missing semicolon error |
Answer» D. Missing semicolon error | |
273. |
What will be the output of the following PHP code ? |
A. | 5 |
B. | 10 |
C. | 15 |
D. | Error |
Answer» C. 15 | |
274. |
What will be the output of the following PHP code ? 0 && ++$i){ print $i;}> |
A. | 5 |
B. | 555555555…infinitely |
C. | 54321 |
D. | error |
Answer» C. 54321 | |
275. |
What will be the output of the following PHP code ? |
A. | 1 |
B. | 0 |
C. | error |
D. | no output |
Answer» B. 0 | |
276. |
What will be the output of the following PHP code ? |
A. | 80.5 |
B. | 44 |
C. | 82 |
D. | 42 |
Answer» E. | |
277. |
What will be the output of the following PHP code ? |
A. | 000 |
B. | 012 |
C. | Nothing |
D. | Error |
Answer» B. 012 | |
278. |
What will be the output of the following PHP code ? |
A. | 16 |
B. | 06 |
C. | 15 |
D. | 05 |
Answer» B. 06 | |
279. |
What will be the output of the following PHP code ? |
A. | No 2 |
B. | Yes 1 |
C. | Yes 2 |
D. | No 1 |
Answer» B. Yes 1 | |
280. |
What will be the output of the following PHP code ? 0) print $i;}?> |
A. | 210 |
B. | 10 |
C. | no output |
D. | infinite loop |
Answer» B. 10 | |