Computer Science 9608 · 11

11.1 Programming basics

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

Reset
2019 October-November · Paper 31 · Q4(d)

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

2019 October-November · Paper 32 · Q2(a)(iii)

Programming basics · 2 marks · official answer ready

(iii) Draw loop(s) around appropriate groups in the table in part (a)(ii), to produce an optimal sum-of-products. [2]

2019 October-November · Paper 32 · Q5(a)

Programming basics · 2 marks · official answer ready

(a) Describe the difference between a monitoring system and a control system. .....................................................................................................…

2019 October-November · Paper 33 · Q4(c)

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]

2019 October-November · Paper 33 · Q4(d)

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

2019 May-June · Paper 12 · Q3(b)

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 …

2019 May-June · Paper 23 · Q4(b)

Programming basics · 1 mark · official answer ready

(b) Give one advantage of your solution. ..........................................................................................................................................…

2019 May-June · Paper 31 · Q4(a)

Programming basics · 3 marks · official answer ready

(a) Complete the symbol table to show its contents after the lexical analysis stage. Token Symbol Value Type Counter 60 Variable [3]

2019 May-June · Paper 32 · Q3(a)(ii)

Programming basics · 2 marks · official answer ready

(ii) Draw loops around appropriate groups of 1s in the K-map to produce an optimal sum-of- products. [2]

2019 May-June · Paper 32 · Q3(a)(iii)

Programming basics · 2 marks

(iii) Write the simplified sum-of-products Boolean expression for the truth table. X = ............................................................................................…

2019 May-June · Paper 32 · Q3(b)(ii)

Programming basics · 2 marks

(ii) Draw loops around appropriate groups of 1s in the K-map to produce an optimal sum-of-products. [2]

2019 May-June · Paper 32 · Q3(b)(iii)

Programming basics · 2 marks

(iii) Write the simplified sum-of-products Boolean algebraic expression for the truth table. X = ..................................................................................…

2019 May-June · Paper 33 · Q4(a)

Programming basics · 3 marks · official answer ready

(a) Complete the symbol table to show its contents after the lexical analysis stage. Token Symbol Value Type Counter 60 Variable [3]

2018 October-November · Paper 22 · Q3(a)

Programming basics · 2 marks · official answer ready

3 (a) Programming is sometimes referred to as a transferable skill. You are asked to work on a program written in a language you are not familiar with. Explain how transferable sk…

2018 October-November · Paper 23 · Q4(d)(ii)

Programming basics · 1 mark · official answer ready

(ii) A programmer decides to declare LastElement as a constant instead of a variable. Write a statement in pseudocode to declare LastElement as the value 200. ....................…

2018 October-November · Paper 31 · Q4(a)(iii)

Programming basics · 3 marks · official answer ready

(iii) The K‑map can be used to simplify the expression in part (a)(i). Draw loop(s) around appropriate groups of 1s in the table in part (a)(ii) to produce an optimal sum‑of‑produ…

2018 October-November · Paper 31 · Q4(a)(iv)

Programming basics · 3 marks · official answer ready

(iv) Write the simplified sum‑of‑products expression for your answer to part (a)(iii). X = ........................................................................................…

2018 October-November · Paper 31 · Q4(b)(ii)

Programming basics · 2 marks · official answer ready

(ii) Draw loop(s) around appropriate groups of 1s in the table in part (b)(i) to produce an optimal sum‑of‑products. [2]

2018 October-November · Paper 31 · Q4(b)(iii)

Programming basics · 2 marks · official answer ready

(iii) Write the simplified sum‑of‑products expression for your answer to part (b)(ii). X = ........................................................................................…

2018 October-November · Paper 31 · Q6(a)

Programming basics · 3 marks · official answer ready

(a) Complete the symbol table to show its contents after the lexical analysis stage. Token Symbol Value Type Start 60 Variable 1 61 Constant [3]