3.2 Logic gates and logic circuits
15 questions in this subtopic. Open a question to solve it and check the official answer.
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 ......................................…
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…
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 …
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…
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…
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 ..................…
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…
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…
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]
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…
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]
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…
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
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…
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…
