Answer:
c. Both A and B
Explanation:
A function is a mapping that maps each element of its domain (student's name) to exactly one element of its co-domain (favorite ...). Assuming student names are unique and the notion of "favorite" is exclusive (can't have two or more "favorites" of the same type), then both A and B describe mappings that are functions.