Skip to content

Course home

Data types

Data types

Easy
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
Question 8

An algorithm designed for an automated weather station uses a RECORD structure to store information about weather sensors.

RECORD SensorNode
    nodeName : String
    elevation : Integer
    statusCode : Character
    batteryLow : Boolean
ENDRECORD

node1 ← SensorNode('North_Ridge', 1420, 'A', False)
node2 ← SensorNode('Valley_Flow', 450, 'F', True)
node3 ← SensorNode('East_Slope', 980, 'B', False)
stationList ← [node1, node2, node3]

Under the standard 7-bit ASCII character set, how many different unique values can the field statusCode represent?

A

777

B

128128128

C

256256256

D

127127127

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