Skip to main content
O-LevelComputer ScienceAlgorithm design and problem-solving2210/21 · May/June 2017 · Q65 Marks

This flowchart inputs a range of temperatures in degrees Fahrenheit. As each temperature is input, it is compared with the previous highest temperature. If it is higher than the current highest, it replaces the previous highest temperature and then it is converted to degrees Celsius. For ease of calculation, the final step of the Fahrenheit to Celsius conversion has been approximated as division by 2. When -1 is entered, the input process stops and the highest temperature (in both Fahrenheit and Celsius) is output. [Figure 6.1]

  1. (a)Complete the trace table for the input data: 68, 46, 50, 86, 65, 50, 40, 30, -1 Trace Table Columns: HighF, HighC, TempF, OUTPUT[5]

This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.

Mark scheme

Marking points from the official mark scheme (May/June 2017). The mark or mark type is shown in brackets.

  1. [5] 1 Mark for each correct cell entry
  2. HighF: -100, 68, 68, 68, 86, 86, 86, 86, 86, 86
  3. HighC: -100, 18, 18, 18, 27, 27, 27, 27, 27, 27
  4. TempF: 68, 46, 50, 86, 65, 50, 40, 30, -1
  5. The literal correct output is "The highest temperature is, 86 Fahrenheit, 27 Celsius."
  6. 1 mark for values 86 and 27, 1 mark for correct output words, spacing and punctuation.

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Algorithm design and problem-solving, O-Level Computer Science (syllabus 2210). Structured question, 5 marks.
Source
O-Level Computer Science, May/June 2017 Paper 2 Variant 1, question 6.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep