Computing 9691 · 11

Programming

468 questions. Open a question to solve it and check the official answer.

Reset
2012 May-June · Paper 13 · Q4

Constructs · 6 marks · official answer ready

4 When data is to be entered into a computer system it is sometimes entered using manual methods and sometimes it is captured and entered automatically. Describe the following met…

2012 May-June · Paper 13 · Q7(b)(ii)

Constructs · 6 marks · official answer ready

(ii) The table shows three fields that are used in the records for data stored about T-shirts. Give the data type for each field. Give a reason for your choice in each case. Field…

2012 May-June · Paper 21 · Q1(d)

Constructs · 5 marks · official answer ready

(d) Anna is to write a program to analyse the responses. For Examiner's Use Using nested IF...THEN statements, complete the pseudocode to calculate the totals for each BookType (p…

2012 May-June · Paper 21 · Q3(b)(iii)

Programming basics · 7 marks · official answer ready

3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…

2012 May-June · Paper 21 · Q3(c)

Constructs · 8 marks

(c) Philipe is not convinced that a WHILE loop was the best choice for this pseudocode. For Instead he considers using a REPEAT...UNTIL loop. Examiner's Use Rewrite the corrected …

2012 May-June · Paper 21 · Q3(d)

Programming basics · 9 marks

3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…

2012 May-June · Paper 21 · Q3(d)(i)

Programming basics · 19 marks

(i) State the parameters of the function. [2]

2012 May-June · Paper 21 · Q3(d)(ii)

Programming basics · 19 marks

(ii) Write the function header in the language you used in part (a). [2]

2012 May-June · Paper 21 · Q3(d)(iii)

Structured programming · 18 marks

(iii) State why Gina used a function rather than a procedure. [1]

2012 May-June · Paper 22 · Q1(d)

Constructs · 5 marks · official answer ready

(d) Anna is to write a program to analyse the responses. For Examiner's Use Using nested IF...THEN statements, complete the pseudocode to calculate the totals for each BookType (p…

2012 May-June · Paper 22 · Q3(b)(iii)

Programming basics · 7 marks · official answer ready

3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…

2012 May-June · Paper 22 · Q3(c)

Constructs · 8 marks

(c) Philipe is not convinced that a WHILE loop was the best choice for this pseudocode. For Instead he considers using a REPEAT...UNTIL loop. Examiner's Use Rewrite the corrected …

2012 May-June · Paper 22 · Q3(d)

Programming basics · 9 marks

3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…

2012 May-June · Paper 22 · Q3(d)(i)

Programming basics · 19 marks

(i) State the parameters of the function. [2]

2012 May-June · Paper 22 · Q3(d)(ii)

Programming basics · 19 marks

(ii) Write the function header in the language you used in part (a). [2]

2012 May-June · Paper 22 · Q3(d)(iii)

Structured programming · 18 marks

(iii) State why Gina used a function rather than a procedure. [1]

2012 May-June · Paper 23 · Q1(e)

Constructs · 5 marks · official answer ready

(e) Anna is to write a program to analyse the responses. For Examiner's Use Using a SELECT/CASE construct write the pseudocode to count the number of students for each age group w…

2012 May-June · Paper 23 · Q4(a)

Programming basics · 16 marks

(a) Using a high-level programming language, write the code to perform this task. (Ensure that you use meaningful variable names and lay the code out clearly.) Programming languag…

2012 May-June · Paper 23 · Q4(a)(i)

Programming basics · 16 marks · official answer ready

4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…

2012 May-June · Paper 23 · Q4(a)(ii)

Programming basics · 16 marks · official answer ready

4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…