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
2015 October-November · Paper 31 · Q5(b)(ii)

Programming basics · 2 marks · official answer ready

(ii) Draw loop(s) around appropriate groups of 1’s to produce an optimal sum-of-products. [2]

2015 October-November · Paper 31 · Q5(b)(iii)

Programming basics · 2 marks · official answer ready

(iii) Using your answer to part (b)(ii), write the simplified sum-of-products Boolean function. X = ...............................................................................…

2015 October-November · Paper 32 · Q2(a)

Programming basics · 3 marks · official answer ready

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

2015 October-November · Paper 32 · Q5(a)(i)

Programming basics · 3 marks · official answer ready

(i) Complete the Boolean function that corresponds to the following truth table. INPUT OUTPUT P Q R Z 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 1 Z = P . Q . R…

2015 October-November · Paper 32 · Q5(b)(i)

Programming basics · 4 marks · official answer ready

(i) Complete the K-map corresponding to the truth table above. PQ RS [4]

2015 October-November · Paper 32 · Q5(b)(ii)

Programming basics · 2 marks · official answer ready

(ii) Draw loop(s) around appropriate groups of 1’s to produce an optimal sum-of-products. [2]

2015 October-November · Paper 33 · Q2(a)

Programming basics · 3 marks · official answer ready

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

2015 October-November · Paper 33 · Q5(a)(i)

Programming basics · 3 marks · official answer ready

(i) Complete the Boolean function that corresponds to the following truth table. INPUT OUTPUT A B C X 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1 X = A . B . C…

2015 October-November · Paper 33 · Q5(b)(i)

Programming basics · 4 marks · official answer ready

(i) Complete the K-map corresponding to the truth table above. AB CD [4]

2015 October-November · Paper 33 · Q5(b)(ii)

Programming basics · 2 marks · official answer ready

(ii) Draw loop(s) around appropriate groups of 1’s to produce an optimal sum-of-products. [2]

2015 October-November · Paper 33 · Q5(b)(iii)

Programming basics · 2 marks · official answer ready

(iii) Using your answer to part (b)(ii), write the simplified sum-of-products Boolean function. X = ...............................................................................…

2015 May-June · Paper 11 · Q6(b)(i)

Programming basics · 2 marks · official answer ready

(i) Describe two methods of preventing accidental loss of data. 1 .................................................................................................................…

2015 May-June · Paper 12 · Q6(b)(i)

Programming basics · 2 marks · official answer ready

(i) Describe two methods of preventing accidental loss of data. 1 .................................................................................................................…

2015 May-June · Paper 21 · Q1(a)

Programming basics · 3 marks · official answer ready

1 A marathon runner records their time for a race in hours, minutes and seconds. An algorithm is shown below in structured English. INPUT race time as hours, minutes and seconds C…

2015 May-June · Paper 21 · Q1(b)(i)

Programming basics · 1 mark

1 A marathon runner records their time for a race in hours, minutes and seconds. An algorithm is shown below in structured English. INPUT race time as hours, minutes and seconds C…

2015 May-June · Paper 21 · Q1(b)(ii)

Programming basics · 7 marks · official answer ready

1 A marathon runner records their time for a race in hours, minutes and seconds. An algorithm is shown below in structured English. INPUT race time as hours, minutes and seconds C…

2015 May-June · Paper 21 · Q1(c)(i)

Programming basics · 2 marks · official answer ready

1 A marathon runner records their time for a race in hours, minutes and seconds. An algorithm is shown below in structured English. INPUT race time as hours, minutes and seconds C…

2015 May-June · Paper 21 · Q1(c)(ii)

Programming basics · 0 marks · official answer ready

1 A marathon runner records their time for a race in hours, minutes and seconds. An algorithm is shown below in structured English. INPUT race time as hours, minutes and seconds C…

2015 May-June · Paper 21 · Q3(a)(i)

Programming basics · 9 marks

3 11053 [6] 5 2 A program displays a menu with choices 1 to 4. The code to display the menu is written as the procedure DisplayMenu. (a) Pseudocode which uses this procedure is: C…

2015 May-June · Paper 21 · Q3(a)(ii)

Programming basics · 7 marks

3 11053 [6] 5 2 A program displays a menu with choices 1 to 4. The code to display the menu is written as the procedure DisplayMenu. (a) Pseudocode which uses this procedure is: C…