Programming
471 questions. Open a question to solve it and check the official answer.
Programming basics · 1 mark · official answer ready
(ii) A = B − D; Reason .............................................................................................................................. .............................…
Programming basics · 1 mark · official answer ready
(iii) C4 = B2 − A1 + C3; Reason .............................................................................................................................. ....................…
Programming basics · 6 marks · official answer ready
(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams shown on the opposite page. ::= ...................................................................................…
Programming basics · 2 marks · official answer ready
(iii) Draw loop(s) around appropriate group(s) of 1s to produce an optimal sum-of-products for the table in part (a)(ii). [2]
Programming basics · 2 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 group(s) of 1s to produce an optimal sum-of-products for the table in part (b)(i). [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 · 1 mark · official answer ready
(i) xy = xy ^ c4 Reason .............................................................................................................................. ............................…
Programming basics · 1 mark · official answer ready
(ii) zy = zy \ 10 Reason .............................................................................................................................. ...........................…
Programming basics · 1 mark · official answer ready
(iii) yy := xz ^ − 6 Reason .............................................................................................................................. ........................…
Programming basics · 4 marks · official answer ready
(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams on the opposite page. ::= .........................................................................................…
Programming basics · 2 marks · official answer ready
(c) Rewrite the BNF rule for a variable so that it can be any number of letters. ::= ..............................................................................................…
Programming basics · 4 marks
7 …………… [3] (a) A Boolean expression produces the following truth table. INPUT OUTPUT A B C X 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 0 (iii) yy := xz ^ − 6 …
Programming basics · 5 marks
7 …………… [3] (a) A Boolean expression produces the following truth table. INPUT OUTPUT A B C X 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 0 (iv) Write the simpli…
Programming basics · 7 marks
7 …………… [3] (b) A logic circuit with four inputs produces the following truth table. INPUT OUTPUT A B C D X 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0…
Programming basics · 5 marks
7 …………… [3] (b) A logic circuit with four inputs produces the following truth table. INPUT OUTPUT A B C D X 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0…
Programming basics · 5 marks
7 …………… [3] (b) A logic circuit with four inputs produces the following truth table. INPUT OUTPUT A B C D X 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0…
Constructs · 5 marks · official answer ready
(a) Complete the JSP structure diagram for this music service from the pseudocode given. Music Service [5] 7
Constructs · 2 marks · official answer ready
(c) Explain how the project manager will use the GANTT chart to make sure the project is completed on time. .......................................................................…
Constructs · 5 marks · official answer ready
(a) Complete the JSP structure diagram for this music service from the pseudocode given. Music Service [5] 7
