• 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 = 4;<br/>$y = 3;<br/>$z = 1;<br/>echo "$x = $x + $y + $z";

TRUE ANSWER : ?
YOUR ANSWER : ?

In PHP the integer 45 is stored exactly as 45. The floating point number 46.3 could be stored as.

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/>$x = 1;<br/>$y = 2;<br/>if (++$x == $y++) {<br/>echo "true ", $y, $x;<br/>}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$x = 10;<br/>$y = 4;<br/>$z = 3;<br/>echo $x % $y % $z;

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>define("__LINE__", "PHP is a scripting language");<br/>echo __LINE__;

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/>echo $x-- != ++$x;

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>class myObject { }<br/>define('myObject::CONSTANT', 'test');<br/>echo myObject::CONSTANT;

TRUE ANSWER : ?
YOUR ANSWER : ?

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

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
↑