• 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 ?
for ($x =1; $x < 10;++$x) {
print "*t";
}

*********
**********
infinite loop
***********

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
for ($x = -1; $x < 10;--$x) {
print $x;
}

infinite loop
12345678910
123456789101112
1234567891011

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
$x;
for ($x = -3; $x < -5; ++$x) {
print ++$x;
}

-3-4-5
no output
infinite loop
-3-4

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
for ($i++; $i == 1; $i = 2)
print "In for loop ";
print "After loop";

Infinite loop
After for loop
In for loopAfter for loop
In for loop

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
for (1; $i == 1; $i = 2)
print "In for loop ";
print "After loopn";

After for loop
Infinite loop
In for loop
In for loopAfter for loop

ANSWER DOWNLOAD EXAMIANS APP
  • «
  • 1
  • ...
  • 9
  • 10
  • 11
  • 12
  • 13
  • ...
  • 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
↑