logo

Question detail

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

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

Model answer

What a good answer should say

  • 2

Explanation

Why this works

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.

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.