Programming
295 questions. Open a question to solve it and check the official answer.
Arrays · 6 marks · official answer ready
(i) State the name, data type and use of three arrays you have created for Task 1. Array 1 name ...................................................................................…
Programming concepts · 2 marks · official answer ready
(ii) State the name, data type and use for one variable you used in Task 2. Variable name .........................................................................................…
Programming · 4 marks · official answer ready
(d) Explain how your program performs Task 3. Any programming statements used in your answer must be fully explained. .............................................................…
Programming · 4 marks · official answer ready
2 Describe, giving an example for each, the following data types used in programming. Integer Description .........................................................................…
Programming concepts · 3 marks · official answer ready
3 Give an example of a pseudocode statement or statements to perform each of the following functions. A condition controlled loop .................................................…
Programming concepts · 6 marks · official answer ready
11 A factory uses a security system to control a security light. The system uses a sensor and a microprocessor. Explain how the security system makes use of the sensor and the mic…
Programming · 2 marks · official answer ready
(i) State the name, the data type and the use of two variables that you have used in Task 2. Variable 1 name ......................................................................…
Arrays · 4 marks · official answer ready
(ii) Describe, with the aid of some sample data, the data structures that you have used to record the data for the cows in Task 1. ................................................…
Programming concepts · 2 marks · official answer ready
(b) Explain how your program for Task 1 ensures that each 3-digit identity code is unique. ........................................................................................…
Programming · 5 marks · official answer ready
(i) Explain how your program for Task 3 finds the cows with a daily yield of less than 12 litres of milk for four days or more in the week. Any programming statements used in your…
Programming concepts · 2 marks · official answer ready
(ii) Explain how you would extend your program for Task 3 to store the identity code number(s) of those cows with a yield of less than 12 litres of milk for four days or more in t…
Programming concepts · 4 marks · official answer ready
(a) The programmer has chosen to verify the name, email address and password. Explain why verification was chosen and describe how the programmer would verify this data. .........…
Programming concepts · 2 marks · official answer ready
(b) The programmer has also decided to validate the email address and the password. Describe validation checks that could be used. Email address ..................................…
Programming concepts · 2 marks · official answer ready
(b) The tree numbering system uses TN followed by three digits. The numbering system will not work if there are over 1000 trees. Describe, with the aid of an example, how you coul…
Programming concepts · 2 marks · official answer ready
(a) Explain what is meant by the term sensor. .....................................................................................................................................…
Programming concepts · 1 mark
(a) State whether the display screen is an input, output or storage device. .......................................................................................................…
Programming concepts · 3 marks · official answer ready
(i) For one variable that you have used to record the information about a single boat in Task 1, state the name, data type and its use. Variable name .............................…
Programming concepts · 2 marks · official answer ready
(ii) State one constant and its value that you could have used for Task 1. Constant name ..........................................................................................…
Programming · 4 marks · official answer ready
(d) Explain how your program finds out how many boats are available for hire (Task 2). Any programming statements used must be fully explained. ...................................…
Programming concepts · 3 marks · official answer ready
3 The following diagram shows four data structures and four descriptions. Draw a line to connect each data structure to the correct description. Data structure Description Constan…
