Skip to content

Course home

Data types

Data types

Easy
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
Question 31

A game developer uses a record structure to store the state of active players in a multiplayer lobby.

RECORD PlayerState
    username : String
    score : Integer
    equipmentCode : Character
    isInvincible : Boolean
ENDRECORD

player1 ← PlayerState('ShadowNinja', 1420, 'B', False)
player2 ← PlayerState('LightMage', 2900, 'X', True)
player3 ← PlayerState('IronClad', 850, 'M', False)
activePlayers ← [player1, player2, player3]

If the programming language stores the equipmentCode field using standard 8-bit character encoding, how many different values can this field represent?

A

222

B

128128128

C

256256256

D

65 53665\,53665536

Markscheme

Data types Questions

  1. GCSE
  2. /Computer Science
  3. /Data types

50 exam-style questions on AQA GCSE Computer Science Data types. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank