Programming
471 questions. Open a question to solve it and check the official answer.
Programming basics · 3 marks · official answer ready
(iv) Write the simplified sum‑of‑products expression for your answer to part (a)(iii). X = ........................................................................................…
Programming basics · 2 marks · official answer ready
(ii) Draw loop(s) around appropriate groups of 1s in the table in part (b)(i) to produce an optimal sum‑of‑products. [2]
Programming basics · 2 marks · official answer ready
(iii) Write the simplified sum‑of‑products expression for your answer to part (b)(ii). X = ........................................................................................…
Programming basics · 3 marks · official answer ready
(a) Complete the symbol table to show its contents after the lexical analysis stage. Token Symbol Value Type Start 60 Variable 1 61 Constant [3]
Structured programming · 4 marks · official answer ready
(b) The records are stored in a random access file. The function, Hash(), takes as a parameter the ISBN and returns the hash value. The disk address of the record in the hash tabl…
Constructs · 5 marks · official answer ready
(i) The procedure POP outputs the last element that has been pushed onto the stack and replaces it with a '*'. Complete the pseudocode for the procedure POP. PROCEDURE POP IF ……………
Constructs · 6 marks
(a) Complete the JSP structure diagram for this bank account from the pseudocode given. Bank account [6] 3
Constructs · 4 marks
(b) A transaction can be a credit (deposit) or a debit (withdrawal). There are two types of transaction that are credits (deposits). These are: • SWIFT payment • BACS payment Ther…
Constructs · 2 marks
(a) More facts are to be included. A standard poodle is an example of a waterdog. A waterdog is a type of gundog. Write the additional clauses to record these facts. 18 ..........…
Constructs · 2 marks · official answer ready
(b) Using the variable P, the goal is_a(P, retriever) returns P = labrador, newfoundland Write the result returned by the goal is_a(H, pointer) H = ...............................…
Constructs · 2 marks · official answer ready
(b) There are three teams working on the project. Each team is able to work on any of the activities. Explain, with reference to the PERT chart, how work can be allocated to the t…
Constructs · 2 marks · official answer ready
(ii) Explain the importance of the critical path for project delivery. ............................................................................................................…
Constructs · 2 marks · official answer ready
(i) A bird has wings, and a bird lays eggs. Write the additional clauses to record these facts. 12 ................................................................................…
Constructs · 2 marks · official answer ready
(ii) An eagle has all the features of a bird. Write the additional clauses to record this fact. 14 ................................................................................…
Constructs · 2 marks · official answer ready
(i) Using the variable B, the goal feature(B, drinks_milk) returns B = dog Write the result returned by the goal feature(B, lives_in_water) B = ...................................…
Structured programming · 4 marks · official answer ready
(b) The records are stored in a random access file. The function, Hash(), takes as a parameter the ISBN and returns the hash value. The disk address of the record in the hash tabl…
Programming basics · 8 marks · official answer ready
(c) The random access file, MyBooks.dat, stores the data about the books in the format: A procedure, FindBook(): • prompts the user to input the ISBN of a book until the ISBN cont…
Constructs · 5 marks · official answer ready
(i) The procedure POP outputs the last element that has been pushed onto the stack and replaces it with a '*'. Complete the pseudocode for the procedure POP. PROCEDURE POP IF ……………
Constructs · 4 marks · official answer ready
(d) The student uses sound editing software to edit the sound file. Name two features of sound editing software the student can use to edit the sound file. Describe the purpose of…
Programming basics · 2 marks · official answer ready
(c) Describe the purpose of the statement on line 11. .............................................................................................................................…
