मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

If C is false in line 2, trace the control flow in this algorithm. 1 S1 2 -- C is false 3 if C 4 S2 5 else 6 S3 7 S4 - Computer Science

Advertisements
Advertisements

प्रश्न

If C is false in line 2, trace the control flow in this algorithm.

1 S1

2 -- C is false

3 if C

4 S2

5 else

6 S3

7 S4

टीपा लिहा

उत्तर

The control flow for the given algorithm is as follows:
S1
S3
S4
The condition is false so it executes S3. In this case, S2 skipped.

shaalaa.com
Notations for Algorithms
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Composition and Decomposition - Evaluation - Section - C [पृष्ठ १००]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
पाठ 7 Composition and Decomposition
Evaluation - Section - C | Q 2. | पृष्ठ १००
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×