Programming
468 questions. Open a question to solve it and check the official answer.
Constructs · 6 marks · official answer ready
4 When data is to be entered into a computer system it is sometimes entered using manual methods and sometimes it is captured and entered automatically. Describe the following met…
Constructs · 6 marks · official answer ready
(ii) The table shows three fields that are used in the records for data stored about T-shirts. Give the data type for each field. Give a reason for your choice in each case. Field…
Constructs · 5 marks · official answer ready
(d) Anna is to write a program to analyse the responses. For Examiner's Use Using nested IF...THEN statements, complete the pseudocode to calculate the totals for each BookType (p…
Programming basics · 7 marks · official answer ready
3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…
Constructs · 8 marks
(c) Philipe is not convinced that a WHILE loop was the best choice for this pseudocode. For Instead he considers using a REPEAT...UNTIL loop. Examiner's Use Rewrite the corrected …
Programming basics · 9 marks
3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…
Programming basics · 19 marks
(i) State the parameters of the function. [2]
Programming basics · 19 marks
(ii) Write the function header in the language you used in part (a). [2]
Structured programming · 18 marks
(iii) State why Gina used a function rather than a procedure. [1]
Constructs · 5 marks · official answer ready
(d) Anna is to write a program to analyse the responses. For Examiner's Use Using nested IF...THEN statements, complete the pseudocode to calculate the totals for each BookType (p…
Programming basics · 7 marks · official answer ready
3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…
Constructs · 8 marks
(c) Philipe is not convinced that a WHILE loop was the best choice for this pseudocode. For Instead he considers using a REPEAT...UNTIL loop. Examiner's Use Rewrite the corrected …
Programming basics · 9 marks
3 [6] 6 2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He…
Programming basics · 19 marks
(i) State the parameters of the function. [2]
Programming basics · 19 marks
(ii) Write the function header in the language you used in part (a). [2]
Structured programming · 18 marks
(iii) State why Gina used a function rather than a procedure. [1]
Constructs · 5 marks · official answer ready
(e) Anna is to write a program to analyse the responses. For Examiner's Use Using a SELECT/CASE construct write the pseudocode to count the number of students for each age group w…
Programming basics · 16 marks
(a) Using a high-level programming language, write the code to perform this task. (Ensure that you use meaningful variable names and lay the code out clearly.) Programming languag…
Programming basics · 16 marks · official answer ready
4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…
Programming basics · 16 marks · official answer ready
4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…
