Programming
221 questions. Open a question to solve it and check the official answer.
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. ...................................................…
Programming concepts · 2 marks · official answer ready
(b) Describe the purpose of the algorithm. ........................................................................................................................................…
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 ...................................................................…
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 ..............................................................…
Programming concepts · 3 marks · official answer ready
(b) Explain how your program showed the days available for booking in Task 1. .....................................................................................................…
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. ..........…
Arrays · 3 marks · official answer ready
3 (a) Describe a one-dimensional array. Include an example of an array declaration. ...............................................................................................…
Arrays · 2 marks · official answer ready
(b) Explain how indexing could be used to search for a value stored in a one-dimensional array. ...................................................................................…
Programming concepts · 1 mark · official answer ready
(b) State how the final output from the algorithm could be improved. ..............................................................................................................…
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 ...............................................…
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. ..............................…
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 …
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 ..................................................................…
Programming concepts · 2 marks · official answer ready
(b) State the purpose of this algorithm. ..........................................................................................................................................…
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…
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…
Programming concepts · 4 marks · official answer ready
(b) Describe how your program set the scores to zero before each round for Task 1. ................................................................................................…
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…
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…
Programming concepts · 2 marks · official answer ready
(b) Describe the purpose of this algorithm. .......................................................................................................................................…
