Programming
295 questions. Open a question to solve it and check the official answer.
Programming concepts · 3 marks · official answer ready
(ii) State one variable that you have used in Task 3. Give the data type for the variable. State what it is used for. Variable name ...............................................…
Programming concepts · 3 marks · official answer ready
(b) Explain how you calculated the volume of a concrete slab in Task 1. ...........................................................................................................…
Programming · 4 marks · official answer ready
(d) Explain how you changed your program for Task 1 to meet the requirements for Task 3. Include and fully explain any altered or additional programming statements. ..............…
Programming concepts · 4 marks · official answer ready
2 An algorithm has been written in pseudocode to select a random number using the function RandInt(n), which returns a whole number between 1 and the argument n. The algorithm the…
Programming concepts · 4 marks · official answer ready
5 A programmer writes a program to weigh baskets of fruit in grams, keeping a total of the weight and counting the number of baskets. The total weight is stored in a variable Tota…
Programming · 6 marks · official answer ready
6 Explain why constants, variables and arrays are used in programming. Constants ..................................................................................................…
Arrays · 4 marks · official answer ready
1 (a) All variables, constants and other identifiers must have meaningful names. Name two arrays you could use for Task 1. State the data type and purpose of each one. Array 1 ...…
Programming concepts · 4 marks · official answer ready
(b) Name a variable that you used for Task 2. State the data type and purpose of this variable. Explain why you chose to use a variable rather than a constant. Variable ..........…
Programming · 3 marks · official answer ready
(d) Explain how you extended your program to complete Task 2. Any programming statements you use in your answer must be fully explained. ..........................................…
Programming concepts · 3 marks · official answer ready
(e) Explain how you could validate the input for percentage waste allowance in Task 3. ............................................................................................…
Programming concepts · 3 marks · official answer ready
3 Name the three types of loop structure used in pseudocode. ......................................................................................................................…
Programming concepts · 1 mark
(a) Name the type of statement demonstrated by the use of IF … THEN … ELSE … ENDIF ................................................................................................…
Programming concepts · 4 marks · official answer ready
(b) Re-write the pseudocode algorithm using a CASE statement. .....................................................................................................................…
Programming concepts · 100 marks · official answer ready
(b) Describe the function being performed by the algorithm. .......................................................................................................................…
Programming concepts · 2 marks · official answer ready
(ii) Give two methods that Lola could use to help keep her data safe from accidental damage or accidental loss. 1 .................................................................…
Programming concepts · 4 marks · official answer ready
(c) The art gallery is concerned about computer ethics relating to its website. Explain what is meant by computer ethics and why the art gallery is concerned about computer ethics…
Programming concepts · 6 marks · official answer ready
7 (a) An office has an automated lighting system. When movement is detected in the office the lights are switched on. If movement is not detected for a period of 2 minutes the lig…
Programming concepts · 4 marks · official answer ready
10 Remy has a mobile device that has a capacitive touch screen. Describe how the capacitive touch screen registers Remy’s touch. ..................................................…
Programming · 3 marks · official answer ready
(i) State one array you used for Task 1. State the data type and purpose of this array. Array .....................................................................................…
Programming concepts · 6 marks · official answer ready
(ii) State one variable you used for Task 2 and one variable you used for Task 3. In each case, state the data type and purpose of the variable. Task 2 variable name .............…
