

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.
151. |
*/*_What will be the output of the following PHP code ?? |
A. | red1 |
B. | red 1 |
C. | 0 |
D. | 1 |
Answer» E. | |
152. |
*/*_What will be the output of the following PHP code ?? |
A. | 3 |
B. | 4 |
C. | 6 |
D. | Error |
Answer» E. | |
153. |
*/*_What will be the output of the following PHP code ?? |
A. | Hello World |
B. | Bye |
C. | Hello worldBye |
D. | Error |
Answer» B. Bye | |
154. |
*/*_What will be the output of the following PHP code ?? |
A. | red green |
B. | red |
C. | green |
D. | error |
Answer» E. | |
155. |
*/*_What will be the output of the following PHP code ?? |
A. | 0 |
B. | Nothing |
C. | True |
D. | Error |
Answer» C. True | |
156. |
*/*_What will be the output of the following PHP code ?? |
A. | 1.75 |
B. | 0.875 |
C. | 3.5 |
D. | Error |
Answer» C. 3.5 | |
157. |
*/*_What will be the output of the following PHP code ?? |
A. | Hello world |
B. | Hello world in italics |
C. | Nothing |
D. | Error |
Answer» C. Nothing | |
158. |
*/*_What will be the output of the following PHP code ?? |
A. | 000 |
B. | 012 |
C. | 123 |
D. | Error |
Answer» C. 123 | |
159. |
*/*_What will be the output of the following PHP code ? ++$i) - 1){ print $i;}?>? |
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 | |
160. |
*/*_What will be the output of the following PHP code ? 0){ $i++; print $i; print "hello";}?>? |
A. | 4hello4hello4hello4hello4hello…..infinite |
B. | 5hello5hello5hello5hello5hello…..infinite |
C. | no output |
D. | error |
Answer» B. 5hello5hello5hello5hello5hello‚Äö√Ѭ∂..infinite | |
161. |
*/*_What will be the output of the following PHP code ? ($y != $y++)){ echo $y;}?>? |
A. | 1 |
B. | 0 |
C. | 2 |
D. | no output |
Answer» C. 2 | |
162. |
*/*_What will be the output of the following PHP code ?? |
A. | no output |
B. | true 23 |
C. | true 22 |
D. | true 33 |
Answer» C. true 22 | |
163. |
*/*_What will be the output of the following PHP code ?? |
A. | 5 |
B. | error |
C. | 6 |
D. | 7 |
Answer» C. 6 | |
164. |
*/*_What will be the output of the following PHP code ?? |
A. | 02 |
B. | 12 |
C. | 01 |
D. | 21 |
Answer» B. 12 | |
165. |
*/*_What will be the output of the following PHP code ?? |
A. | 20 |
B. | true0 |
C. | 0 |
D. | true20 |
Answer» C. 0 | |
166. |
*/*_What will be the output of the following PHP code ?? |
A. | 1 |
B. | 0 |
C. | 2 |
D. | 3 |
Answer» E. | |
167. |
*/*_What will be the output of the following PHP code ?? |
A. | 1 |
B. | true |
C. | false |
D. | 0 |
Answer» B. true | |
168. |
*/*_What will be the output of the following PHP code ?? |
A. | no output |
B. | error |
C. | 5 |
D. | 0 |
Answer» D. 0 | |
169. |
*/*_What will be the output of the following PHP code ?? |
A. | 4.25 |
B. | 3.25 |
C. | -3.25 |
D. | -4.25 |
Answer» E. | |
170. |
*/*_What will be the output of the following PHP code ?? |
A. | 0.75 |
B. | 0.05 |
C. | 1.25 |
D. | Error |
Answer» B. 0.05 | |
171. |
*/*_What will be the output of the following PHP code ?? |
A. | 1 |
B. | 0 |
C. | 0.5 |
D. | Error |
Answer» E. | |
172. |
*/*_What will be the output of the following PHP code ?? |
A. | 0 |
B. | 5 |
C. | Nothing |
D. | Error |
Answer» D. Error | |
173. |
*/*_What will be the output of the following PHP code ?? |
A. | 7 |
B. | 9 |
C. | 0 |
D. | Error |
Answer» C. 0 | |
174. |
*/*_What will be the output of the following PHP code ?? |
A. | I have a value |
B. | I have a valueI have a value |
C. | ERROR |
D. | I have a valueNEW_GOO_NAME_CONSTANTS |
Answer» C. ERROR | |
175. |
*/*_What will be the output of the following PHP code ?? |
A. | thiswasabadidea |
B. | this was a bad idea |
C. | nothing |
D. | error |
Answer» B. this was a bad idea | |
176. |
*/*_What will be the output of the following PHP code ?? |
A. | $z |
B. | 15 |
C. | 8 |
D. | 1 |
Answer» D. 1 | |
177. |
*/*_What will be the output of the following PHP code ?? |
A. | redgreen |
B. | red green |
C. | 0 |
D. | 1 |
Answer» D. 1 | |
178. |
*/*_What will be the output of the following PHP code ?? |
A. | red red |
B. | red |
C. | error |
D. | nothing |
Answer» D. nothing | |
179. |
*/*_What will be the output of the following PHP code ?? |
A. | onetwo |
B. | one |
C. | nothing |
D. | error |
Answer» E. | |
180. |
*/*_What will be the output of the following PHP code ?? |
A. | This is India |
B. | This is India |
C. | This is |
D. | Error |
Answer» C. This is | |
181. |
*/*_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 | |
182. |
%_What will be the output of the following PHP code ?_% |
A. | 1 |
B. | 0 |
C. | 2 |
D. | 3 |
Answer» E. | |
183. |
%_What will be the output of the following PHP code ?_% |
A. | 1 |
B. | true |
C. | false |
D. | 0 |
Answer» B. true | |
184. |
%_What will be the output of the following PHP code ?_% |
A. | onetwo |
B. | one |
C. | nothing |
D. | error |
Answer» E. | |
185. |
_ What will be the output of the following PHP code ?$? |
A. | $z |
B. | 15 |
C. | 8 |
D. | 1 |
Answer» D. 1 | |
186. |
_ What will be the output of the following PHP code ?$? |
A. | I have a value |
B. | I have a valueI have a value |
C. | ERROR |
D. | I have a valueNEW_GOO_NAME_CONSTANTS |
Answer» C. ERROR | |
187. |
_ What will be the output of the following PHP code ?$? |
A. | thiswasabadidea |
B. | this was a bad idea |
C. | nothing |
D. | error |
Answer» B. this was a bad idea | |
188. |
_ What will be the output of the following PHP code ?$? |
A. | This is India |
B. | This is India |
C. | This is |
D. | Error |
Answer» C. This is | |
189. |
_ 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 | |
190. |
_ What will be the output of the following PHP code ?$? |
A. | redgreen |
B. | red green |
C. | 0 |
D. | 1 |
Answer» D. 1 | |
191. |
_ What will be the output of the following PHP code ?$? |
A. | 7 |
B. | 9 |
C. | 0 |
D. | Error |
Answer» C. 0 | |
192. |
_ What will be the output of the following PHP code ?$? |
A. | 0 |
B. | 5 |
C. | Nothing |
D. | Error |
Answer» D. Error | |
193. |
_ What will be the output of the following PHP code ?$? |
A. | 1 |
B. | 0 |
C. | 0.5 |
D. | Error |
Answer» E. | |
194. |
_ What will be the output of the following PHP code ?$? |
A. | red red |
B. | red |
C. | error |
D. | nothing |
Answer» D. nothing | |
195. |
_ What will be the output of the following PHP code ?$? |
A. | 0.75 |
B. | 0.05 |
C. | 1.25 |
D. | Error |
Answer» B. 0.05 | |
196. |
_ What will be the output of the following PHP code ?$? |
A. | 4.25 |
B. | 3.25 |
C. | -3.25 |
D. | -4.25 |
Answer» E. | |
197. |
_ What will be the output of the following PHP code ?$? |
A. | # Hello world |
B. | Hello world# Hello world |
C. | Hello world |
D. | Error |
Answer» B. Hello world# Hello world | |
198. |
_ What will be the output of the following PHP code ?$? |
A. | 012 |
B. | 123 |
C. | Nothing |
D. | Error |
Answer» D. Error | |
199. |
_ What will be the output of the following PHP code ?$? |
A. | 1234567891011121314….infinitely |
B. | 01234567891011121314…infinitely |
C. | no output |
D. | error |
Answer» D. error | |
200. |
_ What will be the output of the following PHP code ?$? |
A. | hello |
B. | infinite loop |
C. | hihello |
D. | error |
Answer» C. hihello | |