8.1 Programming concepts
223 questions in this subtopic. 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 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 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 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 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 .............…
Programming concepts · 2 marks · official answer ready
(d) Explain how you would alter your program in Task 1 to allow you to choose the number of weeks to enter data on bus arrival times. .............................................…
Programming concepts · 6 marks · official answer ready
2 Describe each of the following data types used in programming. In each case, give an example of a piece of data to illustrate your answer. Each example must be different. Char .…
Programming concepts · 2 marks · official answer ready
3 (a) Give an example of a conditional statement using pseudocode. ................................................................................................................…
Programming concepts · 5 marks · official answer ready
1 (a) All variables, constants and other identifiers must have meaningful names. Describe the data structures you have used in Task 1 to record the items for sale. Include some sa…
Programming concepts · 3 marks · official answer ready
(d) Explain how your program for Task 2 checks that a new bid is higher than previous bids for an item. ...........................................................................…
