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 October-November · Paper 22 · Q1(a)(ii)

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

2019 October-November · Paper 22 · Q1(b)

Programming concepts · 3 marks · official answer ready

(b) Explain how you calculated the volume of a concrete slab in Task 1. ...........................................................................................................…

2019 October-November · Paper 22 · Q2

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…

2019 October-November · Paper 22 · Q5

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…

2019 October-November · Paper 23 · Q1(b)

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

2019 October-November · Paper 23 · Q1(e)

Programming concepts · 3 marks · official answer ready

(e) Explain how you could validate the input for percentage waste allowance in Task 3. ............................................................................................…

2019 October-November · Paper 23 · Q3

Programming concepts · 3 marks · official answer ready

3 Name the three types of loop structure used in pseudocode. ......................................................................................................................…

2019 October-November · Paper 23 · Q4(a)

Programming concepts · 1 mark

(a) Name the type of statement demonstrated by the use of IF … THEN … ELSE … ENDIF ................................................................................................…

2019 October-November · Paper 23 · Q4(b)

Programming concepts · 4 marks · official answer ready

(b) Re-write the pseudocode algorithm using a CASE statement. .....................................................................................................................…

2019 October-November · Paper 23 · Q5(b)

Programming concepts · 100 marks · official answer ready

(b) Describe the function being performed by the algorithm. .......................................................................................................................…

2019 May-June · Paper 11 · Q4(b)(ii)

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

2019 May-June · Paper 11 · Q8(c)

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…

2019 May-June · Paper 12 · Q7(a)

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…

2019 May-June · Paper 12 · Q10

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

2019 May-June · Paper 21 · Q1(a)(ii)

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

2019 May-June · Paper 21 · Q1(d)

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

2019 May-June · Paper 21 · Q2

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

2019 May-June · Paper 21 · Q3(a)

Programming concepts · 2 marks · official answer ready

3 (a) Give an example of a conditional statement using pseudocode. ................................................................................................................…

2019 May-June · Paper 22 · Q1(a)

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…

2019 May-June · Paper 22 · Q1(d)

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