Computing 9691 · 11

11.1 Programming basics

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

Reset
2015 October-November · Paper 11 · Q6(b)

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

2015 October-November · Paper 12 · Q7(b)

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]

2015 October-November · Paper 13 · Q6(b)

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

2015 October-November · Paper 32 · Q5(c)(i)

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 …

2015 October-November · Paper 32 · Q5(c)(ii)

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 …

2015 May-June · Paper 11 · Q6(b)(i)

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 ...................................................................................................…

2015 May-June · Paper 11 · Q6(b)(ii)

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]

2015 May-June · Paper 11 · Q6(c)(i)

Programming basics · 5 marks · official answer ready

(i) The data are sent using half-duplex, serial transmission. Explain these terms: Half-duplex ....................................................................................…

2015 May-June · Paper 11 · Q6(d)(i)

Programming basics · 4 marks · official answer ready

(i) Identify the byte that contains the incorrect bit. ............................................................................................................................…

2015 May-June · Paper 11 · Q6(d)(ii)

Programming basics · 4 marks

(ii) Identify the bit position that contains the incorrect bit. ...................................................................................................................…

2015 May-June · Paper 12 · Q8(a)(ii)

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. ...........................................................................…

2015 May-June · Paper 21 · Q2(a)(i)

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 ........................................................…

2015 May-June · Paper 21 · Q2(a)(ii)

Programming basics · 1 mark

(ii) Give the expected result from the sum of the numbers 3, 5, 2, 1. .............................................................................................................…

2015 May-June · Paper 21 · Q2(a)(iii)

Programming basics · 1 mark

(iii) What is the error in the given pseudocode? ..................................................................................................................................…

2015 May-June · Paper 21 · Q2(a)(iv)

Programming basics · 1 mark

(iv) State the type of error. ...................................................................................................................................... [1]

2015 May-June · Paper 21 · Q2(b)

Programming basics · 3 marks

(b) Rewrite the pseudocode so that it works correctly. ............................................................................................................................…

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

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 ........................................................…

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

Programming basics · 1 mark

(ii) Give the expected result from the sum of the numbers 3, 5, 2, 1. .............................................................................................................…

2015 May-June · Paper 22 · Q2(a)(iii)

Programming basics · 1 mark · official answer ready

(iii) What is the error in the given pseudocode? ..................................................................................................................................…

2015 May-June · Paper 22 · Q2(a)(iv)

Programming basics · 1 mark · official answer ready

(iv) State the type of error. ...................................................................................................................................... [1]