Programming Constructs Flashcards

OCR GCSE J277 Computer Science specification

Sequence

A programming construct where instructions are executed in order, one after another.

1 / 10

Ready to master these flashcards?

Sign in to study with spaced repetition and track your progress.

Sign In to Track Progress

Terms in this set (10)

1

Sequence

A programming construct where instructions are executed in order, one after another.

2

Selection

A programming construct where a decision is made, often using if/else statements, to determine which path to follow.

3

Iteration

A programming construct where a set of instructions is repeated, either a fixed number of times or until a condition is met.

4

Count-controlled loop

A type of iteration that repeats a set of instructions a specific number of times, e.g., using a for loop.

5

Condition-controlled loop

A type of iteration that repeats a set of instructions until a condition is met, e.g., using a while loop.

6

Comparison operators

Operators used in selection and iteration to compare values, e.g., ==, !=, <, <=, >, >=.

7

Arithmetic operators

Operators used to perform mathematical calculations, e.g., +, -, *, /, MOD, DIV, ^.

8

Nested constructs

Programming constructs placed inside other constructs, such as a loop within a loop or an if statement within a loop.

9

Boolean expressions

Expressions that evaluate to true or false, often used in selection and iteration constructs.

10

Indentation

A method used to structure code, making it easier to read and showing the hierarchy of constructs like loops and if statements.

Genie

Want to Learn More?

Get personalised lessons, quizzes, and instant feedback from your AI tutor.

Start Learning