Exam-style question
Try this first
Which statement about a function f: A → B is correct?.
- A.Every member of B must be produced as an output
- B.Inputs may be chosen from any data type, regardless of A
- C.Each element in A is assigned an output chosen from B
- D.A and B must contain the same members
Model answer
What a good answer should say
- Each element in A is assigned an output chosen from B
Explanation
Why this works
A function assigns an output to each element in its input set A, and that output is chosen from B. The function does not have to use every member of B.
Common mistake
No common mistake is linked to this question yet.
