Which relation represents a function?

Answer:
C) { (-2, 2), (0, 2), (7, 2), (11, 2)}
Step-by-step explanation:
Before, answer this questions. Let's see the definition of relation and function.
Relation : A relation between two sets is a collection of ordered pairs containing one object from each set.
All set of ordered pairs are relation.
Function: Function is a relation for which each value from the first setis associated with exactly one value from the second set of the ordered pair.
Note: All the functions are relations but not all the relations are not functions.
Now let's see the options.
The option A) is ignored because 2 is associated with two outputs
The option B) is ignored because 10 is associated with two outputs.
The option C) is the correct answer.
Each element in set A is associated exactly only one element in set B.
The option D) is ignored because 5 is associated with four outputs
Answer: C) { (-2, 2), (0, 2), (7, 2), (11, 2)}