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
MCQ

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

Advertisements

Solution

Execution error

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

APPEARS IN

Tamil Nadu Board Samacheer Kalvi Class 12th Computer Application Answers Guide
Chapter 7 Looping Structure
Evaluation - PART – I | Q 8. | Page 117
Share
Notifications



      Forgot password?
Use app×