• 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 OPERATORS AND EXPRESSIONS QUIZ

What will be the output of the following PHP code ?<br/>echo $red;

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$i = 0;<br/>$j = 0;<br/>if ($i && ($j = $i + 10)) {<br/>echo "true";<br/>}<br/>echo $j;

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>echo "Hello World"

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$x = 5;<br/>{<br/>echo "$x";<br/>}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$var1 = 3;<br/>print ++$var++;

TRUE ANSWER : ?
YOUR ANSWER : ?

PHP will automatically convert strings to numbers when it needs to.

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$a = 1;<br/>$b = 1;<br/>$d = 1;<br/>print ++$a + ++$a+$a++;<br/>print $a++ + ++$b;<br/>print ++$d + $d++ + $a++;

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$color1 = "red";<br/>$color2 = "green";<br/>echo "$color1" . "$color2";

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$x = 5;<br/>$y = 10;<br/>function fun() {<br/>$GLOBALS['y'] = $GLOBALS['x'] + $GLOBALS['y'];<br/>}<br/>fun();<br/>echo $y;

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$i = 5;<br/>while (--$i > 0) {<br/>$i++;<br/>print $i;<br/>print "hello";<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
↑