Designing, creating and refining algorithms
7
0/6

Write an algorithm, using pseudocode or a flowchart, to run an exponentiation quiz game that meets the following requirements:

  • The player is asked a total of 6 quiz questions.
  • For each question, the program generates two random integers: a base, bbb, between 2 and 5 inclusive, and an exponent, ppp, between 2 and 4 inclusive.
  • The player is prompted to input the value of bpb^pbp.
  • If the player gets the correct answer, 3 points are added to their score.
  • At the end of the game, their total score is displayed.
[6]

Designing, creating and refining algorithms Questions

Practise OCR GCSE Computer Science Designing, creating and refining algorithms with exam-style questions for GCSE Computer Science. 50 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 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

Designing, creating and refining algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Designing, creating and refining algorithms