logo

AQA A-Level Computer Science practice

Consider f: {a,b,c} → {0,1,2,3}, where f(a) = 0, f(b) = 1 and f(c) = 1. Which member of the co-domain is not used as an output?

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

At a glance

MCQ

Type

practice

Style

Topic

Functional programming paradigm

Exam-style question

Try this first

Consider f: {a,b,c} → {0,1,2,3}, where f(a) = 0, f(b) = 1 and f(c) = 1. Which member of the co-domain is not used as an output?.

  1. A.0
  2. B.1
  3. C.2
  4. D.All members are used

Answer and explanation

Concise answer

0

Why this is correct

The outputs are 0, 1 and 1. Therefore, 2 is a member of the co-domain but is not an output of this function. The member 3 is also unused, but it is not offered as an option.

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