Consider sets A and B each having 4 elements. If \(f: A \to B\) be a function, then number of functions from A to B is:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → 256
A function assigns to each element of A exactly one image in B. Each of the 4 elements of A can be sent to any of the 4 elements of B, independently of the others.
By the multiplication principle:
\(\text{Number of functions} = 4\times 4\times 4\times 4 = 4^4 = 256\)