11.2 Constructs
259 questions in this subtopic. Open a question to solve it and check the official answer.
Constructs · 3 marks · official answer ready
(b) Simplify the decision table by removing the redundancies. Available username Conditions Suitable password Age > 16 “Too young” “Choose another Actions username” “Password does…
Constructs · 5 marks · official answer ready
(a) The state-transition diagram shows the different states of the vending machine. Complete the state-transition diagram. .......................... Total the money Cancel insert…
Constructs · 4 marks · official answer ready
(a) The pseudocode function binarySearch()performs a binary search to find a given value in the global array, dataArray. If the value is found, the function returns its index. If …
Constructs · 3 marks · official answer ready
(b) The function pop() pops and returns the item from the top of the stack. If the stack is empty, it returns −1. Write pseudocode for the function pop(). ........................…
Constructs · 3 marks · official answer ready
(i) Describe, using the bank as an example, the key features of a client-server model. ............................................................................................…
Constructs · 3 marks · official answer ready
(b) Describe the purpose of disk repair software. .................................................................................................................................…
Constructs · 2 marks
(iii) Describe the following video terms. Temporal redundancy ........................................................................................................ ............…
Constructs · 6 marks
7 ............................ [4] 12 (e) Dominic sends his videos to his colleagues over the Internet using bit streaming. (iii) Describe the following video terms. Temporal redu…
Constructs · 3 marks · official answer ready
(i) Complete the database design for the hotel by writing the attributes for each table. CUSTOMER( ................................................................................…
Constructs · 3 marks · official answer ready
(i) This pseudocode lacks features that would make it easier to read and understand. State three such features. Feature 1 .........................................................…
Constructs · 4 marks · official answer ready
(ii) Evaluate each expression in the following table. If an expression is invalid then write ‘ERROR’. Refer to the Appendix on page 16–17 for the list of built-in functions and op…
Constructs · 2 marks · official answer ready
(c) By value is one method of passing a parameter to a subroutine. Identify and describe the other method. Method .................................................................…
Constructs · 4 marks · official answer ready
(a) The student has written a structured English description of the algorithm: 1. START at the beginning of the string 2. SELECT a character from the string 3. CONVERT the charact…
Constructs · 7 marks · official answer ready
(b) Write pseudocode to implement the program. You should note the following: • InString contains the string to be checked. It has been assigned a value. • The elements of the arr…
Constructs · 3 marks · official answer ready
(i) The pseudocode includes features that make it easier to read and understand. State three such features. Feature 1 .............................................................…
Constructs · 4 marks · official answer ready
(i) Programming languages support different data types. Complete the table by giving a suitable data type for each example value. Example value Data type 43 TRUE − 273.16 "− 273.1…
Constructs · 4 marks · official answer ready
(ii) Evaluate each expression in the following table. If an expression is invalid then write ‘ERROR’. Refer to the Appendix on page 18 for the list of built-in functions and opera…
Constructs · 9 marks · official answer ready
(b) Write pseudocode for the module ProcessStudentList(). The module description is repeated here for reference. Module Outline description • Read each line from the file StudentL…
Constructs · 1 mark · official answer ready
(ii) Write a single statement in program code that contains two of the stages. Do not repeat any of the statements from part (c)(i). ..............................................…
Constructs · 1 mark · official answer ready
(i) 35 > 24 Reason .............................................................................................................................. .................................…
