Programming
295 questions. Open a question to solve it and check the official answer.
Programming concepts · 4 marks · official answer ready
4 IF … THEN … ELSE … ENDIF is one type of conditional statement used when writing pseudocode. Identify and describe another type of conditional statement that you could use when w…
Arrays · 3 marks · official answer ready
(i) Declare suitable arrays for each of the planes to store time slots booked. ....................................................................................................…
Programming concepts · 4 marks · official answer ready
(ii) Name one variable and one constant you used for Task 1 and state the purpose of each one. Variable ...........................................................................…
Programming concepts · 4 marks · official answer ready
(c) Describe how you could validate and test the inputs for Task 1. ...............................................................................................................…
Programming · 4 marks · official answer ready
(d) Explain how your program checks and displays whether any of the planes are available at a given time of the day (Task 2). Any programming statements used must be fully explain…
Arrays · 0 marks · official answer ready
2 This section of program code asks for 80 numbers between 100 and 1000 to be entered. It checks that the numbers are in the correct range, and stores them in an array. It counts …
Programming concepts · 3 marks · official answer ready
(i) Downloading the code for a computer program: Type of compression ......................................................................................................... Expl…
Programming concepts · 3 marks · official answer ready
(ii) Streaming a video file: Type of compression ......................................................................................................... Explanation ............…
Programming concepts · 6 marks · official answer ready
9 A cold store is kept at a constant low temperature using a sensor, a microprocessor and a cooling unit. Explain how the sensor and microprocessor will maintain a constant low te…
Programming concepts · 2 marks · official answer ready
(i) Name two constants you used for Task 1 and state the value of each one. Constant 1 ............................................................................................…
Arrays · 2 marks · official answer ready
(ii) Name two arrays you used for Task 2 and state the purpose of each one. Array 1 ...............................................................................................…
Programming · 3 marks · official answer ready
(d) Explain how your program calculates whether or not you have made a profit (Task 3). Any programming statements used in your answer must be fully explained. ...................…
Programming concepts · 0 marks · official answer ready
6 INPUT Number
Programming concepts · 12 marks
5 (a) Describe the purpose of each statement in this algorithm. FOR I 1 TO 300 INPUT Name[I] NEXT I ...............................................................................…
Programming concepts · 11 marks
(b) Identify, using pseudocode, another loop structure that the algorithm in part (a) could have used. ............................................................................…
Programming concepts · 3 marks · official answer ready
(i) For a variable that you have used to record information about the cost of the outing in Task 1, state the name, data type and its use. Variable name ..........................…
Programming concepts · 6 marks · official answer ready
(ii) State two constants that you could have used for Task 1. Give the value that would be assigned to each one and explain what it is used for. Constant 1 name ..................…
Programming concepts · 2 marks · official answer ready
(b) Explain how you would need to change your calculation in Task 1 if each carer were paid $20.00 for coming on the outing. ......................................................…
Programming · 4 marks · official answer ready
(d) Explain how your program completes Task 3. Any programming statements used in your answer must be fully explained. ............................................................…
Programming concepts · 3 marks · official answer ready
(b) Rewrite the correct algorithm using a more suitable loop structure. ...........................................................................................................…
