• 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 = 0;
while (++$i && --$i) {
print $i;
}

01234567891011121314…infinitely
1234567891011121314….infinitely
no output
error

ANSWER DOWNLOAD EXAMIANS APP

PHP Operators and Expressions
What will be the output of the following PHP code ?
$i = 0;
while ((--$i > ++$i) - 1) {
print $i;
}

-1-1-1-1-1-1-1-1-1-1…infinitely
00000000000000000000….infinitely
no output
error

ANSWER DOWNLOAD EXAMIANS APP

PHP Operators and Expressions
What will be the output of the following PHP code ?
$i = 2;
while (++$i) {
while ($i --> 0)
print $i;
}

no output
10
210
infinite loop

ANSWER DOWNLOAD EXAMIANS APP

PHP Operators and Expressions
What will be the output of the following PHP code ?
echo 5 * 9 / 3 + 9;

3.7
3.85
0
24

ANSWER DOWNLOAD EXAMIANS APP

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

true0
0
10
true10

ANSWER DOWNLOAD EXAMIANS APP
  • «
  • 1
  • ...
  • 16
  • 17
  • 18
  • 19
  • 20
  • ...
  • 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
↑