Programming
471 questions. Open a question to solve it and check the official answer.
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…
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 //…
Programming · 3 marks · official answer ready
(i) Name the programming environment you have used when typing in program code. ...................................................................................................…
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 …
Constructs · 4 marks · official answer ready
(iii) State the programming environment you have used when debugging program code. ................................................................................................…
Programming · 3 marks · official answer ready
(i) Name the programming environment you have used when typing in program code. ...................................................................................................…
Constructs · 4 marks · official answer ready
(iii) State the programming environment you have used when debugging program code. ................................................................................................…
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…
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 ..................................…
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…
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…
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…
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…
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…
Constructs · 1 mark · official answer ready
(i) DeadlineYear is assigned value 2011. Identify the car registrations for cars which are due to be tested. ......................................................................…
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 .........................................…
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 = .............…
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 = .................................................................................…
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
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…
