• 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 Control Structures (Loop)

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
if (0.0)
print "hi";
else
print "how are u";

how are u
no output
hi
error

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
for(++$i; ++$i; ++$i) {
print $i;
if ($i == 4)
break;
}

1234
134
1
24

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
for ($count = 0; $count < 3;$count++); {
print "hi";
continue;
print "hello";
}

hi
hellohellohello
hihihi
hihellohihellohihello

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
$a = 10;
$b = 11;
if ($a < ++$a || $b < ++$b)
print "hello";
else
print "hi";

error
no output
hello
hi

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
$i = 0;
for ($i) {
print $i;
}

error
no output
infinite loop
0

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
$a = "hello";
if (strlen($a))
print strlen($a);
else
print "hi";

error
hellolength
hi
5

ANSWER DOWNLOAD EXAMIANS APP
MORE MCQ ON PHP Control Structures (Loop)

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
↑