11.1 Programming basics
169 questions in this subtopic. Open a question to solve it and check the official answer.
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 = ........................................................................…
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]
Programming basics · 2 marks · official answer ready
(a) Describe the difference between a monitoring system and a control system. .....................................................................................................…
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 = ........................................................................…
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 …
Programming basics · 1 mark · official answer ready
(b) Give one advantage of your solution. ..........................................................................................................................................…
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]
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]
Programming basics · 2 marks
(iii) Write the simplified sum-of-products Boolean expression for the truth table. X = ............................................................................................…
Programming basics · 2 marks
(ii) Draw loops around appropriate groups of 1s in the K-map to produce an optimal sum-of-products. [2]
Programming basics · 2 marks
(iii) Write the simplified sum-of-products Boolean algebraic expression for the truth table. X = ..................................................................................…
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]
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…
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. ....................…
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…
Programming basics · 3 marks · official answer ready
(iv) Write the simplified sum‑of‑products expression for your answer to part (a)(iii). X = ........................................................................................…
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]
Programming basics · 2 marks · official answer ready
(iii) Write the simplified sum‑of‑products expression for your answer to part (b)(ii). X = ........................................................................................…
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]
