Notes · Class 11 · CBSE · Science Computer Science
Flow of Control notes
Revision notes for the chapter: the key points, definitions and exam tips to remember.
Flow of control decides the order in which statements run.
SELECTION
- if condition:
- if … else …
- if … elif … else … (multiple choices)
- Indentation defines the block.
REPETITION
- for loop: for i in range(start, stop, step): — range stops before "stop".
- while loop: repeats while the condition is true; update the variable inside to avoid infinite loops.
JUMP STATEMENTS
- break: exits the loop.
- continue: skips to the next iteration.
- pass: does nothing (placeholder).
NESTED LOOPS
- A loop inside a loop (patterns, tables).
COMMON PROGRAMS
- Even/odd, largest of three numbers, factorial, Fibonacci, prime check, sum of digits, patterns with *.
Memory hook: "if decides, for counts, while waits."
Flow of Control: practice questionsFlow of Control cheat sheet
More Class 11 · CBSE · Science Computer Science notes
Practise Flow of Control
Sign up free to practise the full chapter after revising. Questions you get wrong come back until you've mastered them.
Start practising freeFree to start · No credit card needed