logo

Question detail

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, check the answer, then read the explanation to understand the curriculum point.

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

Model answer

What a good answer should say

  • |actualValue - storedValue| / actualValue

Explanation

Why this works

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

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.