Topic 2, Control Statement, Lecture 4

16 flashcardsby Clement
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
Program control structures define
the order of execution of statements in a program.
2
Sequential control structure means
instructions are executed in a linear order.
3
Selection control structure involves
making decisions based on true/false conditions.
4
Iteration control structure allows
repeating a block of instructions.
5
Flow control statements alter
the default sequential order of execution.
6
Branching statements are used to
transfer control from one point to another.
7
Conditional branching transfers control
based on the outcome of a condition.
8
The if statement executes
a statement if the expression is true.
9
Unconditional branching transfers control
without checking any conditions.
10
The switch statement selects
a block of code to execute based on an expression's value.
11
The for statement is used when
the number of iterations is known in advance.
12
The while statement repeats
a block of code as long as a condition is true.
13
The do-while statement checks the condition
after the block of code is executed.
14
The break statement is used to
terminate loops or switch statements.
15
The continue statement is used to
skip the current iteration of a loop.
16
The return statement ends
the execution of a function and returns a value.

Each flashcard is separated by a new line as requested.
Study all 16 cards for free