Exam-style question
Try this first
The function f: {a,b,c,…,z} → {0,1,2,…,25} maps a to 0, b to 1 and so on. Which statement is true?.
- A.The domain contains the values 0 to 25
- B.The co-domain contains the letters a to z
- C.Every member of the co-domain is used as an output
- D.The function has no specified argument type
Model answer
What a good answer should say
- Every member of the co-domain is used as an output
Explanation
Why this works
Each letter from a to z is in the domain and maps to a different value from 0 to 25. Consequently, all members of the co-domain are used.
Common mistake
No common mistake is linked to this question yet.
