🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Sets, Relations and Functions: all 10 questions

Quiz: Sets, Relations and Functions · Question 10 of 10

Which function on the integers is NOT one-one?

Which function on the integers is NOT one-one?

  1. A.f(x) = x + 5
  2. B.f(x) = 2x
  3. C.f(x) = x²
  4. D.f(x) = x − 1
Answer & explanation

Correct answer: f(x) = x²

f(2) = f(−2) = 4, so two different inputs give the same output.

Can you get the rest right without peeking?

Take the timed Quiz: Sets, Relations and Functions quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →