MCQOPTIONS
Saved Bookmarks
This section includes 180 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.
| 151. |
What will be the output of the following PHP code ?? |
| A. | infinite loop |
| B. | 0 |
| C. | no output |
| D. | error |
| Answer» D. error | |
| 152. |
What will be the output of the following PHP code ?? |
| A. | AshleyBaleBlank |
| B. | BaleShrek |
| C. | AshleyBlank |
| D. | Bale |
| Answer» C. AshleyBlank | |
| 153. |
What will be the output of the following PHP code ?? |
| A. | hihellohi1 |
| B. | hi |
| C. | hihello |
| D. | hello |
| Answer» E. | |
| 154. |
What will be the output of the following PHP code ?? |
| A. | hi |
| B. | hello |
| C. | error |
| D. | no output |
| Answer» B. hello | |
| 155. |
What will be the output of the following PHP code ?? |
| A. | hello |
| B. | no output |
| C. | hi |
| D. | error |
| Answer» B. no output | |
| 156. |
What will be the output of the following PHP code ?? |
| A. | 0 |
| B. | 1 |
| C. | error |
| D. | no output |
| Answer» D. no output | |
| 157. |
What will be the output of the following PHP code ?? |
| A. | true |
| B. | false |
| C. | error |
| D. | no output |
| Answer» B. false | |
| 158. |
What will be the output of the following PHP code ?? |
| A. | how are u |
| B. | hi |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 159. |
What will be the output of the following PHP code ? |
| A. | hi |
| B. | no output |
| C. | error |
| D. | how are u |
| Answer» E. | |
| 160. |
What will be the output of the following PHP code ? |
| A. | In for loopIn for loopIn for loopIn for loop……infinitely |
| B. | After for loopAfter for loopAfter for loop……..infinitely |
| C. | In for loopAfter for loopIn for loopAfter for loopIn for loopAfter for loop…..infinitely |
| D. | After for loop |
| Answer» B. After for loopAfter for loopAfter for loop‚Äö√Ѭ∂‚Äö√Ѭ∂..infinitely | |
| 161. |
What will be the output of the following PHP code ? |
| A. | ********** |
| B. | ********* |
| C. | *********** |
| D. | infinite loop |
| Answer» C. *********** | |
| 162. |
What will be the output of the following PHP code ? |
| A. | 00000000000000000000….infinitely |
| B. | -1-1-1-1-1-1-1-1-1-1…infinitely |
| C. | no output |
| D. | error |
| Answer» B. -1-1-1-1-1-1-1-1-1-1‚Äö√Ѭ∂infinitely | |
| 163. |
What will be the output of the following PHP code ? |
| A. | 4hello4hello4hello4hello4hello…..infinite |
| B. | 5hello5hello5hello5hello5hello…..infinite |
| C. | no output |
| D. | error |
| Answer» B. 5hello5hello5hello5hello5hello‚Äö√Ѭ∂..infinite | |
| 164. |
What will be the output of the following PHP code ? |
| A. | 0 |
| B. | infinite loop |
| C. | 01 |
| D. | 1 |
| Answer» E. | |
| 165. |
What will be the output of the following PHP code ? |
| A. | hihihi |
| B. | hihellohihellohihello |
| C. | hellohellohello |
| D. | hi |
| Answer» B. hihellohihellohihello | |
| 166. |
What will be the output of the following PHP code ? |
| A. | 0 1 2 3 4 |
| B. | 0 1 2 3 |
| C. | 0 1 2 3 4 5 |
| D. | error |
| Answer» C. 0 1 2 3 4 5 | |
| 167. |
What will be the output of the following PHP code ? |
| A. | AshleyBaleBlank |
| B. | Bale |
| C. | AshleyShrek |
| D. | BaleBlank |
| Answer» B. Bale | |
| 168. |
What will be the output of the following PHP code ? |
| A. | hihellohi1 |
| B. | hi |
| C. | hihello |
| D. | hi1 |
| Answer» C. hihello | |
| 169. |
What will be the output of the following PHP code ? |
| A. | hello |
| B. | hi |
| C. | no output |
| D. | error |
| Answer» D. error | |
| 170. |
What will be the output of the following PHP code ? |
| A. | hi |
| B. | hello |
| C. | error |
| D. | no output |
| Answer» D. no output | |
| 171. |
What will be the output of the following PHP code ? |
| A. | how are u |
| B. | hi |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 172. |
What will be the output of the following PHP code ? |
| A. | 0 |
| B. | 1 |
| C. | error |
| D. | how are u |
| Answer» E. | |
| 173. |
What will be the output of the following PHP code ? |
| A. | true |
| B. | false |
| C. | error |
| D. | no output |
| Answer» D. no output | |
| 174. |
What will be the output of the following PHP code ? |
| A. | all |
| B. | some |
| C. | error |
| D. | no output |
| Answer» B. some | |
| 175. |
What will be the output of the following PHP code? |
| A. | how are u |
| B. | hi |
| C. | error |
| D. | no output |
| Answer» B. hi | |
| 176. |
What will be the output of the following PHP code ? |
| A. | In for loop |
| B. | After for loop |
| C. | In for loopAfter for loop |
| D. | Infinite loop |
| Answer» C. In for loopAfter for loop | |
| 177. |
What will be the output of the following PHP code ? |
| A. | 123456789101112 |
| B. | 12345678910 |
| C. | 1234567891011 |
| D. | infinite loop |
| Answer» B. 12345678910 | |
| 178. |
What will be the output of the following PHP code ? |
| A. | 1234567891011121314….infinitely |
| B. | 01234567891011121314…infinitely |
| C. | no output |
| D. | error |
| Answer» D. error | |
| 179. |
What will be the output of the following PHP code ? |
| A. | hello |
| B. | infinite loop |
| C. | hihello |
| D. | error |
| Answer» C. hihello | |
| 180. |
What will be the output of the following PHP code ? |
| A. | 2 |
| B. | 3 |
| C. | 0 |
| D. | 1 |
| Answer» C. 0 | |