Computer Science 9608 · 11

Programming

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

2016 October-November · Paper 41 · Q4

Constructs · 6 marks · official answer ready

4 Commercial software usually undergoes acceptance testing and integration testing. Distinguish between the two types of testing by stating: • who does the testing • when the test…

2016 October-November · Paper 42 · Q3(b)

Constructs · 12 marks · official answer ready

(b) Complete the program using op codes from the given instruction set. Op Label Operand Comment code START: // initialise index register to zero // get first character of WORD //…

2016 October-November · Paper 42 · Q4(a)(i)

Programming · 3 marks · official answer ready

(i) Name the programming environment you have used when typing in program code. ...................................................................................................…

2016 October-November · Paper 42 · Q4(a)(iii)

Constructs · 2 marks · official answer ready

(iii) The table shows a module definition for BubbleSort in three programming languages. Study one of the examples. Indicate your choice by circling A, B or C: A B C A) Python 01 …

2016 October-November · Paper 42 · Q4(b)(iii)

Constructs · 4 marks · official answer ready

(iii) State the programming environment you have used when debugging program code. ................................................................................................…

2016 October-November · Paper 43 · Q2(a)(i)

Programming · 3 marks · official answer ready

(i) Name the programming environment you have used when typing in program code. ...................................................................................................…

2016 October-November · Paper 43 · Q2(b)(iii)

Constructs · 4 marks · official answer ready

(iii) State the programming environment you have used when debugging program code. ................................................................................................…

2016 October-November · Paper 43 · Q4

Constructs · 6 marks · official answer ready

4 Commercial software usually undergoes acceptance testing and integration testing. Distinguish between the two types of testing by stating: • who does the testing • when the test…

2016 May-June · Paper 13 · Q3(c)

Constructs · 4 marks · official answer ready

(c) The company has decided to purchase commercial software. Identify four benefits to the company in choosing the commercial software option. 1 ..................................…

2016 May-June · Paper 21 · Q1(a)(i)

Constructs · 0 marks · official answer ready

(i) Show what type of programming construct each statement represents. Complete the table by putting a tick (✓) in the appropriate column for each item. Item Statement Selection I…

2016 May-June · Paper 21 · Q6(b)(ii)

Programming basics · 49 marks · official answer ready

(ii) Write program code to implement the flowchart design. In addition to the Lookup array, assume that the following variables have been declared: StartPos, NumToChange, n, NewCh…

2016 May-June · Paper 22 · Q1(a)(i)

Constructs · 0 marks · official answer ready

(i) Show what type of programming construct each statement represents. Complete the table by putting a tick (✓) in the appropriate column for each item. Item Statement Selection I…

2016 May-June · Paper 22 · Q6(b)(ii)

Programming basics · 49 marks · official answer ready

(ii) Write program code to implement the flowchart design. In addition to the Lookup array, assume that the following variables have been declared: StartPos, NumToChange, n, NewCh…

2016 May-June · Paper 23 · Q1(a)(i)

Constructs · 0 marks · official answer ready

(i) Show what type of programming construct each statement represents. Complete the table by putting a tick (✓) in the appropriate column for each item. Item Statement Selection I…

2016 May-June · Paper 41 · Q4(a)(i)

Constructs · 1 mark · official answer ready

(i) DeadlineYear is assigned value 2011. Identify the car registrations for cars which are due to be tested. ......................................................................…

2016 May-June · Paper 41 · Q4(b)

Constructs · 3 marks · official answer ready

(b) If a car fails one of the two tests, a retest is allowed. Write a new rule for this. retestAllowed(..............................) if .........................................…

2016 May-June · Paper 41 · Q4(c)(i)

Constructs · 2 marks · official answer ready

(i) The list [a07,p03] is denoted by [A|B] State the value of A and B. A = ...................................................................................... B = .............…

2016 May-June · Paper 41 · Q4(c)(ii)

Constructs · 1 mark · official answer ready

(ii) The lists [c03,d02,n05|C] and [c03,d02,n05,p05,m04] are identical. State the value of C. C = .................................................................................…

2016 May-June · Paper 41 · Q4(c)(iii)

Constructs · 1 mark · official answer ready

(iii) The list [a06,a02] is denoted by [D,E|F] State the value of F. F = ..................................................................................... [1] 10

2016 May-June · Paper 41 · Q6(a)

Constructs · 4 marks · official answer ready

(a) A state-transition diagram is drawn to clarify how the game is played. Complete the following state-transition diagram. WHITE WINS No move :+,7(·6 possible TURN Stalemate BLAC…