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.
| 201. |
_ What will be the output of the following PHP code ?$? |
| A. | 1 |
| B. | 0 |
| C. | 2 |
| D. | no output |
| Answer» C. 2 | |
| 202. |
_ What will be the output of the following PHP code ?$? |
| A. | testthisthisalso |
| B. | testthis |
| C. | testthisalsothisalso |
| D. | error at line 4 |
| Answer» D. error at line 4 | |
| 203. |
_ What will be the output of the following PHP code ?$? |
| A. | no output |
| B. | error |
| C. | 6 |
| D. | 7 |
| Answer» C. 6 | |
| 204. |
_ What will be the output of the following PHP code ?$? |
| A. | 58 |
| B. | 59 |
| C. | 109 |
| D. | 108 |
| Answer» C. 109 | |
| 205. |
_ What will be the output of the following PHP code ?$? |
| A. | 10 |
| B. | 0 |
| C. | true0 |
| D. | true10 |
| Answer» C. true0 | |
| 206. |
__What will be the output of the following PHP code ?__ |
| A. | 192 |
| B. | 2 |
| C. | error |
| D. | 0 |
| Answer» E. | |
| 207. |
__What will be the output of the following PHP code ?__ |
| A. | 5 |
| B. | error |
| C. | 6 |
| D. | 7 |
| Answer» B. error | |
| 208. |
__What will be the output of the following PHP code ?__ |
| A. | 3 |
| B. | 4 |
| C. | 5 |
| D. | error |
| Answer» E. | |
| 209. |
__What will be the output of the following PHP code ?__ |
| A. | 012 |
| B. | 123 |
| C. | 111 |
| D. | Error |
| Answer» B. 123 | |
| 210. |
__What will be the output of the following PHP code ?__ |
| A. | Volvo |
| B. | BMW |
| C. | Toyota |
| D. | Error |
| Answer» D. Error | |
| 211. |
__What will be the output of the following PHP code ?__ |
| A. | redgreen |
| B. | red green |
| C. | 0 |
| D. | error |
| Answer» D. error | |
| 212. |
__What will be the output of the following PHP code ?__ |
| A. | HelloWorld |
| B. | Hello+World |
| C. | 0 |
| D. | Error |
| Answer» D. Error | |
| 213. |
_What will be the output of the following PHP code ?$? |
| A. | 0 |
| B. | 5 |
| C. | Nothing |
| D. | Error |
| Answer» C. Nothing | |
| 214. |
_What will be the output of the following PHP code ?$? |
| A. | $winner$looser |
| B. | $looser |
| C. | \ |
| D. | $looser |
| Answer» E. | |
| 215. |
What will be the output of the following PHP code ?$? |
| A. | 4 = 4 + 3 + 1 |
| B. | 8 |
| C. | 8 = 4 + 3 +1 |
| D. | Error |
| Answer» B. 8 | |
| 216. |
What will be the output of the following PHP code ?$? |
| A. | IF:42 |
| B. | No output |
| C. | IF: |
| D. | ERROR |
| Answer» E. | |
| 217. |
What will be the output of the following PHP code ?$? |
| A. | true |
| B. | false |
| C. | 1 |
| D. | error |
| Answer» D. error | |
| 218. |
What will be the output of the following PHP code ?$? |
| A. | This, was, a, bad, idea |
| B. | This was a bad idea |
| C. | Thiswasabadidea |
| D. | Error |
| Answer» D. Error | |
| 219. |
What will be the output of the following PHP code ?$? |
| A. | 437 |
| B. | 439 |
| C. | 349 |
| D. | 347 |
| Answer» B. 439 | |
| 220. |
What will be the output of the following PHP code ?$? |
| A. | 0 |
| B. | 1 |
| C. | $one |
| D. | Error |
| Answer» E. | |
| 221. |
What will be the output of the following PHP code ?$? |
| A. | red |
| B. | $color |
| C. | red |
| D. | Error |
| Answer» C. red | |
| 222. |
What will be the output of the following PHP code ?$? |
| A. | 0.75 |
| B. | 0.05 |
| C. | 1.25 |
| D. | Error |
| Answer» D. Error | |
| 223. |
What will be the output of the following PHP code ?$? |
| A. | 41 |
| B. | -4 |
| C. | -5 |
| D. | 51 |
| Answer» E. | |
| 224. |
What will be the output of the following PHP code ?$? |
| A. | redredred |
| B. | redred |
| C. | red |
| D. | Error |
| Answer» D. Error | |
| 225. |
What will be the output of the following PHP code ?$? |
| A. | 1234567891011121314….infinitely |
| B. | 01234567891011121314…infinitely |
| C. | 1 |
| D. | 0 |
| Answer» B. 01234567891011121314‚Äö√Ѭ∂infinitely | |
| 226. |
What will be the output of the following PHP code ?$? |
| A. | hello |
| B. | infinite loop |
| C. | hihello |
| D. | error |
| Answer» C. hihello | |
| 227. |
What will be the output of the following PHP code ?$? |
| A. | 4 |
| B. | 2 |
| C. | error at line2 |
| D. | no output |
| Answer» D. no output | |
| 228. |
What will be the output of the following PHP code ?$? |
| A. | 11 |
| B. | 12 |
| C. | 10 |
| D. | error |
| Answer» B. 12 | |
| 229. |
What will be the output of the following PHP code ?$? |
| A. | 869 |
| B. | 742 |
| C. | 368 |
| D. | error |
| Answer» B. 742 | |
| 230. |
What will be the output of the following PHP code ?$? |
| A. | 24 |
| B. | 3.7 |
| C. | 3.85 |
| D. | 0 |
| Answer» B. 3.7 | |
| 231. |
What will be the output of the following PHP code ?$? |
| A. | 1010 |
| B. | 105 |
| C. | 510 |
| D. | error |
| Answer» B. 105 | |
| 232. |
What will be the output of the following PHP code ?$? |
| A. | 1797568 |
| B. | no output |
| C. | error |
| D. | 0x6dc0 |
| Answer» B. no output | |
| 233. |
What will be the output of the following PHP code ?$? |
| A. | 5 |
| B. | error |
| C. | 6 |
| D. | 7 |
| Answer» D. 7 | |
| 234. |
What will be the output of the following PHP code ?$? |
| A. | 1 |
| B. | 0 |
| C. | 2 |
| D. | 3 |
| Answer» B. 0 | |
| 235. |
What will be the output of the following PHP code ?$? |
| A. | 210 |
| B. | 10 |
| C. | no output |
| D. | infinite loop |
| Answer» E. | |
| 236. |
What will be the output of the following PHP code ?$? |
| A. | 01 |
| B. | 11 |
| C. | 10 |
| D. | Error |
| Answer» C. 10 | |
| 237. |
What will be the output of the following PHP code ?? |
| A. | 5 |
| B. | 3 |
| C. | 0 |
| D. | 1 |
| Answer» B. 3 | |
| 238. |
What will be the output of the following PHP code ?? |
| A. | 0.75 |
| B. | 0.05 |
| C. | 1.25 |
| D. | Error |
| Answer» E. | |
| 239. |
What will be the output of the following PHP code ?? |
| A. | 1010 |
| B. | 105 |
| C. | 510 |
| D. | error |
| Answer» B. 105 | |
| 240. |
What will be the output of the following PHP code ?? |
| A. | $winner/$looser |
| B. | /$looser |
| C. | / |
| D. | $looser |
| Answer» D. $looser | |
| 241. |
What will be the output of the following PHP code ? |
| A. | 15 |
| B. | 10 + 5 |
| C. | $z |
| D. | $x + $y |
| Answer» C. $z | |
| 242. |
What will be the output of the following PHP code ? |
| A. | PHP is a scripting language |
| B. | __LINE__ |
| C. | 2 |
| D. | ERROR |
| Answer» D. ERROR | |
| 243. |
What will be the output of the following PHP code ? |
| A. | 1grey |
| B. | grey |
| C. | 0 |
| D. | red1grey |
| Answer» B. grey | |
| 244. |
What will be the output of the following PHP code ? |
| A. | 43 |
| B. | 943 |
| C. | 349 |
| D. | 439 |
| Answer» E. | |
| 245. |
What will be the output of the following PHP code ? |
| A. | 4.5 |
| B. | 7 |
| C. | 3.5 |
| D. | Error |
| Answer» E. | |
| 246. |
What will be the output of the following PHP code ??> |
| A. | Hello |
| B. | Hello world |
| C. | Nothing |
| D. | Error |
| Answer» E. | |
| 247. |
What will be the output of the following PHP code ? |
| A. | Error |
| B. | Hello World |
| C. | Nothing |
| D. | Missing semicolon error |
| Answer» B. Hello World | |
| 248. |
What will be the output of the following PHP code ? |
| A. | 012 |
| B. | 123 |
| C. | 000 |
| D. | 111 |
| Answer» D. 111 | |
| 249. |
What will be the output of the following PHP code ? |
| A. | 54321111111….infinitely |
| B. | 555555555…infinitely |
| C. | 54321 |
| D. | 5 |
| Answer» B. 555555555‚Äö√Ѭ∂infinitely | |
| 250. |
What will be the output of the following PHP code ? |
| A. | result is true |
| B. | result is 1 |
| C. | error |
| D. | no output |
| Answer» C. error | |