Computer Science 9608 · 11

11.2 Constructs

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

Reset
2021 May-June · Paper 42 · Q6(b)

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…

2021 May-June · Paper 43 · Q1(a)

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…

2021 May-June · Paper 43 · Q5(a)

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 …

2021 May-June · Paper 43 · Q7(b)

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

2019 October-November · Paper 11 · Q4(a)(i)

Constructs · 3 marks · official answer ready

(i) Describe, using the bank as an example, the key features of a client-server model. ............................................................................................…

2019 October-November · Paper 12 · Q1(b)

Constructs · 3 marks · official answer ready

(b) Describe the purpose of disk repair software. .................................................................................................................................…

2019 October-November · Paper 12 · Q6(e)(iii)

Constructs · 2 marks

(iii) Describe the following video terms. Temporal redundancy ........................................................................................................ ............…

2019 October-November · Paper 12 · Q7(e)(iii)

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…

2019 October-November · Paper 13 · Q3(a)(i)

Constructs · 3 marks · official answer ready

(i) Complete the database design for the hotel by writing the attributes for each table. CUSTOMER( ................................................................................…

2019 October-November · Paper 21 · Q1(a)(i)

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

2019 October-November · Paper 21 · Q1(b)(ii)

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…

2019 October-November · Paper 21 · Q2(c)

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

2019 October-November · Paper 21 · Q4(a)

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…

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

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…

2019 October-November · Paper 22 · Q1(a)(i)

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

2019 October-November · Paper 22 · Q1(b)(i)

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…

2019 October-November · Paper 22 · Q1(b)(ii)

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…

2019 October-November · Paper 22 · Q6(b)

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…

2019 October-November · Paper 23 · Q1(c)(ii)

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

2019 October-November · Paper 31 · Q2(a)(i)

Constructs · 1 mark · official answer ready

(i) 35 > 24 Reason .............................................................................................................................. .................................…