Computing 9691 · 11

11.1 Programming basics

104 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2013 May-June · Paper 22 · Q2(e)

Programming basics · 19 marks · official answer ready

(e) DateReturned will have to be later than HandInDate, the same or earlier than the For current date, and a mark has been entered. Examiner's Use Write pseudocode that will test …

2013 May-June · Paper 22 · Q2(f)(i)

Programming basics · 19 marks · official answer ready

(i) Complete the trace table using the data in the table above. Count Mark Mark < 40 Output [4] 9

2013 May-June · Paper 22 · Q2(f)(ii)

Programming basics · 16 marks · official answer ready

(ii) What useful information does this pseudocode output? For Examiner's Use [1]

2013 May-June · Paper 22 · Q2(f)(iii)

Programming basics · 17 marks · official answer ready

(iii) Meena has written the above pseudocode with features that make it easy to understand. State two such features. Feature 1 Feature 2 [2]

2013 May-June · Paper 22 · Q2(f)(iv)

Programming basics · 16 marks · official answer ready

(iv) State one other feature that could be introduced to this pseudocode to make it easier to understand. [1]

2013 May-June · Paper 22 · Q2(f)(v)

Programming basics · 16 marks · official answer ready

(v) Write pseudocode to demonstrate your answer to (iv). [1] 10

2013 May-June · Paper 22 · Q2(f)(vii)

Programming basics · 17 marks · official answer ready

(vii) Could this pseudocode be written using a FOR-ENDFOR structure? Justify your answer. [2] 11

2013 May-June · Paper 23 · Q4(b)

Programming basics · 6 marks · official answer ready

(b) Design the interface. It must allow for entry of marks and the output of the average mark. Remember, one of her friends has a sight impairment. [6] 11

2013 May-June · Paper 31 · Q6(a)(i)

Programming basics · 3 marks · official answer ready

(i) Batch processing [3]

2013 May-June · Paper 32 · Q6(a)(i)

Programming basics · 3 marks · official answer ready

(i) Batch processing [3]

2012 October-November · Paper 11 · Q8(a)(i)

Programming basics · 2 marks · official answer ready

(i) State an input device which would be suitable for use in this application. Justify your choice. Device Justification [2]

2012 October-November · Paper 11 · Q8(a)(ii)

Programming basics · 2 marks · official answer ready

(ii) State an output device which would be suitable for use in this application. Justify your choice. Device Justification [2]

2012 October-November · Paper 21 · Q2

Programming basics · 6 marks · official answer ready

2 [2] (d) Each subtask is coded as a program module. Explain how it is possible to use the same variable name for different variables in different modules. [2] (e) When validating…

2012 October-November · Paper 21 · Q2(e)

Programming basics · 4 marks

2 [2] (e) When validating the type of bike (road, hybrid, track) Soni uses INPUT Bike IF (Bike = “road”) (Bike = “hybrid”) (Bike = “track”) THEN OUTPUT Bike “ is valid” ELSE OUTPU…

2012 October-November · Paper 21 · Q2(f)(i)

Programming basics · 2 marks

2 [2] (f) All bikes in stock have a bike ID. Each bike ID is six characters long and has the format For BIKEXX, where X is a digit. Examiner's Use For example, BIKE65 is a valid b…

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(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 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…