Programming
471 questions. Open a question to solve it and check the official answer.
Programming basics · 2 marks · official answer ready
(a) Describe the difference between a monitoring system and a control system. .....................................................................................................…
Constructs · 1 mark · official answer ready
(i) 35 > 24 Reason .............................................................................................................................. .................................…
Constructs · 1 mark · official answer ready
(ii) abc := cba Reason .............................................................................................................................. .............................…
Constructs · 1 mark · official answer ready
(iii) bc < 49 Reason .............................................................................................................................. ...............................…
Programming basics · 2 marks · official answer ready
(c) Draw loops around appropriate groups in the K-map in part (b) to produce an optimal sum-of- products. [2]
Programming basics · 2 marks · official answer ready
(d) Write, using your answer to part (c), a simplified sum-of-products expression for the truth table. X = ........................................................................…
Constructs · 3 marks · official answer ready
(b) State three characteristics of massively parallel computers. 1 ................................................................................................................…
Constructs · 4 marks · official answer ready
(ii) Complete the rules for the actions in the following decision table. Rules Document printed but the quality Y Y Y Y N N N N is poor Conditions Error light is flashing on print…
Constructs · 3 marks
4 The following table contains definitions related to testing terminology. Complete the table with the correct testing term to match the definition. Definition Term Software is te…
Constructs · 4 marks · official answer ready
(b) Describe how a number is removed from the circular queue to be processed. .....................................................................................................…
Constructs · 2 marks · official answer ready
(i) Two debugging features are described in the table. Write the correct name for each debugging feature. Description Name of debugging feature A point where the program can be ha…
Constructs · 4 marks · official answer ready
(ii) Complete the rules for the actions in the following decision table. Rules Document printed but the quality Y Y Y Y N N N N is poor Conditions Error light is flashing on print…
Constructs · 3 marks
4 The following table contains definitions related to testing terminology. Complete the table with the correct testing term to match the definition. Definition Term Software is te…
Constructs · 4 marks · official answer ready
(i) Describe two advantages of using library routines in the program. 1 ...........................................................................................................…
Constructs · 2 marks · official answer ready
(ii) Explain how the sampling rate and sampling resolution affect the file size of the sound track. Sampling rate .................................................................…
Programming basics · 2 marks · official answer ready
(b) A processor’s instruction set can be grouped according to their function. For example, one group is the input and output of data. Identify two other groups of instructions. 1 …
Constructs · 2 marks · official answer ready
(c) The sound track has a sampling rate of 88.2 kHz and a sampling resolution of 32 bits. State what is meant by a sampling rate of 88.2 kHz and a sampling resolution of 32 bits. …
Constructs · 5 marks · official answer ready
(i) Evaluate each expression in the following table. If an expression is invalid, write ERROR. For the built-in functions list, refer to the Appendix on page 16. Expression Evalua…
Programming · 5 marks · official answer ready
(ii) Programming languages support different data types. Give an appropriate data type for the following variables from part (b). Variable Data type Title Version PackSize WeightE…
Constructs · 3 marks · official answer ready
(b) Chris is asked to work on a program that has been coded in a language he is not familiar with. He has identified that the program contains the constructs: sequence, iteration …
