• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

PHP CONTROL STRUCTURES (LOOP) QUIZ

What will be the output of the following PHP code ?<br/>for ($count = 0; $count < 3;$count++); {<br/>print "hi";<br/>continue;<br/>print "hello";<br/>}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$x = 1;<br/>if ($x--)<br/>print "hi"<br/>$x--;<br/>else<br/>print "hello"

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$x = 1;<br/>if ($x == 2)<br/>print "hi";<br/>else if($x = 2)<br/>print $x;<br/>else<br/>print "how are u";

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>for ($i = 0; 0; $i++) {<br/>print"i";<br/>}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$i = "";<br/>while ($i) {<br/>print "hi";<br/>}<br/>while($i < 8)<br/>$i++;print "hello";

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$a = 1;<br/>if ($a--)<br/>print "True";<br/>if ($a++)<br/>print "False";

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$x = 0;<br/>if ($x++)<br/>print "hi";<br/>else<br/>print "how are u";

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$i = 0;<br/>while ($i < 3) {<br/>$i++;<br/>}<br/>print $i;

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>for ($i = 0; $i < 5; $i++) {<br/>for ($j = $i;$j > $i; $i--)<br/>print $i;<br/>}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$user = array("Ashley", "Bale", "Shrek", "Blank");<br/>for ($x=0; $x < count($user) - 1; $x++) {<br/>if ($user[$x++] == "Shrek")<br/>continue;<br/>printf ($user[$x]);<br/>}

TRUE ANSWER : ?
YOUR ANSWER : ?
MORE MCQ

QUIZ STATS

  • 0
  • 0

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑