• 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

PHP Operators and Expressions
What will be the output of the following PHP code ?
$i = 10;
$j = 0;
if ($i || ($j = $i + 10)) {
echo "true";
}
echo $j;

0
20
true20
true0

ANSWER DOWNLOAD EXAMIANS APP

PHP Operators and Expressions
What will be the output of the following PHP code ?
$i = 1;
if ($i++ && ($i == 1))
printf("Yesn$i");
else
printf("Non$i");

No 2
Yes 2
No 1
Yes 1

ANSWER DOWNLOAD EXAMIANS APP

PHP Operators and Expressions
What will be the output of the following PHP code ?
$a = 1;
$b = 3;
$d = $a++ + ++$b;
echo $d;

5
error
4
3

ANSWER DOWNLOAD EXAMIANS APP

PHP Operators and Expressions
What will be the output of the following PHP code ?
$a = 1;
$b = 1;
$d = 1;
print ++$a + ++$a+$a++;
print $a++ + ++$b;
print ++$d + $d++ + $a++;

368
742
869
error

ANSWER DOWNLOAD EXAMIANS APP

PHP Operators and Expressions
What will be the output of the following PHP code ?
$a = 10;
$b = 10;
if ($a = 5)
$b--;
print $a;
print $b--;

58
108
59
109

ANSWER DOWNLOAD EXAMIANS APP
  • «
  • 1
  • ...
  • 17
  • 18
  • 19
  • 20
  • 21
  • ...
  • 25
  • »

GO TO PAGE

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
↑