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
(ii) State two input/output device management tasks performed by the OS. 1 ........................................................................................................…
Programming basics · 2 marks · official answer ready
(iii) The K-map can be used to simplify the expression in part (a)(i). Draw loops around appropriate groups of 1s in the table in part (a)(ii) to produce an optimal sum-of-product…
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 · 3 marks · official answer ready
(a) Give reasons why each of these statements is invalid. X = XY + 21 .............................................................................................................…
Programming basics · 5 marks · official answer ready
(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams shown. has been completed for you. ::= X|Y|Z ::= ..................................................................…
Programming basics · 3 marks · official answer ready
(ii) Give the BNF for the revised variable. .......................................................................................................................................…
Programming basics · 2 marks · official answer ready
(ii) Justify your answer to part (i). ........................................................................................................................................... .…
Programming basics · 2 marks · official answer ready
(iii) The K-map can be used to simplify the expression in part (a)(i). Draw loops around appropriate groups of 1s in the table in part (a)(ii) to produce an optimal sum-of-product…
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 · 3 marks · official answer ready
(a) Give reasons why each of these statements is invalid. X1 = Y - 21 .............................................................................................................…
Programming basics · 5 marks · official answer ready
(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams shown. has been completed for you. ::= X|Y|Z ::= ..................................................................…
Programming basics · 2 marks · official answer ready
(ii) Justify your answer to part (i). ........................................................................................................................................... .…
Programming basics · 2 marks · official answer ready
(iii) The K-map can be used to simplify the expression in part (a)(i). Draw loops around appropriate groups of 1s in the table in part (a)(ii) to produce an optimal sum-of-product…
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 · 3 marks · official answer ready
(a) Give reasons why each of these statements is invalid. X = XY + 21 .............................................................................................................…
Programming basics · 5 marks · official answer ready
(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams shown. has been completed for you. ::= X|Y|Z ::= ..................................................................…
Programming basics · 3 marks · official answer ready
(ii) Give the BNF for the revised variable. .......................................................................................................................................…
Programming basics · 2 marks · official answer ready
(ii) Justify your answer to part (i). ........................................................................................................................................... .…
Programming basics · 1 mark · official answer ready
(iii) Identify the line number of the JavaScript code that takes data the user has input and stores it in a variable. .............................................................…
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]
