English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What will be displayed in a browser when the following PHP code is executed; <?php for ($counter = 10; $counter < 10; $counter = $counter + 5){ echo “Hello”; } ?> - Computer Applications

Advertisements
Advertisements

Question

What will be displayed in a browser when the following PHP code is executed;

<?php
for ($counter = 10; $counter < 10;
$counter = $counter + 5){
echo “Hello”;
 }
?>

Options

  • Hello Hello Hello Hello Hello

  • Hello Hello Hello

  • Hello

  • None of the above

MCQ

Solution

None of the above

shaalaa.com
Looping Structure
  Is there an error in this question or solution?
Chapter 7: Looping Structure - Evaluation - PART – I [Page 117]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 12 TN Board
Chapter 7 Looping Structure
Evaluation - PART – I | Q 6. | Page 117
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×