Computer Science 0478 · 8

Programming

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

Reset
2023 May-June · Paper 23 · Q7(b)

Programming concepts · 2 marks · official answer ready

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

2023 May-June · Paper 23 · Q9(a)

Programming concepts · 1 mark · official answer ready

(a) Write the pseudocode statement to declare the variable Saying .................................................................................................................…

2023 May-June · Paper 23 · Q9(b)

Programming concepts · 5 marks · official answer ready

(b) Write the pseudocode statements to: • allow a string to be input to the variable Saying • store the content of the variable Saying in a text file named "Quotations.txt" • make…

2023 May-June · Paper 23 · Q11

Arrays · 15 marks · official answer ready

11 A two-dimensional (2D) array Contacts[] is used to store names and telephone numbers. All the data is stored as strings. The array must have the capacity to store 100 contacts …

2023 February-March · Paper 12 · Q6(d)(ii)

Programming concepts · 4 marks · official answer ready

(ii) Explain how the program will use AI. .........................................................................................................................................…

2023 February-March · Paper 22 · Q1

Programming concepts · 1 mark · official answer ready

1 Tick (3) one box to show which word accurately describes the scope of a variable declared in a procedure. A Function B Global C Local D Subroutine [1]

2023 February-March · Paper 22 · Q2(a)

Programming concepts · 4 marks · official answer ready

2 (a) Four descriptions and five pseudocode statements are shown. Draw one line to link each description to its most appropriate pseudocode statement. Not all pseudocode statement…

2023 February-March · Paper 22 · Q2(b)

Arrays · 5 marks · official answer ready

(b) Write an algorithm in pseudocode, using a single loop, to output the average of 50 numbers that have been stored in the array Number[] ........................................…

2023 February-March · Paper 22 · Q4

Programming · 3 marks · official answer ready

4 Describe how variables and constants are used in programming. ...................................................................................................................…

2023 February-March · Paper 22 · Q10(a)

Programming concepts · 3 marks · official answer ready

(a) Write pseudocode statements to declare the variables X, Y and Z ...............................................................................................................…

2023 February-March · Paper 22 · Q10(b)

Programming concepts · 6 marks · official answer ready

(b) The function Same(A,B) returns TRUE if the value of A is the same as the value of B when B is rounded to the nearest whole number and FALSE otherwise. Write pseudocode stateme…

2023 February-March · Paper 22 · Q10(c)

Programming concepts · 1 mark · official answer ready

(c) State the difference between defining and calling a function. .................................................................................................................…

2023 February-March · Paper 22 · Q11

Arrays · 15 marks · official answer ready

11 The one-dimensional (1D) array TeamName[] contains the names of teams in a sports league. The two-dimensional (2D) array TeamPoints[] contains the points awarded for each match…

2022 October-November · Paper 12 · Q6(a)

Programming concepts · 2 marks · official answer ready

(a) Give two ways that a user could check that a website uses the SSL protocol. 1 .................................................................................................…

2022 October-November · Paper 13 · Q1

Programming concepts · 5 marks · official answer ready

1 Five components are shown. Tick (✓) to show whether each component is an example of input, output or storage. Input Output Storage Component (✓) (✓) (✓) actuator register sensor…

2022 October-November · Paper 13 · Q4(a)

Programming concepts · 4 marks · official answer ready

(a) The company needs to decide which touch screen technology to use. State one type of touch screen technology that you recommend the company use. Justify your choice. Touch scre…

2022 October-November · Paper 13 · Q10(b)

Programming concepts · 3 marks · official answer ready

(b) There is a risk that people that use the Internet to access websites can have their stored data maliciously damaged. State three ways that stored data can be maliciously damag…

2022 October-November · Paper 21 · Q1(a)(i)

Arrays · 5 marks · official answer ready

(i) Describe the arrays you have set up in Task 1 to record the members’ details. Include in your description the name, data type and sample data for each array. .................…

2022 October-November · Paper 21 · Q1(a)(ii)

Programming concepts · 2 marks · official answer ready

(ii) Explain how your program for Task 1 populated the arrays with the members’ details. ..........................................................................................…

2022 October-November · Paper 21 · Q1(b)

Programming concepts · 2 marks · official answer ready

(b) Explain how your program removed the members that have not paid their fees from the system in Task 3. .........................................................................…