Computer Science 2210 · 8

Programming

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

2018 October-November · Paper 23 · Q1(a)(i)

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 ...................................................................................…

2018 October-November · Paper 23 · Q1(a)(ii)

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 .........................................................................................…

2018 October-November · Paper 23 · Q1(d)

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. .............................................................…

2018 October-November · Paper 23 · Q2

Programming · 4 marks · official answer ready

2 Describe, giving an example for each, the following data types used in programming. Integer Description .........................................................................…

2018 October-November · Paper 23 · Q3

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 .................................................…

2018 May-June · Paper 12 · Q11

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…

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

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 ......................................................................…

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

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. ................................................…

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

Programming concepts · 2 marks · official answer ready

(b) Explain how your program for Task 1 ensures that each 3-digit identity code is unique. ........................................................................................…

2018 May-June · Paper 22 · Q1(d)(i)

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…

2018 May-June · Paper 22 · Q1(d)(ii)

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…

2018 May-June · Paper 22 · Q4(a)

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. .........…

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

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 ..................................…

2018 May-June · Paper 22 · Q6(b)

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…

2017 October-November · Paper 12 · Q9(a)

Programming concepts · 2 marks · official answer ready

(a) Explain what is meant by the term sensor. .....................................................................................................................................…

2017 October-November · Paper 13 · Q1(a)

Programming concepts · 1 mark

(a) State whether the display screen is an input, output or storage device. .......................................................................................................…

2017 October-November · Paper 22 · Q1(a)(i)

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 .............................…

2017 October-November · Paper 22 · Q1(a)(ii)

Programming concepts · 2 marks · official answer ready

(ii) State one constant and its value that you could have used for Task 1. Constant name ..........................................................................................…

2017 October-November · Paper 22 · Q1(d)

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. ...................................…

2017 October-November · Paper 22 · Q3

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…