• 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/>$cars = array("Volvo", "BMW", "Toyota");<br/>print $cars[2];

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$a = 5;<br/>$b = -7;<br/>$c =0;<br/>$d = ++$a && ++$b || ++$c;<br/>print $d;<br/>print $a;

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$x = "test";<br/>$y = "this";<br/>$z = "also";<br/>$x .= $y .= $z ;<br/>echo $x;<br/>echo $y;

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/>$var1 = 1 + ++5;<br/>echo $var1;

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$a = 10;<br/>$b = 10;<br/>if ($a = 5)<br/>$b--;<br/>print $a;<br/>print $b--;

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/>$i = 1;<br/>if ($i++ && ($i == 1))<br/>printf("Yesn$i");<br/>else<br/>printf("Non$i");

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$x = 5;<br/>$y = 10;<br/>$z = "$x + $y";<br/>echo "$z";

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$one = "one";<br/>$two = "two";<br/>print($one$two);

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
↑