Hardware
29 questions. Open a question to solve it and check the official answer.
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…
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…
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…
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…
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…
Logic gates and logic circuits · 5 marks · official answer ready
(b) Write program code for the Performer class. Programming language ............................................................................................................ P…
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…
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…
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…
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]
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]
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 ...........................................…
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(.................................................. , .................…
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(....................................... , .................…
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 ...........................................…
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(.................................................. , .................…
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: .............…
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 ....................…
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: .............…
Logic gates and logic circuits · 32 marks · official answer ready
(i) Write program code to declare the array Lookup. Programming language ..................................................................................................... ....…
