🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Sets, Relations and Functions: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. If |A| = 5, how many subsets does A have?
  2. Q2. In the demo, how many students were in exactly one course (symmetric difference)?
  3. Q3. "Has the same remainder when divided by 3" on integers is:
  4. Q4. Which property does "divides" on {1,…,6} NOT have?
  5. Q5. A function f: A → B with |A| = 4 and |B| = 3 can never be:
  6. Q6. If |A| = 3 and |B| = 4, how many ordered pairs are in A × B?
  7. Q7. What does this print? (code)
  8. Q8. How many reflexive relations are there on a set with 3 elements?
  9. Q9. How many one-one functions are there from a 3-element set to a 5-element set?
  10. Q10. Which function on the integers is NOT one-one?