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
2022 May-June · Paper 22 · Q1(a)(ii)

Programming concepts · 3 marks · official answer ready

(ii) Identify one variable that you could have used for Task 2. Give the data type and use of the variable. Variable ..............................................................…

2022 May-June · Paper 22 · Q1(b)

Programming concepts · 3 marks · official answer ready

(b) Explain how your program showed the days available for booking in Task 1. .....................................................................................................…

2022 May-June · Paper 22 · Q4(b)

Programming concepts · 1 mark · official answer ready

(b) State how the final output from the algorithm could be improved. ..............................................................................................................…

2021 October-November · Paper 12 · Q10(a)

Programming concepts · 2 marks · official answer ready

(a) Explain how the SSL protocol secures the data for transmission. ...............................................................................................................…

2021 October-November · Paper 22 · Q1(a)(i)

Programming concepts · 2 marks · official answer ready

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

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

Programming concepts · 3 marks · official answer ready

(b) Describe how you could validate the data entry for the input of the codes for the different stages of the journey in Task 2. ..................................................…

2021 October-November · Paper 22 · Q4

Programming concepts · 0 marks

4 The pseudocode algorithm should work as a calculator and output the result. 1 Continue 1 2 WHILE Continue = 0 3 OUTPUT "Enter 1 for +, 2 for -, 3 for * or 4 for /" 4 INPUT Opera…

2021 October-November · Paper 22 · Q5

Programming concepts · 0 marks · official answer ready

5 OUTPUT "Enter the first value"

2021 October-November · Paper 22 · Q8

Programming concepts · 0 marks

8 OUTPUT Value2

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