• 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/>$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/>for ($i = 0; $i < 5; $i++) {<br/>for ($j = $i; $j > 0; $i--)<br/>print $i;<br/>}

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$a = 10;<br/>if (0)<br/>print "all";<br/>if<br/>else<br/>print "some"

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$a = "1";<br/>switch ($a) {<br/>case 1:<br/>print "hi";<br/>case 2:<br/>print "hello";<br/>default:<br/>print "hi1";<br/>}

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/>$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 = 10) {<br/>print "hi";<br/>}<br/>print "hello";

TRUE ANSWER : ?
YOUR ANSWER : ?

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

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
↑