Skip to content
KALANBLON
Show contents

Chapter 4 of 4 · 10 min

Quiz: thinking in steps

You can now describe a problem in steps, decide, repeat and compare two solutions. Let's see what you remember. You need 70% correct answers, and you can try again as many times as you need.

Quiz

5 questions · pass mark: 70%

  1. 1.Which of these instructions is precise enough for an algorithm?

    One answer

  2. 2.What is the value of x at the end?

    One answer

    x ← 1
    while x < 20
        x ← x × 2
    end while
  3. 3.Which loops will never stop? (several answers)

    Several answers possible

  4. 4.With halving search, how many guesses does it take at most to find a number between 1 and 1,000?

    One answer

  5. 5.Fill in the keyword that separates the two cases of a decision.

    Complete the code

    if age < 12 then
        price ← 0
    ____
        price ← 8
    end if

Your progress is saved on this device. Create a free account to keep your progress on all your devices.