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 (Scounter = 20; $counter< 10; $counter++) { echo “Welcome to Tamilnadu “; } echo “Counter is: Scounter”; ?> - Computer Applications

Advertisements
Advertisements

Question

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

<?php
for (Scounter = 20; $counter< 10;
$counter++)
{
echo “Welcome to Tamilnadu “;
}
echo “Counter is: Scounter”;
?>

Options

  • Welcome to Tamilnadu

  • Counter is: 20

  • Welcome to Tamilnadu Counter is: 22

  • Welcome to Tamilnadu Welcome to Tamilnadu Counter is: 22

MCQ

Solution

Counter is: 20

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 5. | Page 117
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×