GCSEBeast

Designing algorithms

GCSE Computer Science practice questions on designing algorithms. Try 3 for free below — with hints, the answer and why the wrong answers are tempting. GCSE Beast has 18 questions on this topic.

Question 1 of 3Difficulty ●●●●●

Priya is writing a bus-timetable app for her school. She has already found out exactly what the app must do. She is now drawing a structure diagram of the app and writing its main steps in pseudocode.

Which stage of the program development life cycle is she working on?

Question 2 of 3Difficulty ●●●●●

A developer is designing a route-planning app for cyclists in Lisbon.

Which of these is an example of abstraction?

Question 3 of 3Difficulty ●●●●●

A go-kart club times six drivers over one lap of its track. Each time is in seconds and is less than 99. Fig. 1 shows the flowchart of the program used by the coach.

What is the purpose of the flowchart?

Fig. 1: Flowchart: START; process 'Best ← 99, Winner ← 0, Driver ← 1'; INPUT Time; decision 'Time < Best?'. The Yes exit goes right to the process 'Best ← Time, Winner ← Driver', which then joins the No exit at the process 'Driver ← Driver + 1'. Next a decision 'Driver > 6?': the No exit goes back up to INPUT Time; the Yes exit goes down to OUTPUT Winner, then STOP.

Fig. 1