English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

What is a selection statement? write its types? - Computer Science

Advertisements
Advertisements

Question

What is a selection statement? write its types?

Short Note

Solution

The selection statement means the statements are executed depends – upon a condition. If a condition is true, a true block (a set of statements) is 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.

Types:

  1. Two-way branching
  2. Multiway branching
shaalaa.com
Selection Statements
  Is there an error in this question or solution?
Chapter 10: Flow of Control - Evaluation - Section - B [Page 178]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 10 Flow of Control
Evaluation - Section - B | Q 2. | Page 178
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×