1/13
Vocabulary and key conceptual flashcards for building program logic, understanding the IPO model, writing algorithms, and recognizing fundamental logic structures.
Programming Logic
A sequence of logical steps used to solve a problem before writing programming syntax or code.
The Problem-to-Code Process
The multi-step workflow for solving programming tasks: Problem → Understand the Problem → Break into Steps → Algorithm / Flowchart → Write Code → Test → Correct Errors.

Common Beginner Mistake
Reading a programming problem question and immediately typing code without first understanding the problem and building the logic.
Three Core Questions of Problem Analysis
The three essential questions to ask before thinking about code: 1. What is given? (Input) 2. What do I need to calculate / do? (Process) 3. What should I display? (Output).
IPO Model
A problem-solving framework that divides a program's structure into three parts: Input (data given), Process (calculations/actions), and Output (result displayed).

Algorithm
A step-by-step procedure to solve a problem, written as a clear plan before coding.
Sequence Structure
A basic logic structure where program statements execute sequentially, one after another from top to bottom.
Selection Structure (Decision Making)
A basic logic structure where the computer evaluates a condition to make a decision and chooses a specific path (e.g., using if, if-else, or switch).

Repetition Structure
A basic logic structure used to repeat execution of instructions multiple times without duplicating code statements (e.g., using for, while, or do-while loops).
Dry Run
The process of manually executing a program step by step on paper to trace variables, conditions, and output before running code on a compiler.
Modulo Operator (%) in Even/Odd Logic
An operator that computes division remainders; if number % 2 == 0 evaluates to true, the number is even, otherwise it is odd.
Edge Cases
Special or extreme input values—such as 0, negative numbers, equal values, or maximum values—that must be considered to ensure the logic handles all potential scenarios.
Grading Table Logic Scale
A nested decision arrangement mapping student marks to letter grades: 80−100 (A), 70−79 (B), 60−69 (C), 50−59 (D), and Below 50 (F).
Four Standard Questions for Every Programming Question