Computer Science 9608 · 11

11.1 Programming basics

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

Reset
2015 May-June · Paper 21 · Q3(b)(i)

Programming basics · 7 marks · official answer ready

3 11053 [6] 5 2 A program displays a menu with choices 1 to 4. The code to display the menu is written as the procedure DisplayMenu. (b) The following pseudocode is a revised desi…

2015 May-June · Paper 21 · Q3(b)(ii)

Programming basics · 7 marks · official answer ready

3 11053 [6] 5 2 A program displays a menu with choices 1 to 4. The code to display the menu is written as the procedure DisplayMenu. (b) The following pseudocode is a revised desi…

2015 May-June · Paper 21 · Q4(a)

Programming basics · 13 marks

(a) Using the letters A to D, add the labelling to the chart boxes on the opposite page. Modules A Send quotation letter B Calculate price C Produce insurance quotation D Input co…

2015 May-June · Paper 21 · Q4(b)(i)

Programming basics · 20 marks

(i) Complete the pseudocode for the given algorithm. FOR ..........................................................................................................................…

2015 May-June · Paper 21 · Q4(b)(ii)

Programming basics · 16 marks

(ii) Identify the game result which will produce incorrect output. ................................................................................................................…

2015 May-June · Paper 21 · Q4(d)

Programming basics · 11 marks

4 Terminates the program Ends Complete the pseudocode for the design in part (b), shown again below, to respond to each menu choice. CONSTANT i 3 CALL DisplayMenu NoOfAttempts 0 R…

2015 May-June · Paper 21 · Q5(d)

Programming basics · 4 marks · official answer ready

(d) The company decides to offer a discount on selected dates. A program is written to indicate the dates on which a discount is offered. The program creates a text file, DISCOUNT…

2015 May-June · Paper 22 · Q1(a)

Programming basics · 3 marks · official answer ready

1 A marathon runner records their time for a race in hours, minutes and seconds. An algorithm is shown below in structured English. INPUT race time as hours, minutes and seconds C…

2015 May-June · Paper 22 · Q1(b)(i)

Programming basics · 1 mark

1 A marathon runner records their time for a race in hours, minutes and seconds. An algorithm is shown below in structured English. INPUT race time as hours, minutes and seconds C…

2015 May-June · Paper 22 · Q1(b)(ii)

Programming basics · 7 marks · official answer ready

1 A marathon runner records their time for a race in hours, minutes and seconds. An algorithm is shown below in structured English. INPUT race time as hours, minutes and seconds C…

2015 May-June · Paper 22 · Q1(c)(i)

Programming basics · 2 marks · official answer ready

1 A marathon runner records their time for a race in hours, minutes and seconds. An algorithm is shown below in structured English. INPUT race time as hours, minutes and seconds C…

2015 May-June · Paper 22 · Q1(c)(ii)

Programming basics · 0 marks · official answer ready

1 A marathon runner records their time for a race in hours, minutes and seconds. An algorithm is shown below in structured English. INPUT race time as hours, minutes and seconds C…

2015 May-June · Paper 22 · Q3(a)(i)

Programming basics · 9 marks

3 11053 [6] 5 2 A program displays a menu with choices 1 to 4. The code to display the menu is written as the procedure DisplayMenu. (a) Pseudocode which uses this procedure is: C…

2015 May-June · Paper 22 · Q3(a)(ii)

Programming basics · 7 marks

3 11053 [6] 5 2 A program displays a menu with choices 1 to 4. The code to display the menu is written as the procedure DisplayMenu. (a) Pseudocode which uses this procedure is: C…

2015 May-June · Paper 22 · Q3(b)(i)

Programming basics · 7 marks · official answer ready

3 11053 [6] 5 2 A program displays a menu with choices 1 to 4. The code to display the menu is written as the procedure DisplayMenu. (b) The following pseudocode is a revised desi…

2015 May-June · Paper 22 · Q3(b)(ii)

Programming basics · 7 marks · official answer ready

3 11053 [6] 5 2 A program displays a menu with choices 1 to 4. The code to display the menu is written as the procedure DisplayMenu. (b) The following pseudocode is a revised desi…

2015 May-June · Paper 22 · Q4(a)

Programming basics · 13 marks

(a) Using the letters A to D, add the labelling to the chart boxes on the opposite page. Modules A Send quotation letter B Calculate price C Produce insurance quotation D Input co…

2015 May-June · Paper 22 · Q4(b)(i)

Programming basics · 20 marks

(i) Complete the pseudocode for the given algorithm. FOR ..........................................................................................................................…

2015 May-June · Paper 22 · Q4(b)(ii)

Programming basics · 16 marks

(ii) Identify the game result which will produce incorrect output. ................................................................................................................…

2015 May-June · Paper 22 · Q4(d)

Programming basics · 11 marks

4 Terminates the program Ends Complete the pseudocode for the design in part (b), shown again below, to respond to each menu choice. CONSTANT i 3 CALL DisplayMenu NoOfAttempts 0 R…