Computer Science 0478 · 8

Programming

221 questions. Open a question to solve it and check the official answer.

2022 May-June · Paper 21 · Q4(b)

Arrays · 4 marks · official answer ready

(b) Write a pseudocode routine that will check that each test result entered into the algorithm is between 0 and 100 inclusive. ...................................................…

2022 May-June · Paper 21 · Q5(b)

Programming concepts · 2 marks · official answer ready

(b) Describe the purpose of the algorithm. ........................................................................................................................................…

2022 May-June · Paper 22 · Q1(a)(i)

Programming concepts · 3 marks · official answer ready

(i) Identify one constant that you could have used for Task 1. Give the value and use of the constant. Constant ...................................................................…

2022 May-June · Paper 22 · Q1(a)(ii)

Programming concepts · 3 marks · official answer ready

(ii) Identify one variable that you could have used for Task 2. Give the data type and use of the variable. Variable ..............................................................…

2022 May-June · Paper 22 · Q1(b)

Programming concepts · 3 marks · official answer ready

(b) Explain how your program showed the days available for booking in Task 1. .....................................................................................................…

2022 May-June · Paper 22 · Q1(e)

Programming · 3 marks · official answer ready

(e) Explain how your program decides when a family ticket is better value in Task 3. Any programming statements that you include in your answer must be fully explained. ..........…

2022 May-June · Paper 22 · Q3(a)

Arrays · 3 marks · official answer ready

3 (a) Describe a one-dimensional array. Include an example of an array declaration. ...............................................................................................…

2022 May-June · Paper 22 · Q3(b)

Arrays · 2 marks · official answer ready

(b) Explain how indexing could be used to search for a value stored in a one-dimensional array. ...................................................................................…

2022 May-June · Paper 22 · Q4(b)

Programming concepts · 1 mark · official answer ready

(b) State how the final output from the algorithm could be improved. ..............................................................................................................…

2022 May-June · Paper 23 · Q1(a)

Programming concepts · 4 marks · official answer ready

(a) Identify one variable and one array you could have used for Task 1 or Task 2. Give the use for the variable and array. Variable ...............................................…

2022 May-June · Paper 23 · Q1(c)

Programming concepts · 4 marks · official answer ready

(c) Explain how your program in Task 2 could be altered to allow a 30% discount on bookings for the same meeting room of two to six days, inclusive. ..............................…

2022 May-June · Paper 23 · Q1(e)

Programming · 4 marks · official answer ready

(e) Explain how your program selects a meeting room, finds and then outputs the days when it is available (part of Task 3). Any programming statements used in your answer must be …

2022 May-June · Paper 23 · Q3

Programming concepts · 4 marks · official answer ready

3 Describe what is meant by the terms variable and constant and give an example of each in your answer. Variable ..................................................................…

2022 May-June · Paper 23 · Q4(b)

Programming concepts · 2 marks · official answer ready

(b) State the purpose of this algorithm. ..........................................................................................................................................…

2022 February-March · Paper 12 · Q4(c)

Programming concepts · 4 marks · official answer ready

(c) Pradeep stores his collection of films and his work files on his personal computer. Pradeep wants to save a copy of all his films and files onto a single storage device. Ident…

2022 February-March · Paper 22 · Q1(a)

Programming concepts · 6 marks · official answer ready

(a) State one constant and one variable that you could have used for Task 1. Give the value that would be assigned to the constant. Give the data type for the variable. Explain wh…

2022 February-March · Paper 22 · Q1(b)

Programming concepts · 4 marks · official answer ready

(b) Describe how your program set the scores to zero before each round for Task 1. ................................................................................................…

2022 February-March · Paper 22 · Q1(d)

Programming · 4 marks · official answer ready

(d) Explain how your program completed part of Task 3 to identify the winner and to display their name and the winning score relative to par. All programming statements that you i…

2022 February-March · Paper 22 · Q2(b)

Programming concepts · 4 marks · official answer ready

(b) Write the extra pseudocode statements that are needed to count and output the number of students under the age of 7. Use the variable CountUnder7; assume CountUnder7 has alrea…

2022 February-March · Paper 22 · Q4(b)

Programming concepts · 2 marks · official answer ready

(b) Describe the purpose of this algorithm. .......................................................................................................................................…