Computer Science 2210 · 8

Programming

295 questions. 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 · Q1(d)

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

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 22 · Q6

Programming · 6 marks · official answer ready

6 Explain why constants, variables and arrays are used in programming. Constants ..................................................................................................…

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

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

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(d)

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

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)(i)

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

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