Computer Science 9608 · 11

Programming

471 questions. Open a question to solve it and check the official answer.

2018 October-November · Paper 33 · Q4(a)(iv)

Programming basics · 3 marks · official answer ready

(iv) Write the simplified sum‑of‑products expression for your answer to part (a)(iii). X = ........................................................................................…

2018 October-November · Paper 33 · Q4(b)(ii)

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]

2018 October-November · Paper 33 · Q4(b)(iii)

Programming basics · 2 marks · official answer ready

(iii) Write the simplified sum‑of‑products expression for your answer to part (b)(ii). X = ........................................................................................…

2018 October-November · Paper 33 · Q6(a)

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]

2018 October-November · Paper 41 · Q2(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…

2018 October-November · Paper 41 · Q3(c)(i)

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 ……………

2018 October-November · Paper 42 · Q1(a)

Constructs · 6 marks

(a) Complete the JSP structure diagram for this bank account from the pseudocode given. Bank account [6] 3

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

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…

2018 October-November · Paper 42 · Q2(a)

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 ..........…

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

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 = ...............................…

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

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…

2018 October-November · Paper 42 · Q5(c)(ii)

Constructs · 2 marks · official answer ready

(ii) Explain the importance of the critical path for project delivery. ............................................................................................................…

2018 October-November · Paper 43 · Q1(a)(i)

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 ................................................................................…

2018 October-November · Paper 43 · Q1(a)(ii)

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 ................................................................................…

2018 October-November · Paper 43 · Q1(b)(i)

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 = ...................................…

2018 October-November · Paper 43 · Q2(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…

2018 October-November · Paper 43 · Q2(c)

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…

2018 October-November · Paper 43 · Q3(c)(i)

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 ……………

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

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…

2018 May-June · Paper 12 · Q6(c)

Programming basics · 2 marks · official answer ready

(c) Describe the purpose of the statement on line 11. .............................................................................................................................…