Skip to content
Core Programming Fundamentals: Control Structures
Computing · JC 1 · Programming Constructs and Data Structures · Semester 1

Core Programming Fundamentals: Control Structures

Mastering conditional statements (if/else) and loops (for/while) to build interactive applications.

MOE Syllabus OutcomesMOE: Programming Constructs and Data Structures - JC1

About This Topic

Mastering conditional statements (if/else) and loops (for/while) to build interactive applications.

Key Questions

  1. Compare the behaviour of a while loop and a for loop: under what conditions would you choose each?
  2. Trace the execution of a nested if/else block and predict the output for a given set of inputs.
  3. Explain what happens when a loop condition never evaluates to false, and how you would detect and prevent this in your code.

Active Learning Ideas

See all activities

Activities & Teaching Strategies

See all activities

Edited by Adriana Perusin, Editor-in-Chief, Flip Education