1.

What will be the output of the following PHP code?(i) <?phpfor($x = 1;$x < 10; + +$x){print "*\t";}?>(a) ********** (b) ********* (c) *********** (d) Infinite loop(ii) <?phpfor($x = -1;$x < 10; - $x){print $x;}?>(a) 123456713910412(b) 123456713910(c) 1234567139104(d) Infinite loop

Answer»

(i) (b) *********

(ii) (d) Infinite loop



Discussion

No Comment Found

Related InterviewSolutions