Computing 9691 · 3

3.2 Logic gates and logic circuits

15 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2016 May-June · Paper 22 · Q3(a)(ii)

Logic gates and logic circuits · 3 marks · official answer ready

(ii) Write program code to declare the data structure with identifier Puzzle for a grid design of size 11 × 11 squares. Programming language ......................................…

2016 May-June · Paper 22 · Q3(a)(iv)

Logic gates and logic circuits · 2 marks · official answer ready

(iv) The seventh square in the first row of the example crossword grid is black. Write program code for the assignment statement to set the corresponding element of Puzzle to repr…

2016 May-June · Paper 22 · Q3(c)

Logic gates and logic circuits · 8 marks · official answer ready

(c) Zara wants her program to number the squares where a word starts. She also wants the program to create two lists, AcrossList and DownList. AcrossList will contain the numbers …

2015 October-November · Paper 31 · Q6

Logic gates and logic circuits · 7 marks

6 A high-level programming language has a built-in function SumRange defined as follows: SumRange(ThisInteger1 : INTEGER, ThisInteger2 : INTEGER [Flag : CHAR]) RETURNS INTEGER ret…

2015 October-November · Paper 33 · Q6

Logic gates and logic circuits · 7 marks

6 A high-level programming language has a built-in function SumRange defined as follows: SumRange(ThisInteger1 : INTEGER, ThisInteger2 : INTEGER [Flag : CHAR]) RETURNS INTEGER ret…

2015 May-June · Paper 22 · Q3(a)(iii)

Logic gates and logic circuits · 7 marks · official answer ready

(iii) In a high-level programming language, write statements to: • declare the array Grid • assign the value for an empty cell to all cells Programming language ..................…

2015 May-June · Paper 23 · Q2(d)(i)

Logic gates and logic circuits · 1 mark · official answer ready

(i) A high-level programming language has a built-in function that generates a random number. The function is defined as follows: RANDOM(n : INTEGER) RETURNS INTEGER returns an in…

2015 May-June · Paper 23 · Q3(d)(i)

Logic gates and logic circuits · 1 mark

3 07 19 climb to top of ladder The top of a slide, so 6 10 03 move down the slide Ali plans to write a program to test different board designs. Each board design will have differe…

2013 May-June · Paper 21 · Q2(c)(ii)

Logic gates and logic circuits · 16 marks · official answer ready

(ii) State the reason why this invalid HandInDate is not a good test of the validation rules. [1]

2013 May-June · Paper 21 · Q2(c)(iii)

Logic gates and logic circuits · 18 marks · official answer ready

(iii) State three hand-in dates that provide a better test to show that invalid data does not get entered. [3] Meena also wants to check that HandInDate is later than both DateSet…

2013 May-June · Paper 22 · Q2(c)(ii)

Logic gates and logic circuits · 16 marks · official answer ready

(ii) State the reason why this invalid HandInDate is not a good test of the validation rules. [1]

2013 May-June · Paper 22 · Q2(c)(iii)

Logic gates and logic circuits · 18 marks · official answer ready

(iii) State three hand-in dates that provide a better test to show that invalid data does not get entered. [3] Meena also wants to check that HandInDate is later than both DateSet…

2012 October-November · Paper 21 · Q8(d)(i)

Logic gates and logic circuits · 40 marks

(i) Explain why adding a HireBike record to the file would not be programmed as a function. [2] 14

2012 October-November · Paper 22 · Q8(d)

Logic gates and logic circuits · 50 marks

(d) There are a number of debugging tools associated with high-level languages. Describe how breakpoints and stepping can be used when developing a program. [4] 11 3 Super Cars wi…

2012 October-November · Paper 23 · Q8(d)

Logic gates and logic circuits · 51 marks

(d) There are a number of debugging tools associated with high-level languages. Describe how breakpoints and a variable watch can be used when developing a program. [4] 11 3 Super…