Data types

Easy
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
Question 31
Easy

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?

222

128128128

256256256

65 53665\,53665536

Data types Questions

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