Programming
221 questions. Open a question to solve it and check the official answer.
Programming concepts · 2 marks · official answer ready
(c) Explain one drawback to the elderly customers of robots being used to deliver their groceries. ................................................................................…
Programming concepts · 5 marks · official answer ready
7 A theatre has a microphone on stage that is connected by cables to several speakers around the theatre. A person speaks into the microphone and their voice is output from the sp…
Programming concepts · 2 marks · official answer ready
(ii) Give two error detection methods that could be used to check for errors in the data after transmission. 1 ....................................................................…
Programming concepts · 1 mark
(a) Tick (✓) one box to show whether a keypad is an example of an input, output, process or storage device. A input B output C process D storage [1]
Programming concepts · 1 mark
(i) Tick (✓) one box to show whether the sensor is an example of an input, output, process or storage device. A input B output C process D storage [1]
Programming concepts · 1 mark · official answer ready
(iv) Stops execution of the machine code where an error is found and will resume execution of the machine code once the error is fixed. ...........................................…
Programming concepts · 1 mark · official answer ready
3 Tick (✓) one box to identify the operator that returns the quotient of a calculation with the fractional part discarded. A / B DIV C ^ D MOD [1] * 0000800000003 * DFD 3 , ,
Programming concepts · 5 marks · official answer ready
4 (a) A restaurant offers a fixed priced menu. A meal for an adult costs $9.99 and a meal for a child costs $6.99. If there are 6 or more people at a table, a 15% discount is appl…
Programming concepts · 3 marks · official answer ready
(b) Explain how you could modify the pseudocode to validate that each input is a single digit. Any code must be fully explained. ..................................................…
Programming concepts · 2 marks · official answer ready
(c) The 5-digit number needs to be entered as a single input. Describe one verification method that could be applied to the input of the 5-digit number. ..........................…
Programming concepts · 1 mark · official answer ready
(c) State a suitable data type for the variable Count .............................................................................................................................…
Programming concepts · 4 marks · official answer ready
9 A school stores all the students’ attendance data in a file called Attendance.txt Write an algorithm in pseudocode to read a line of text from the file and store this line in th…
Programming concepts · 1 mark · official answer ready
(a) Write pseudocode statements to declare the variables Seconds and Minutes ......................................................................................................…
Programming concepts · 4 marks · official answer ready
(b) The procedure Time(TotalSeconds) takes the number of seconds as a parameter. The procedure converts the value held in the parameter into minutes and seconds and outputs the re…
Arrays · 15 marks · official answer ready
11 The scores for each competitor in an archery competition are recorded. The one-dimensional (1D) array CompetitorName[] is used to store the names of the competitors. The maximu…
Programming concepts · 4 marks · official answer ready
(i) Complete the pseudocode for PROCEDURE NewData PROCEDURE NewData(....................................................................................................) FOR Row 1…
Programming concepts · 2 marks · official answer ready
(ii) Write the pseudocode to input the number of new contacts and to use procedure NewData. A variable declaration is not required. ...............................................…
Programming concepts · 2 marks · official answer ready
(i) Explain why the given algorithm may not always give the expected results. .....................................................................................................…
Programming concepts · 2 marks · official answer ready
(ii) Explain how you could improve the algorithm so that the search is more likely to find the required results. ..................................................................…
Programming concepts · 6 marks · official answer ready
(b) An email address can be validated by checking that it contains an @ symbol. Write the pseudocode for an algorithm that will allow an email address to be input and check whethe…
