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
Answer and explanation
Concise answer
Each element in A is assigned an output chosen from B
Why this is correct
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.
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.
