Computer Science 9608 · 3

3.2 Logic gates and logic circuits

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

Reset
2021 May-June · Paper 11 · Q7(c)

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

(c) Debbie is programming a car safety management system. She thinks that the test plan she has been given is not adequate. She decides to discuss her concerns on a public interne…

2021 May-June · Paper 21 · Q6(a)

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

(a) Write program code for the module Check(). Data values relating to an individual stock item are valid if: • the StockID element is of length 8 • the Description is not an empt…

2019 October-November · Paper 21 · Q6(b)

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

(b) Write program code for the module SearchFileNtoZ(). Visual Basic and Pascal: You should include the declaration statements for variables. Python: You should show a comment sta…

2019 October-November · Paper 22 · Q6(a)

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

(a) Write program code for the module SearchLeavers(). Declare any additional variables you use. Visual Basic and Pascal: You should include the declaration statements for variabl…

2018 October-November · Paper 22 · Q4(b)

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

(b) The function ScanFile() is to be amended so that the first 7 characters of FileData are not written to the array. Write program code to implement this amended ScanFile() funct…

2018 October-November · Paper 42 · Q4(b)

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

(b) Write program code for the Performer class. Programming language ............................................................................................................ P…

2018 May-June · Paper 22 · Q5(d)

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

(d) The program designer decides to store the strings from part (a) in a text file, ScoreDetails.txt Each string is formatted as follows: • MembershipNumber is a four-digit numeri…

2017 October-November · Paper 21 · Q3(b)

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

(b) The value of UserID should be unique for each user but a problem has occurred and repeated UserID values may have been issued. The array is sorted by UserID, so any repeated U…

2017 October-November · Paper 23 · Q3(b)

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

(b) The value of UserID should be unique for each user but a problem has occurred and repeated UserID values may have been issued. The array is sorted by UserID, so any repeated U…

2017 October-November · Paper 31 · Q3(c)

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

(c) The definition of is changed to allow: • one or two letters and • zero, one or two digits. Draw an updated version of the syntax diagram for . Variable Letter [2]

2017 October-November · Paper 33 · Q3(c)

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

(c) The definition of is changed to allow: • one or two letters and • zero, one or two digits. Draw an updated version of the syntax diagram for . Variable Letter [2]

2017 October-November · Paper 41 · Q3(a)

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

(a) Mimi is a person who likes chocolate but does not like sushi or lettuce. Write additional clauses to represent this information. 17 ...........................................…

2017 October-November · Paper 41 · Q3(c)

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

(c) B might like A, if B is a person, A is a food and B does not dislike A. Write this as a rule. might_like(.................................................. , .................…

2017 October-November · Paper 42 · Q3(d)

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

(d) B can be moved into A, if B is furniture, A is a room and B is not already in A. Write this as a rule. canBeMovedTo(....................................... , .................…

2017 October-November · Paper 43 · Q3(a)

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

(a) Mimi is a person who likes chocolate but does not like sushi or lettuce. Write additional clauses to represent this information. 17 ...........................................…

2017 October-November · Paper 43 · Q3(c)

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

(c) B might like A, if B is a person, A is a food and B does not dislike A. Write this as a rule. might_like(.................................................. , .................…

2016 October-November · Paper 41 · Q2(b)(ii)

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

(ii) A programmer corrects the syntax error and tests the function. It does not perform as expected when the search item is not in the list. State the type of error: .............…

2016 October-November · Paper 42 · Q4(b)(ii)

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

(ii) A programmer corrects the syntax error and tests the function. It does not perform as expected. The items are not fully in order. State the type of error ....................…

2016 October-November · Paper 43 · Q2(b)(ii)

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

(ii) A programmer corrects the syntax error and tests the function. It does not perform as expected when the search item is not in the list. State the type of error: .............…

2016 May-June · Paper 21 · Q6(b)(i)

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

(i) Write program code to declare the array Lookup. Programming language ..................................................................................................... ....…