Page 104 - Trackpad_V2.1_class8
P. 104
Hashtag
#Indented: The way you follow to organise and document your source code
#Iteration: Repetition of an action
REVISIT
A control structure is a programming language construct that affects the flow of the execution of a program.
The statements that are executed in sequential order, i.e. one after the other without any jumps, are called
sequential statements.
When programmers are required to execute a particular set of statements depending upon a particular test
condition, a branching statement is required.
1. Tick ( ) the correct option.
a. Which of the following is a selective structure?
(i) Identifiers, Operators (ii) if-else
(iii) for, while (iv) None of these
b. Which of the following is a decision-making statement?
(i) if (ii) for
(iii) while (iv) do while
c. Which statement is used in loops to terminate the loop?
(i) if (ii) Continue
(iii) break (iv) All of these
d. Which of the following statements is used to repeat a block of code?
(i) for (ii) Range
(iii) if-else (iv) Both (i) and (ii)
2. Fill in the blanks using the words from the help box.
sequential, control statement, continue, conditional
a. A _____________ is a programming construct that affects the flow of the execution of a program.
102 Trackpad (V2.1)-VIII

