• 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/>$x = 30;<br/>$y = 20;<br/>$z = 10;<br/>echo $x + $y - $z / ($z - $y);

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$x = 4;<br/>$y = 3;<br/>function fun($x = 3, $y = 4) {<br/>$z = $x+$y/$y+$x;<br/>echo "$z";<br/>}<br/>echo $x;<br/>echo $y;<br/>echo $z;<br/>fun($x, $y);

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$var1 = 1 + ++5;<br/>echo $var1;

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$y = 2;<br/>if (--$y <> ($y != $y++)) {<br/>echo $y;<br/>}

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

PHP can automatically convert integers to floating point numbers and floating point numbers to integers.

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$i = 10;<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/>$on_e = 1;<br/>$tw_o = 2;<br/>$thre_e = 3;<br/>$fou_r = 4;<br/>echo $on_e / $tw_o + $thre_e / $fou_r;

TRUE ANSWER : ?
YOUR ANSWER : ?

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

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
↑