11
0/6

Arthur wants to track the daily active user count for his mobile app over a 30-day trial period.

The pseudocode of an algorithm he has written is shown:

10 d = 0 WHILE d < 30 SET d TO d + 1 RECEIVE u FROM KEYBOARD OUTPUT d, u ENDWHILE

In some programming languages, if a program is written like this on a single line, it could be translated and executed.

Discuss the suitability of this code for humans and how it could be improved.

[6]

Develop code Questions

Practise Edexcel GCSE Computer Science Develop code with exam-style questions for GCSE Computer Science. 57 questions covering Decomposition and abstraction to solve problems, Read, write, analyse and refine programs, Converting algorithms into programs, Techniques for readable, maintainable code, Identifying and correcting program errors, and Evaluating program fitness and efficiency, matched to the Edexcel GCSE Computer Science (1CP2) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

PreviousNext

Develop code Questions

  1. GCSE
  2. /Computer Science
  3. /Develop code