English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Consider the following code <? php $count=12; do{ printf(“%d squared=%d<br/>”, $count, pow($count,2)); } while($count<4); ?> What will be the output of the code. - Computer Applications

Advertisements
Advertisements

Question

Consider the following code

<? php
$count=12;
do{
printf(“%d squared=%d<br/>”,
$count, pow($count,2));
} while($count<4);
?>

What will be the output of the code.

Options

  • 12 squared 141

  • 12 squared=141

  • “12 squared=141”

  • Execution error

MCQ

Solution

Execution error

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

Englishहिंदीमराठी


      Forgot password?
Use app×