Computer Science 2210 · 8

Programming

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

Reset
2022 May-June · Paper 21 · Q1(e)

Programming · 4 marks · official answer ready

(e) Explain how your program allows any one of the member or volunteer lists to be selected and displayed (part of Task 2). Any programming statements used in your answer must be …

2022 May-June · Paper 21 · Q2

Programming concepts · 4 marks · official answer ready

2 Tick (ü) one box in each row to identify the most appropriate data type for each description. Only one tick (ü) per column. Data type Description Boolean Char Integer Real Strin…

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

Arrays · 4 marks · official answer ready

(b) Write a pseudocode routine that will check that each test result entered into the algorithm is between 0 and 100 inclusive. ...................................................…

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

Programming concepts · 2 marks · official answer ready

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

2022 May-June · Paper 22 · Q1(a)(i)

Programming concepts · 3 marks · official answer ready

(i) Identify one constant that you could have used for Task 1. Give the value and use of the constant. Constant ...................................................................…

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 · Q1(e)

Programming · 3 marks · official answer ready

(e) Explain how your program decides when a family ticket is better value in Task 3. Any programming statements that you include in your answer must be fully explained. ..........…

2022 May-June · Paper 22 · Q3(a)

Arrays · 3 marks · official answer ready

3 (a) Describe a one-dimensional array. Include an example of an array declaration. ...............................................................................................…

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

Arrays · 2 marks · official answer ready

(b) Explain how indexing could be used to search for a value stored in a one-dimensional array. ...................................................................................…

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 · Q1(d)(ii)

Programming · 1 mark · official answer ready

(ii) Give one way that hexadecimal is used in low-level programming. ..............................................................................................................…

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(a)(ii)

Arrays · 5 marks · official answer ready

(ii) Describe the arrays you could have used in Task 1. Include the name, data type, use and sample data for each array. ..........................................................…

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

Programming · 4 marks · official answer ready

(d) Explain how your program could be changed to count and store the number of bookings made by each passenger. Then, after ten bookings have been made by a passenger, apply an ad…

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