Computer Science 2210 · 8

8.1 Programming concepts

223 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2019 May-June · Paper 22 · Q2(b)

Programming concepts · 4 marks · official answer ready

(b) Show how you would change the corrected algorithm to total the numbers and print the total. Use a variable Total. .............................................................…

2019 May-June · Paper 22 · Q4

Programming concepts · 4 marks · official answer ready

4 For each of the four groups of statements in the table, place a tick in the correct column to show whether it is an example of Selection or Repetition. Statements Selection Repe…

2019 May-June · Paper 22 · Q5

Programming concepts · 6 marks · official answer ready

5 Explain what is meant by validation and verification. Give an example for each one. Validation ..................................................................................…

2018 October-November · Paper 12 · Q5(b)

Programming concepts · 5 marks · official answer ready

(b) Karina correctly answers another examination question about some more output devices. Five different terms have been removed from her answer. Complete the sentences in Karina’…

2018 October-November · Paper 12 · Q10

Programming concepts · 5 marks · official answer ready

10 A system uses pH sensors and a microprocessor to help monitor pollution in a river. The pH of the water should be between 6 and 8. The system outputs an alert if the pH of the …

2018 October-November · Paper 13 · Q13(c)

Programming concepts · 2 marks · official answer ready

(c) Storing a 1200 MB high-definition promotional movie about a new car. The movie is to be given to people who are interested in buying a new car. ...............................…

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

Programming concepts · 3 marks · official answer ready

(i) State the name of one variable you have used for Task 3. Give the data type for the variable. State what it is used for. Variable name ........................................…

2018 October-November · Paper 22 · Q2(a)

Programming concepts · 5 marks · official answer ready

2 (a) Write an algorithm, using pseudocode, to input three different numbers, multiply the two larger numbers together and output the result. Use the variables: Number1, Number2 a…

2018 October-November · Paper 22 · Q3

Programming concepts · 3 marks · official answer ready

3 Four programming concepts and four descriptions are shown. Draw a line to connect each programming concept to the most appropriate description. Programming concept Description A…

2018 October-November · Paper 22 · Q4

Programming concepts · 4 marks · official answer ready

4 A programmer wants to test that the readings from 2000 electricity meters are greater than 400 units and less than 900 units. The programmer uses selection and repetition statem…

2018 October-November · Paper 22 · Q5(a)

Programming concepts · 6 marks · official answer ready

(a) Complete the trace tables for each set of input data. Input data: 6, 2.5, 2 Height Depth Chlorine OK OUTPUT Input data: 4, 3, 1.5 Height Depth Chlorine OK OUTPUT Input data: 6…

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 · 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(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)(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. .....................................................................................................................................…