Computer Science 2210 · 8

Programming

295 questions. Open a question to solve it and check the official answer.

2021 October-November · Paper 22 · Q13

Programming concepts · 0 marks

13 4: Answer Value1 / Value2

2021 October-November · Paper 22 · Q18

Programming concepts · 0 marks

18 IF MoreValues = "No"

2021 May-June · Paper 12 · Q5(b)

Programming concepts · 8 marks · official answer ready

(b) Describe how the sensors and the microprocessor control the security light system. ............................................................................................…

2021 May-June · Paper 21 · Q1(a)(i)

Programming concepts · 3 marks · official answer ready

(i) Identify one constant you could have used for Task 1, give the value that would be assigned to it and its use. Constant .......................................................…

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

Programming concepts · 4 marks · official answer ready

(ii) Identify one variable and one array you could have used for Task 1. Explain the use of each one. Variable ....................................................................…

2021 May-June · Paper 21 · Q1(b)

Programming concepts · 4 marks · official answer ready

(b) Explain how you should change your program in Task 1 to allow a tutor to enter up to eight candidates for the election. .......................................................…

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

Programming · 4 marks · official answer ready

(d) Explain how your program completes these parts of Task 3: • Calculate the percentage of the votes that each candidate received from the number of votes cast, excluding abstent…

2021 May-June · Paper 21 · Q3

Programming · 6 marks · official answer ready

3 Name and describe the most appropriate programming data type for each of the examples of data given. Each data type must be different. Data: 37 Data type name ..................…

2021 May-June · Paper 21 · Q4(a)

Programming concepts · 3 marks · official answer ready

(a) Describe what happens in this algorithm. ......................................................................................................................................…

2021 May-June · Paper 21 · Q4(b)

Programming concepts · 3 marks · official answer ready

(b) Write the pseudocode to output the contents of the arrays Score[] and Grade[] along with suitable messages. ...................................................................…

2021 May-June · Paper 21 · Q4(c)

Programming concepts · 3 marks · official answer ready

(c) Describe how you could change the algorithm to allow teachers to use it with any size of class. ...............................................................................…

2021 May-June · Paper 21 · Q5(b)

Programming concepts · 2 marks · official answer ready

(b) Describe the purpose of the algorithm. ........................................................................................................................................…

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

Programming · 3 marks · official answer ready

(a) Identify and give the data type and use of one array that you could have used for Task 1. Array ...............................................................................…

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

Programming · 5 marks · official answer ready

(d) Explain how your program completed Task 3. Include any programming statements that you have used and fully explain the purpose of each statement. .............................…

2021 May-June · Paper 22 · Q2(a)

Programming concepts · 6 marks · official answer ready

2 (a) Write an algorithm in pseudocode to input 500 positive whole numbers. Each number input must be less than 1000. Find and output the largest number input, the smallest number…

2021 May-June · Paper 22 · Q2(b)

Programming concepts · 2 marks · official answer ready

(b) Describe how the algorithm could be changed to make testing less time-consuming. ..............................................................................................…

2021 May-June · Paper 22 · Q3(b)

Programming concepts · 3 marks · official answer ready

(b) State the type of each pseudocode statement. For example, X ← X + Y is totalling. IF Number = 20 ..............................................................................…

2021 May-June · Paper 22 · Q5(a)

Arrays · 3 marks · official answer ready

(a) Write a pseudocode routine that sets each element to zero. Use the most suitable loop structure. ..............................................................................…

2021 May-June · Paper 22 · Q5(b)

Arrays · 1 mark · official answer ready

(b) Explain why you chose this loop structure. ....................................................................................................................................…

2020 October-November · Paper 22 · Q1(a)(ii)

Programming concepts · 2 marks · official answer ready

(ii) Identify one variable you could have used for Task 2 and state its purpose. Variable .........................................................................................…