Programming
295 questions. Open a question to solve it and check the official answer.
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 …
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…
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. ...................................................…
Programming concepts · 2 marks · official answer ready
(b) Describe the purpose of the algorithm. ........................................................................................................................................…
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 ...................................................................…
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 ..............................................................…
Programming concepts · 3 marks · official answer ready
(b) Explain how your program showed the days available for booking in Task 1. .....................................................................................................…
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. ..........…
Arrays · 3 marks · official answer ready
3 (a) Describe a one-dimensional array. Include an example of an array declaration. ...............................................................................................…
Arrays · 2 marks · official answer ready
(b) Explain how indexing could be used to search for a value stored in a one-dimensional array. ...................................................................................…
Programming concepts · 1 mark · official answer ready
(b) State how the final output from the algorithm could be improved. ..............................................................................................................…
Programming · 1 mark · official answer ready
(ii) Give one way that hexadecimal is used in low-level programming. ..............................................................................................................…
Programming concepts · 2 marks · official answer ready
(a) Explain how the SSL protocol secures the data for transmission. ...............................................................................................................…
Programming concepts · 2 marks · official answer ready
(i) Identify one variable you could have used for Task 2 and state its use. Variable ..............................................................................................…
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. ..........................................................…
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. ..................................................…
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…
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…
Programming concepts · 0 marks · official answer ready
5 OUTPUT "Enter the first value"
Programming concepts · 0 marks
8 OUTPUT Value2
