Data types

Easy
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
Question 48
Easy

Study the algorithm shown below.

1  salinityReadings ← [35.2, 34.8, 32.1, 35.5]
2  alertTriggered ← false
3  counter ← 0
4  WHILE counter < 4 AND alertTriggered = false
5      IF salinityReadings[counter] < 33.0 THEN
6          alertTriggered ← true
7      ELSE
8          counter ← counter + 1
9      ENDIF
10 ENDWHILE

State the data type of the variable alertTriggered in this algorithm.

[1]

Data types Questions

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