हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

Explain the control statement with a suitable example. - Computer Science

Advertisements
Advertisements

प्रश्न

Explain the control statement with a suitable example.

संक्षेप में उत्तर

उत्तर

Control statements are statements that alter the sequence of flow of instructions.
In a program, statements may be executed sequentially, selectively, or iteratively. Every programming language provides statements to support sequence, selection (branching), and iteration.
Selection statement:

The selection statement means the statement(s) are executed depends upon a condition. If a condition is true, a true block ¡s executed otherwise a false block is executed. This statement is also called a decision statement or selection statement because it helps in making decisions about which set of statements are to be executed.
Iteration statement:

The iteration statement is a set of the statement are repetitively executed depends upon conditions. If a condition evaluates to true, the set of statements (true block) is executed again and again. As soon as the condition becomes false, the repetition stops. This is also known as a looping statement or iteration statement.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 10: Flow of Control - Evaluation - Section - D [पृष्ठ १७८]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 10 Flow of Control
Evaluation - Section - D | Q 1. | पृष्ठ १७८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×