8.1 Programming concepts
223 questions in this subtopic. Open a question to solve it and check the official answer.
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. .............................................................…
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…
Programming concepts · 6 marks · official answer ready
5 Explain what is meant by validation and verification. Give an example for each one. Validation ..................................................................................…
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’…
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 …
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. ...............................…
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 ........................................…
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…
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…
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…
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…
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 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 concepts · 2 marks · official answer ready
(b) Explain how your program for Task 1 ensures that each 3-digit identity code is unique. ........................................................................................…
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. .....................................................................................................................................…
