Explore

Programming Constructs Flashcards
OCR GCSE J277 Computer Science specification
Ready to master these flashcards?
Sign in to study with spaced repetition and track your progress.
Sign In to Track ProgressTerms in this set (10)
Sequence
A programming construct where instructions are executed in order, one after another.
Selection
A programming construct where a decision is made, often using if/else statements, to determine which path to follow.
Iteration
A programming construct where a set of instructions is repeated, either a fixed number of times or until a condition is met.
Count-controlled loop
A type of iteration that repeats a set of instructions a specific number of times, e.g., using a for loop.
Condition-controlled loop
A type of iteration that repeats a set of instructions until a condition is met, e.g., using a while loop.
Comparison operators
Operators used in selection and iteration to compare values, e.g., ==, !=, <, <=, >, >=.
Arithmetic operators
Operators used to perform mathematical calculations, e.g., +, -, *, /, MOD, DIV, ^.
Nested constructs
Programming constructs placed inside other constructs, such as a loop within a loop or an if statement within a loop.
Boolean expressions
Expressions that evaluate to true or false, often used in selection and iteration constructs.
Indentation
A method used to structure code, making it easier to read and showing the hierarchy of constructs like loops and if statements.

Want to Learn More?
Get personalised lessons, quizzes, and instant feedback from your AI tutor.
Start Learning