Pseudocode Revision: Selection, Iteration, Assignments, Operations (IGCSE CS 0478)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:42 PM on 4/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

23 Terms

1
New cards

define constant

value that never changes during the execution of a program

2
New cards

what is the structure writing a constant in pseudocode

CONSTANT <identifier> = <value>

3
New cards

define variable

stores value that has been calculated and can be changed during the execution of the program

4
New cards

what is the structure of declaring a variable in pusedocode

DECLARE <identifier> : <data type>

5
New cards

how would you assign a value to an identifier

<identifier> ←- <value>

6
New cards

how would you write an input

INPUT <identifier>

7
New cards

how would you write an output

OUTPUT <identifier>

8
New cards

what are the arithmetic operations and what is the symbol

+ addition

- subtraction

(star) multiplication

/ division

^ exponent

9
New cards

what is integer division

finds the integer number before the decimal point after the division

10
New cards

how would you write an integer division

DIV (<identifier1> , <identifier2>)

11
New cards

what is modulus

finds the remainder that is left when a number is divided

12
New cards

how would you write a modulus

MOD (<identifier1> , <identifier2>)

13
New cards

what is the relational operations and what are the symbols

< less than

> more than

= equals to

<> not equal to

<= less than or equal to

>= more than or equal to

14
New cards

what are IF statements

used in a program when needs to make a decision and perform different actions depending on whether a condition is true or not

15
New cards

what is case

used when a program needs to perform different actions depending on the value of the variable.

16
New cards

what is the case structure

CASE OF <identifier>

  • <value1> : <statement>

  • <value2> : <statement>

OTHERWISE <statement>

ENDCASE

17
New cards

what are the iteration loops types

count controlled loops

pre condition loops

pre condition loops

18
New cards

what is the count controlled loops

number of iterations is already known

19
New cards

what is post condition loops

loop has the be executed at least once

20
New cards

what is pre condition loops

loop may not be executed at all

21
New cards

how would you write an iteration FOR

FOR <identifier> ←- <value1> TO <value2>

d <statement>

NEXT <identifier>

22
New cards

how would you write an iteration REPEAT

REPEAT

a <statement>

UNTIL <condition>

23
New cards

how would you write an interation WHILE

WHILE <condition> DO

fd <statement>

ENDWHILE