logo

AQA A-Level Computer Science practice

Which expression correctly calculates the relative error when actualValue is the actual value and storedValue is the value stored by the computer?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Binary number system

Exam-style question

Try this first

Which expression correctly calculates the relative error when actualValue is the actual value and storedValue is the value stored by the computer?.

  1. A.actualValue + storedValue
  2. B.|actualValue - storedValue| / actualValue
  3. C.actualValue / |actualValue - storedValue|
  4. D.|actualValue - storedValue| × actualValue

Answer and explanation

Concise answer

|actualValue - storedValue| / actualValue

Why this is correct

First find the absolute error using the magnitude of the difference, then divide it by the actual value to obtain the relative error.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions