• 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 ?
do {
print "hi";
}
while(0);
print "hello";

hihello
hello
infinite loop
error

ANSWER DOWNLOAD EXAMIANS APP

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

0
1
2
3

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
$i = 0;
do {
$i++;
}
while ($i < 3);
print $i;

3
2
1
0

ANSWER DOWNLOAD EXAMIANS APP

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

infinite loop
01
1
0

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
$i = "";
while($i) {
print "hi";
}
print "hello";

error
infinite loop
hello
hihello

ANSWER DOWNLOAD EXAMIANS APP
  • «
  • 1
  • ...
  • 7
  • 8
  • 9
  • 10
  • 11
  • ...
  • 15
  • »

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
↑