Past-paper question · 2007 May-June · Paper 3 · Q6(b)(ii)

Question 6(b)(ii) 2007 · May-June · Paper 3 · 4 marks

Original past-paper question for 6(B)(II)
Original past-paper question for 6(B)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 6(B)(II)

Official answer for Question 6

Part (b)

(ii)

(ii)

- the value of the variable exists throughout the code of the program

  • the variable used to hold the details searched for (needs to be used outside the
✓
procedure).
✓
(Note: Other examples are fine with reasonable explanation. 1 per -, max 4)
[4]

Mark scheme 9691_s07_ms_3.pdf →

Show text version of question

Question 6

Part (b)

(ii)

Question 6

A name is passed as a parameter to a function.

The function uses a loop structure to search for the name in an array. It returns the details found to the calling program. Using examples from this function, explain what is meant by a

(ii)

global variable.

[4]
Topic relevance

Why this question appears here

99% assigned-topic match · Programming › Structured programming

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 9691_s07_qp_3.pdf

Keep practising this topic