Computing 9691 · 11

11.1 Programming basics

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

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

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

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

Programming basics · 19 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(f)

Programming basics · 13 marks

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(f)(ii)

Programming basics · 13 marks

(ii) 7 MOD 4

2012 May-June · Paper 23 · Q4(f)(iii)

Programming basics · 20 marks

(iii) 7 DIV 4 [3] (b) Raul has Y litres of oil to put into drums. Each drum can hold X litres of oil. Write expressions to calculate: (i) the number of full drums [1] (ii) the num…