Computer Science 2210 · 8

Programming

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

Reset
2019 May-June · Paper 21 · Q1(c)

Programming · 3 marks · official answer ready

(c) Explain how your program uses the input in Task 3 to only find the data for that specific day (part of Task 3). Any programming statements used in your answer must be fully ex…

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

Programming concepts · 2 marks · official answer ready

(d) Explain how you would alter your program in Task 1 to allow you to choose the number of weeks to enter data on bus arrival times. .............................................…

2019 May-June · Paper 21 · Q2

Programming concepts · 6 marks · official answer ready

2 Describe each of the following data types used in programming. In each case, give an example of a piece of data to illustrate your answer. Each example must be different. Char .…

2019 May-June · Paper 21 · Q3(a)

Programming concepts · 2 marks · official answer ready

3 (a) Give an example of a conditional statement using pseudocode. ................................................................................................................…

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

Programming concepts · 5 marks · official answer ready

1 (a) All variables, constants and other identifiers must have meaningful names. Describe the data structures you have used in Task 1 to record the items for sale. Include some sa…

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

Programming concepts · 3 marks · official answer ready

(d) Explain how your program for Task 2 checks that a new bid is higher than previous bids for an item. ...........................................................................…

2019 May-June · Paper 22 · Q1(e)

Programming · 5 marks · official answer ready

(e) Explain how your program identifies the items that have reached their reserve price, then calculates and displays the total auction company fee for all sold items as part of T…

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

Programming concepts · 4 marks · official answer ready

(b) Show how you would change the corrected algorithm to total the numbers and print the total. Use a variable Total. .............................................................…

2019 May-June · Paper 22 · Q4

Programming concepts · 4 marks · official answer ready

4 For each of the four groups of statements in the table, place a tick in the correct column to show whether it is an example of Selection or Repetition. Statements Selection Repe…

2019 May-June · Paper 22 · Q5

Programming concepts · 6 marks · official answer ready

5 Explain what is meant by validation and verification. Give an example for each one. Validation ..................................................................................…

2018 October-November · Paper 12 · Q5(b)

Programming concepts · 5 marks · official answer ready

(b) Karina correctly answers another examination question about some more output devices. Five different terms have been removed from her answer. Complete the sentences in Karina’…

2018 October-November · Paper 12 · Q10

Programming concepts · 5 marks · official answer ready

10 A system uses pH sensors and a microprocessor to help monitor pollution in a river. The pH of the water should be between 6 and 8. The system outputs an alert if the pH of the …

2018 October-November · Paper 13 · Q13(c)

Programming concepts · 2 marks · official answer ready

(c) Storing a 1200 MB high-definition promotional movie about a new car. The movie is to be given to people who are interested in buying a new car. ...............................…

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

Programming concepts · 3 marks · official answer ready

(i) State the name of one variable you have used for Task 3. Give the data type for the variable. State what it is used for. Variable name ........................................…

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

Arrays · 5 marks · official answer ready

(ii) Describe the arrays that you have used to store the data for the children in Task 1. Include the name, data type and its use for each array. .................................…

2018 October-November · Paper 22 · Q1(d)

Programming · 4 marks · official answer ready

(d) Explain how your program identifies and outputs the names and times of the fastest runner for each age range in Task 3. Any programming statements used in your answer must be …

2018 October-November · Paper 22 · Q2(a)

Programming concepts · 5 marks · official answer ready

2 (a) Write an algorithm, using pseudocode, to input three different numbers, multiply the two larger numbers together and output the result. Use the variables: Number1, Number2 a…

2018 October-November · Paper 22 · Q3

Programming concepts · 3 marks · official answer ready

3 Four programming concepts and four descriptions are shown. Draw a line to connect each programming concept to the most appropriate description. Programming concept Description A…

2018 October-November · Paper 22 · Q4

Programming concepts · 4 marks · official answer ready

4 A programmer wants to test that the readings from 2000 electricity meters are greater than 400 units and less than 900 units. The programmer uses selection and repetition statem…

2018 October-November · Paper 22 · Q5(a)

Programming concepts · 6 marks · official answer ready

(a) Complete the trace tables for each set of input data. Input data: 6, 2.5, 2 Height Depth Chlorine OK OUTPUT Input data: 4, 3, 1.5 Height Depth Chlorine OK OUTPUT Input data: 6…