Computer Science 9608 · 11

11.2 Constructs

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

Reset
2019 May-June · Paper 43 · Q2(b)

Constructs · 6 marks

(b) The club also considers storing the data in the order in which it receives the scores as a linked list in a 1D array of records. The following pseudocode algorithm searches fo…

2019 May-June · Paper 43 · Q2(f)(i)

Constructs · 1 mark · official answer ready

(i) Give the name of this algorithm. ..................................................................................................................................... [1]

2018 October-November · Paper 11 · Q7(d)

Constructs · 4 marks · official answer ready

(d) Write an SQL script to display the title and rating of all movies scheduled to play on screen number 3. .......................................................................…

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

Constructs · 6 marks

1 (a) The following table contains statements written in pseudocode. Show what type of programming construct each statement represents. Put a tick (3) in the appropriate column fo…

2018 October-November · Paper 21 · Q4(a)(ii)

Constructs · 4 marks · official answer ready

(ii) Describe in detail the purpose of lines 19 to 26 in the function ScanArray(). Do not use pseudocode in your answer. ..........................................................…

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

Constructs · 6 marks · official answer ready

(b) The function ScanArray() needs to be amended so that the comparison is not case sensitive. For example, comparing “Aaaa” with “AAAa” should evaluate to TRUE. Write program cod…

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

Constructs · 6 marks

1 (a) The following table contains statements written in pseudocode. Show the type of programming construct each statement represents. Put a tick (3) in the appropriate column for…

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

Constructs · 3 marks · official answer ready

(d) ResultArray is a 1D array of type STRING. It contains 100 elements. Write program code to declare ResultArray and set all elements to the value "NO DATA". Programming language…

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

Constructs · 6 marks

1 (a) The following table contains statements written in pseudocode. Show the type of programming construct each statement represents. Put a tick (3) in the appropriate column for…

2018 October-November · Paper 23 · Q1(b)(ii)

Constructs · 5 marks · official answer ready

(ii) The following table contains statements written in pseudocode. Complete the table by evaluating each expression using the values from part (b)(i). If any expression is invali…

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