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.
| 101. |
*/*_What will be the output of the following PHP code ?? |
| A. | 210 |
| B. | 10 |
| C. | no output |
| D. | infinite loop |
| Answer» E. | |
| 102. |
*/*_What will be the output of the following PHP code ?? |
| A. | -3-4-5 |
| B. | -3-4 |
| C. | infinite loop |
| D. | no output |
| Answer» E. | |
| 103. |
*/*_What will be the output of the following PHP code ?? |
| A. | Infinite |
| B. | 123…….20 |
| C. | 1357…19 |
| D. | 13579…21 |
| Answer» B. 123‚Äö√Ѭ∂‚Äö√Ѭ∂.20 | |
| 104. |
*/*_What will be the output of the following PHP code ?? |
| A. | error |
| B. | 2 |
| C. | hi |
| D. | how are u |
| Answer» C. hi | |
| 105. |
*/*_What will be the output of the following PHP code ?? |
| A. | how are u |
| B. | hi |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 106. |
*/*_What will be the output of the following PHP code ?? |
| A. | hihellohi1 |
| B. | hello |
| C. | hihi1 |
| D. | hi1 |
| Answer» C. hihi1 | |
| 107. |
*/*_What will be the output of the following PHP code ?? |
| A. | hi |
| B. | hihellohi |
| C. | hihi |
| D. | no output |
| Answer» B. hihellohi | |
| 108. |
*/*_What will be the output of the following PHP code ?? |
| A. | hi |
| B. | hello |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 109. |
*/*_What will be the output of the following PHP code ?? |
| A. | infinite loop |
| B. | hihello |
| C. | hello |
| D. | error |
| Answer» C. hello | |
| 110. |
*/*_What will be the output of the following PHP code ?? |
| A. | error |
| B. | hi |
| C. | hihello |
| D. | hello |
| Answer» B. hi | |
| 111. |
%_What will be the output of the following PHP code ?_% |
| A. | 0 |
| B. | infinite loop |
| C. | -1 |
| D. | 1 |
| Answer» D. 1 | |
| 112. |
%_What will be the output of the following PHP code ?_% |
| A. | iiiii |
| B. | infinite loop |
| C. | iiiiiiiiiiiiiiiiiiiiiiiii |
| D. | no output |
| Answer» B. infinite loop | |
| 113. |
_ What will be the output of the following PHP code ?$? |
| A. | error |
| B. | hi |
| C. | hihello |
| D. | hello |
| Answer» B. hi | |
| 114. |
_ What will be the output of the following PHP code ?$? |
| A. | infinite loop |
| B. | hihello |
| C. | hello |
| D. | error |
| Answer» C. hello | |
| 115. |
_ What will be the output of the following PHP code ?$? |
| A. | hihellohi1 |
| B. | hello |
| C. | hihi1 |
| D. | hi1 |
| Answer» C. hihi1 | |
| 116. |
_ What will be the output of the following PHP code ?$? |
| A. | error |
| B. | 2 |
| C. | hi |
| D. | how are u |
| Answer» C. hi | |
| 117. |
_ What will be the output of the following PHP code ?$? |
| A. | hi |
| B. | hihellohi |
| C. | hihi |
| D. | no output |
| Answer» B. hihellohi | |
| 118. |
_ What will be the output of the following PHP code ?$? |
| A. | all |
| B. | some |
| C. | error |
| D. | no output |
| Answer» D. no output | |
| 119. |
_ What will be the output of the following PHP code ?$? |
| A. | true |
| B. | false |
| C. | error |
| D. | no output |
| Answer» E. | |
| 120. |
_ What will be the output of the following PHP code ?$? |
| A. | Infinite |
| B. | 123…….20 |
| C. | 1357…19 |
| D. | 13579…21 |
| Answer» B. 123‚Äö√Ѭ∂‚Äö√Ѭ∂.20 | |
| 121. |
_ What will be the output of the following PHP code ?$? |
| A. | -3-4-5 |
| B. | -3-4 |
| C. | infinite loop |
| D. | no output |
| Answer» E. | |
| 122. |
_ What will be the output of the following PHP code ?$? |
| A. | Hi is printed 8 times, hello 7 times and then hi 2 times |
| B. | Hi is printed 10 times, hello 7 times |
| C. | Hi is printed once, hello 7 times |
| D. | Hi is printed once, hello 7 times and then hi 2 times |
| Answer» E. | |
| 123. |
_What will be the output of the following PHP code ?$? |
| A. | 24 |
| B. | 134 |
| C. | 1234 |
| D. | 1 |
| Answer» B. 134 | |
| 124. |
_What will be the output of the following PHP code ? 0; $i--) print $i;}?>$? |
| A. | infinite loop |
| B. | 0 1 2 3 4 5 |
| C. | 0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 0 1 2 3 4 5 |
| D. | no output |
| Answer» B. 0 1 2 3 4 5 | |
| 125. |
_What will be the output of the following PHP code ?$? |
| A. | error |
| B. | infinite loop |
| C. | no output |
| D. | 0 |
| Answer» C. no output | |
| 126. |
_What will be the output of the following PHP code ?$? |
| A. | hihellohi1 |
| B. | hi |
| C. | hihello |
| D. | hello |
| Answer» B. hi | |
| 127. |
_What will be the output of the following PHP code ?$? |
| A. | infinite loop |
| B. | hi |
| C. | no output |
| D. | error |
| Answer» E. | |
| 128. |
_What will be the output of the following PHP code ?$? |
| A. | hi |
| B. | hello |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 129. |
_What will be the output of the following PHP code ?$? |
| A. | hihellohi1 |
| B. | hi |
| C. | hihi1 |
| D. | hi1 |
| Answer» B. hi | |
| 130. |
_What will be the output of the following PHP code ?$? |
| A. | 0how are u |
| B. | 0hi |
| C. | hi |
| D. | how are u |
| Answer» C. hi | |
| 131. |
_What will be the output of the following PHP code ?$? |
| A. | hi |
| B. | hello |
| C. | error |
| D. | no output |
| Answer» B. hello | |
| 132. |
_What will be the output of the following PHP code ?$? |
| A. | all |
| B. | some |
| C. | error |
| D. | none |
| Answer» D. none | |
| 133. |
_What will be the output of the following PHP code ?$? |
| A. | how are u |
| B. | hi |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 134. |
_What will be the output of the following PHP code ?$? |
| A. | how are uhello |
| B. | hihello |
| C. | hi |
| D. | no output |
| Answer» C. hi | |
| 135. |
_What will be the output of the following PHP code ?$? |
| A. | Hello….36 times |
| B. | Hello….45 times |
| C. | Hello….50 times |
| D. | Hello….40 times |
| Answer» B. Hello‚Äö√Ѭ∂.45 times | |
| 136. |
_What will be the output of the following PHP code ?$? |
| A. | 123456789101112 |
| B. | 12345678910 |
| C. | 1234567891011 |
| D. | infinite loop |
| Answer» E. | |
| 137. |
_What will be the output of the following PHP code ?$? |
| A. | 210 |
| B. | 10 |
| C. | no output |
| D. | infinite loop |
| Answer» B. 10 | |
| 138. |
_What will be the output of the following PHP code ?$? |
| A. | 5 |
| B. | 555555555…infinitely |
| C. | 54321 |
| D. | error |
| Answer» C. 54321 | |
| 139. |
_What will be the output of the following PHP code ?$? |
| A. | hello |
| B. | infinite loop |
| C. | hihello |
| D. | error |
| Answer» B. infinite loop | |
| 140. |
What will be the output of the following PHP code ?$? |
| A. | hihihi |
| B. | hihellohihellohihello |
| C. | hellohellohello |
| D. | hi |
| Answer» E. | |
| 141. |
What will be the output of the following PHP code ?$? |
| A. | true |
| B. | false |
| C. | error |
| D. | no output |
| Answer» B. false | |
| 142. |
What will be the output of the following PHP code ?$? |
| A. | how are u |
| B. | hi |
| C. | error |
| D. | no output |
| Answer» B. hi | |
| 143. |
What will be the output of the following PHP code ?$? |
| A. | how are u |
| B. | hi |
| C. | error |
| D. | no output |
| Answer» C. error | |
| 144. |
What will be the output of the following PHP code ?$? |
| A. | hello |
| B. | no output |
| C. | hi |
| D. | error |
| Answer» B. no output | |
| 145. |
What will be the output of the following PHP code ?$? |
| A. | hi |
| B. | hello |
| C. | error |
| D. | no output |
| Answer» B. hello | |
| 146. |
What will be the output of the following PHP code ?$? |
| A. | hello |
| B. | hi |
| C. | no output |
| D. | error |
| Answer» D. error | |
| 147. |
What will be the output of the following PHP code ?$? |
| A. | hihellohi1 |
| B. | hi |
| C. | hihello |
| D. | hello |
| Answer» E. | |
| 148. |
What will be the output of the following PHP code ?$? |
| A. | AshleyBaleBlank |
| B. | BaleShrek |
| C. | AshleyBlank |
| D. | Bale |
| Answer» C. AshleyBlank | |
| 149. |
What will be the output of the following PHP code ?$? |
| A. | infinite loop |
| B. | 0 |
| C. | no output |
| D. | error |
| Answer» D. error | |
| 150. |
What will be the output of the following PHP code ?? |
| A. | hihihi |
| B. | hihellohihellohihello |
| C. | hellohellohello |
| D. | hi |
| Answer» E. | |