Question 3
OCR Computer Science June 2025 Computer principles (H046-01)AS11 marks
On the specification
- (a)
- 1.1 The characteristics of contemporary processors, input, output and storage devices
- (b)
- 1.4 Data types, data structures and algorithms2.2 Problem solving and programming
Question text
3 Ben works for a company that conducts national public surveys. The surveys are given to 10 people at a time and each question has three different options to choose from: A, B or C. For each question people select one option only. (a) Identify two data methods that Ben could use to capture the data and identify a benefit of each. METHOD 1 Method Benefit METHOD 2 Method Benefit [4] (b) When the data is collated, the answers for each question are stored in separate 2-dimensional arrays. Question 1 is stored in an array called resultsQ1. Each person is stored on a separate row. Each row contains three Boolean values. True is used if that option was selected or False if that option was not selected. For example, the results for resultsQ1 are: Option A Option B Option C False False True False True False True False False True False False False False True False True False False False True False False True False False True False True False In the example shown, the first person selected Option C for question one, the second person selected option B, the third person selected option A, and so on. Write pseudocode or program code that will: • count and output which option A, B or C was selected the most in the array resultsQ1 • output how many people selected the most popular option. You may assume that no two options have the same number of votes. [7]