Fig. 1 shows part of a game program's state diagram. The player begins in the PLAYING state. A pause command can move the game to PAUSED; a resume command r...

Assessment: Computer Science 9210 | Paper 1 Mock 01 | Programming (on-screen) Subject: Computer Science - 9210

Question 1 Report

Fig. 1 shows part of a game program's state diagram. The player begins in the PLAYING state. A pause command can move the game to PAUSED; a resume command returns it to play.

PLAYINGPAUSEDpauseresume© EAGLE BEACON GLOBAL

(a) When the player uses the pause command, state the new game state. [1]
(b) Explain why the program should ignore movement commands while in the PAUSED state. [1]
(c) When resume is selected, state the state used for the next player turn. [1]

Answer Details

(a) The pause transition leads from PLAYING to PAUSED. [1]

(b) Movement commands should be ignored while paused so that the player's position does not change and the game does not continue during the pause. [1]

(c) The resume transition returns the game to PLAYING, so this is the state for the next player turn. [1]

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning