Programming
295 questions. Open a question to solve it and check the official answer.
Programming concepts · 0 marks
13 4: Answer Value1 / Value2
Programming concepts · 0 marks
18 IF MoreValues = "No"
Programming concepts · 8 marks · official answer ready
(b) Describe how the sensors and the microprocessor control the security light system. ............................................................................................…
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 .......................................................…
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 ....................................................................…
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. .......................................................…
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…
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 ..................…
Programming concepts · 3 marks · official answer ready
(a) Describe what happens in this algorithm. ......................................................................................................................................…
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. ...................................................................…
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. ...............................................................................…
Programming concepts · 2 marks · official answer ready
(b) Describe the purpose of the algorithm. ........................................................................................................................................…
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 ...............................................................................…
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. .............................…
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…
Programming concepts · 2 marks · official answer ready
(b) Describe how the algorithm could be changed to make testing less time-consuming. ..............................................................................................…
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 ..............................................................................…
Arrays · 3 marks · official answer ready
(a) Write a pseudocode routine that sets each element to zero. Use the most suitable loop structure. ..............................................................................…
Arrays · 1 mark · official answer ready
(b) Explain why you chose this loop structure. ....................................................................................................................................…
Programming concepts · 2 marks · official answer ready
(ii) Identify one variable you could have used for Task 2 and state its purpose. Variable .........................................................................................…
