Past-paper question · 2019 October-November · Paper 21 · Q1(b)(i)

Question 1(b)(i) 2019 · October-November · Paper 21 · 4 marks

Original past-paper question for 1(B)(I)
Original past-paper question for 1(B)(I)
Original past-paper question for 1(B)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 1(B)(I)

Official answer for Question 1

Part (b)

(i)

✓
One mark per row

Question 4

✓
Example value
✓
Data type
✓
"NOT TRUE"
✓
STRING
✓
− 4.5
✓
REAL
✓
BOOLEAN
✓
132
✓
INTEGER

Mark scheme 9608_w19_ms_21.pdf →

Show text version of question

Question 1

Part (b)

(i)

Question 1

Study the following pseudocode.

FUNCTION Search() RETURNS INTEGER DECLARE N, C : INTEGER DECLARE V, L : REAL V GetLevel() L V * 1.34

C
0

FOR N 1 TO 10 V GetLevel() IF V > L THEN

C
C + 1

ENDIF ENDFOR OUTPUT "Process complete" RETURN C ENDFUNCTION

(i)

Programming languages support different data types.

Complete the table by giving a suitable data type for each example value.

Example value Data type

"NOT TRUE"

− 4.5

NOT FALSE

132

[4]
Topic relevance

Why this question appears here

99% assigned-topic match · Data types and structures › Data types and records

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9608_w19_qp_21.pdf

Keep practising this topic