11.2 Constructs
259 questions in this subtopic. Open a question to solve it and check the official answer.
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…
Constructs · 1 mark · official answer ready
(i) Give the name of this algorithm. ..................................................................................................................................... [1]
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. .......................................................................…
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…
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. ..........................................................…
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…
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…
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…
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…
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…
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 = ...................................…
