topic badge

14.09 Algorithms in code

Interactive practice questions

Look at the pseudocode below

START
SET a = 73
SET b = 44
SET c = a + b
PRINT c
END

What value is printed at the end of the code?

OUTPUT: $\editable{}$

Easy
< 1min

Look at the pseudocode below

START
SET a = 26
SET b = 11
SET c = a * b
PRINT c
END

What value is printed at the end of the code?

Note: the symbol * represents multiplication.

Easy
< 1min

Look at the pseudocode below

START
SET a = 2
SET b = a * a * a
PRINT b
END

What value is printed at the end of the code?

Note: the symbol * represents multiplication.

Easy
< 1min

Look at the pseudocode below

START
SET a = 7
SET b = 5
SET m = (a + b) / 2
PRINT m
END

What value is printed at the end of the code?

Note: the symbol / represents division.

Medium
< 1min
Sign up to access Practice Questions
Get full access to our content with a Mathspace account

Outcomes

VCMNA250

Investigate and calculate 'best buys', with and without digital technologies

VCMNA243

Solve problems involving addition and subtraction of fractions, including those with unrelated denominators.

VCMNA248

Find percentages of quantities and express one quantity as a percentage of another, with and without digital technologies

VCMNA254

Design and implement mathematical algorithms using a simple general purpose programming language

What is Mathspace

About Mathspace