11.1 Programming basics
20 questions in this subtopic. Open a question to solve it and check the official answer.
Programming basics · 4 marks · official answer ready
(b) Complete the truth table for the safety system. Input Working space Output X T P V 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 [4] 10
Programming basics · 4 marks · official answer ready
(b) Complete the truth table. Input Workspace Output A B C X 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 [4]
Programming basics · 4 marks · official answer ready
(b) Complete the truth table for the safety system. Input Working space Output X T P V 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 [4] 10
Programming basics · 2 marks · official answer ready
5 A busy main road connects Town A and Town B. A large new housing development is being built near the main road. A new road from the housing development will connect to the main …
Programming basics · 1 mark · official answer ready
5 A busy main road connects Town A and Town B. A large new housing development is being built near the main road. A new road from the housing development will connect to the main …
Programming basics · 4 marks
(i) Give the denary value if the byte contains: 7 6 5 4 3 2 1 0 0 1 1 1 1 0 0 0 ...................................................................................................…
Programming basics · 4 marks · official answer ready
(ii) Show what binary value must be stored in the byte to represent the denary value 43. 7 6 5 4 3 2 1 0 [1]
Programming basics · 5 marks · official answer ready
(i) The data are sent using half-duplex, serial transmission. Explain these terms: Half-duplex ....................................................................................…
Programming basics · 4 marks · official answer ready
(i) Identify the byte that contains the incorrect bit. ............................................................................................................................…
Programming basics · 4 marks
(ii) Identify the bit position that contains the incorrect bit. ...................................................................................................................…
Programming basics · 1 mark · official answer ready
(ii) Study the output in your answer to part (a)(i). State what could replace this whole logic circuit. ...........................................................................…
Programming basics · 4 marks
(i) The sequence of numbers 3, 5, 2, 1 is input and terminated with −1. Complete the trace table. x Result x -1 0 0 Output ........................................................…
Programming basics · 1 mark
(ii) Give the expected result from the sum of the numbers 3, 5, 2, 1. .............................................................................................................…
Programming basics · 1 mark
(iii) What is the error in the given pseudocode? ..................................................................................................................................…
Programming basics · 1 mark
(iv) State the type of error. ...................................................................................................................................... [1]
Programming basics · 3 marks
(b) Rewrite the pseudocode so that it works correctly. ............................................................................................................................…
Programming basics · 4 marks · official answer ready
(i) The sequence of numbers 3, 5, 2, 1 is input and terminated with −1. Complete the trace table. x Result x -1 0 0 Output ........................................................…
Programming basics · 1 mark
(ii) Give the expected result from the sum of the numbers 3, 5, 2, 1. .............................................................................................................…
Programming basics · 1 mark · official answer ready
(iii) What is the error in the given pseudocode? ..................................................................................................................................…
Programming basics · 1 mark · official answer ready
(iv) State the type of error. ...................................................................................................................................... [1]
