Skip to content
Placement practice

Pseudocode and Algorithm Tracing practice questions for placement tests

Practise pseudocode and algorithm tracing with topic-based questions. Preview a sample, then start a short session to check your understanding.

See the question style before signup · Get instant feedback · Continue with focused practice

Try a sample question

Check your answer to see the explanation where one has been published.

Try this question
What does this print?
 1  a <- [4, 1, 3, 2]
 2  for i from 1 to 3
 3      if a[i] > a[i + 1]
 4          swap a[i] and a[i + 1]
 5  print a

1 sample question · No signup needed

Something unclear? Report this question.

2
The digits of the number 472 are added together. What is the sum?
3
Of the values 1, 2, 3, 4 and 5, only the odd ones are added to a running total that starts at 0. What is the total?
Start pseudocode and algorithm tracing practice

50 verified questions in this topic.