Programming
221 questions. Open a question to solve it and check the official answer.
Programming concepts · 2 marks · official answer ready
(b) Describe the purpose of the algorithm. ........................................................................................................................................…
Programming concepts · 1 mark · official answer ready
(a) Write the pseudocode statement to declare the variable Saying .................................................................................................................…
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…
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 …
Programming concepts · 4 marks · official answer ready
(ii) Explain how the program will use AI. .........................................................................................................................................…
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]
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…
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[] ........................................…
Programming · 3 marks · official answer ready
4 Describe how variables and constants are used in programming. ...................................................................................................................…
Programming concepts · 3 marks · official answer ready
(a) Write pseudocode statements to declare the variables X, Y and Z ...............................................................................................................…
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…
Programming concepts · 1 mark · official answer ready
(c) State the difference between defining and calling a function. .................................................................................................................…
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…
Programming concepts · 2 marks · official answer ready
(a) Give two ways that a user could check that a website uses the SSL protocol. 1 .................................................................................................…
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…
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…
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…
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. .................…
Programming concepts · 2 marks · official answer ready
(ii) Explain how your program for Task 1 populated the arrays with the members’ details. ..........................................................................................…
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. .........................................................................…
