Data structures

EasyMedium
1234567891011121314151617181920212223
Question 9
Easy

Complete Figure 1 by filling in the gaps [A], [B], and [C] using the items in Table 1.

  • You may need to use some of the items in Table 1 more than once.
  • You will not need to use all the items in Table 1.

Table 1

C1C2Car
electricmileageInteger
RealBooleanString

Figure 1

RECORD [A]

    regPlate : String

    mileage : [B]

    [C] : Boolean

ENDRECORD

C1 ← Car("AB12 CDE", 45000, False)

C2 ← Car("XY19 ZZZ", 12000, True)
[3]

Data structures Questions

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