HSC Science (Computer Science) 12th Board ExamMaharashtra State Board
Share

# Explain with flowchart the following control structure : Selection Logic - HSC Science (Computer Science) 12th Board Exam - Computer Science 1

ConceptBasic Data Structures (Stack, Queue, Dequeue)

#### Question

Explain with flowchart the following control structure : Selection Logic

#### Solution

Selection Logic:

1. This logic employs a number of conditions and these conditions select the module among several alternative modules.
These are the types of conditional structures:

2.Single Alternative:
If condition holds true then Module A is executed, otherwise Module A is skipped and control transfers to the next step of algorithm.
Form of the structure:
If condition, then:
[Module A]
[End of IF Structure]

3. Double Alternative
This structure has following form
IF condition, then:
[Module A]
Else:
[Module B]
[End of IF Structure]
if condition is true Module A is executed and if condition is false  Module B is executed.

Is there an error in this question or solution?

#### APPEARS IN

2016-2017 (March) (with solutions)
Question 2.1.1 | 3.00 marks
Solution Explain with flowchart the following control structure : Selection Logic Concept: Basic Data Structures (Stack, Queue, Dequeue).
S