Computer Science 9608 · 11

Programming

471 questions. Open a question to solve it and check the official answer.

Reset
2018 May-June · Paper 32 · Q2(a)(ii)

Programming basics · 1 mark · official answer ready

(ii) A = B − D; Reason .............................................................................................................................. .............................…

2018 May-June · Paper 32 · Q2(a)(iii)

Programming basics · 1 mark · official answer ready

(iii) C4 = B2 − A1 + C3; Reason .............................................................................................................................. ....................…

2018 May-June · Paper 32 · Q2(b)

Programming basics · 6 marks · official answer ready

(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams shown on the opposite page. ::= ...................................................................................…

2018 May-June · Paper 33 · Q4(a)(iii)

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]

2018 May-June · Paper 33 · Q4(a)(iv)

Programming basics · 2 marks · official answer ready

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

2018 May-June · Paper 33 · Q4(b)(ii)

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]

2018 May-June · Paper 33 · 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 May-June · Paper 33 · Q5(a)(i)

Programming basics · 1 mark · official answer ready

(i) xy = xy ^ c4 Reason .............................................................................................................................. ............................…

2018 May-June · Paper 33 · Q5(a)(ii)

Programming basics · 1 mark · official answer ready

(ii) zy = zy \ 10 Reason .............................................................................................................................. ...........................…

2018 May-June · Paper 33 · Q5(a)(iii)

Programming basics · 1 mark · official answer ready

(iii) yy := xz ^ − 6 Reason .............................................................................................................................. ........................…

2018 May-June · Paper 33 · Q5(b)

Programming basics · 4 marks · official answer ready

(b) Complete the Backus-Naur Form (BNF) for the syntax diagrams on the opposite page. ::= .........................................................................................…

2018 May-June · Paper 33 · Q5(c)

Programming basics · 2 marks · official answer ready

(c) Rewrite the BNF rule for a variable so that it can be any number of letters. ::= ..............................................................................................…

2018 May-June · Paper 33 · Q7(a)(iii)

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 …

2018 May-June · Paper 33 · Q7(a)(iv)

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…

2018 May-June · Paper 33 · Q7(b)(i)

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…

2018 May-June · Paper 33 · Q7(b)(ii)

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…

2018 May-June · Paper 33 · Q7(b)(iii)

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…

2018 May-June · Paper 41 · Q3(a)

Constructs · 5 marks · official answer ready

(a) Complete the JSP structure diagram for this music service from the pseudocode given. Music Service [5] 7

2018 May-June · Paper 42 · Q5(c)

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

2018 May-June · Paper 43 · Q3(a)

Constructs · 5 marks · official answer ready

(a) Complete the JSP structure diagram for this music service from the pseudocode given. Music Service [5] 7