Data types

Easy
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
Question 33
Easy

State the data type of the variable exceeded in the algorithm shown in Figure 1.

Figure 1

1  altitudes ← [124.5, 130.2, 142.8, 115.1, 98.4]
2  limit ← 140.0
3  exceeded ← FALSE
4  k ← 0
5  WHILE k < 5 AND exceeded = FALSE
6      IF altitudes[k] > limit THEN
7          exceeded ← TRUE
8      ELSE
9          k ← k + 1
10     ENDIF
11 ENDWHILE
[1]

Data types Questions

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