Relations and Functions MCQs for UPSC Prelims

150 practice questions covering Relations and Functions, organised into 2 topics. 150 questions include a written explanation. Pick a topic below, or try the samples first.

Practice by topic

Sample questions

Q1
medium
A relation $R$ is defined on the set of all straight lines in a plane by taking $L_1\,R\,L_2$ to mean that $L_1$ is parallel to $L_2$, where every line counts as parallel to itself. Statement 1: $R$ is an equivalence relation. Statement 2: The equivalence class of a line $L$ is the set of all lines perpendicular to $L$. Which is correct?
  1. A Statement 1 is false and Statement 2 is true
  2. B Both statements are true
  3. C Both statements are false
  4. D Statement 1 is true and Statement 2 is false
Show answer and explanation

Correct answer: D - Statement 1 is true and Statement 2 is false

With a line counted as parallel to itself, $R$ is reflexive; parallelism works both ways, so $R$ is symmetric; and two lines parallel to a common line are parallel to each other, so $R$ is transitive. Statement 1 is therefore true. The class of $L$ collects the lines related to $L$, which are the lines parallel to $L$, not the ones perpendicular to it, so Statement 2 is false.
Q2
easy
Let $A = \{1,2,3\}$ and $R = \{(1,2),(2,1),(3,3)\}$. Which statement is correct?
  1. A $R$ is symmetric but not reflexive
  2. B $R$ is reflexive but not symmetric
  3. C $R$ is both reflexive and symmetric
  4. D $R$ is neither reflexive nor symmetric
Show answer and explanation

Correct answer: A - $R$ is symmetric but not reflexive

Every pair in $R$ has its reverse in $R$: $(1,2)$ pairs with $(2,1)$, and $(3,3)$ is its own reverse, so $R$ is symmetric. Reflexivity fails because $(1,1)$ and $(2,2)$ are both missing even though $1$ and $2$ belong to $A$. So $R$ is symmetric without being reflexive.
Q3
medium
Assertion (A): The relation $R = \{(a,b) : a, b \in \mathbb{Z} \text{ and } a + b \text{ is even}\}$ is an equivalence relation on $\mathbb{Z}$. Reason (R): For every integer $a$, the number $a + a = 2a$ is even.
  1. A Both A and R are true, and R is the correct explanation of A
  2. B Both A and R are true, but R is not the correct explanation of A
  3. C A is true, but R is false
  4. D A is false, but R is true
Show answer and explanation

Correct answer: B - Both A and R are true, but R is not the correct explanation of A

Reflexivity holds since $2a$ is even, symmetry holds since $a + b = b + a$, and transitivity holds since $a + c = (a+b) + (b+c) - 2b$ is even whenever $a+b$ and $b+c$ are, so (A) is true. The fact stated in (R) is also true, but it settles only reflexivity; symmetry and transitivity still have to be checked separately, so (R) is not a complete explanation of (A).
Q4
medium
A set $A$ has $3$ elements and a set $B$ has $5$ elements. How many one-one functions $f : A \to B$ are there?
  1. A $125$
  2. B $243$
  3. C $10$
  4. D $60$
Show answer and explanation

Correct answer: D - $60$

Give the elements of $A$ images one at a time: the first has $5$ choices, the second must avoid that image and has $4$, and the third has $3$, so the count is $5 \times 4 \times 3 = 60$. The value $125 = 5^3$ counts all functions, repeats allowed, and $243 = 3^5$ also exchanges the roles of the two sets. The value $10$ chooses which three elements of $B$ get used but ignores the order in which the inputs take them.
Q5
medium
The real function $f$ is given by $f(x)=|x|$ for every real $x$. What is the value of $(3f)(-4)-(2f)(5)$?
  1. A $-22$
  2. B $-2$
  3. C $2$
  4. D $22$
Show answer and explanation

Correct answer: C - $2$

Here $(3f)(-4)=3|-4|=12$ and $(2f)(5)=2|5|=10$, so the difference is $12-10=2$. The value $-2$ reverses the order of subtraction. The value $22$ adds the two results. The value $-22$ drops the modulus and computes $3(-4)-2(5)$.
Q6
medium
Let $f : \mathbb{R} \to [0,\ \infty)$ be given by $f(x) = x^2$. Which statement is correct?
  1. A $f$ is neither one-one nor onto, because $f(0) = 0$
  2. B $f$ is onto but not one-one, because $[0,\ \infty)$ is exactly the set of squares
  3. C $f$ is one-one but not onto, because $f$ never takes a negative value
  4. D $f$ is both one-one and onto, because every non-negative number has a square root
Show answer and explanation

Correct answer: B - $f$ is onto but not one-one, because $[0,\ \infty)$ is exactly the set of squares

Every $y \ge 0$ is the square of $\sqrt{y}$, and the declared codomain holds exactly the non-negative reals, so each element of the codomain is an image and $f$ is onto. Injectivity fails because $f(-3) = 9 = f(3)$, so having a square root for every codomain element is not enough for a bijection. Judging onto against $\mathbb{R}$ instead of the declared codomain is what makes the negative values look like a gap. That $f(0) = 0$ breaks neither property.

Practice the full Relations and Functions bank free

All 150 questions with timed practice, instant scoring, and explanations. Free forever.

Other subjects

Logical Reasoning 1208 Quantitative Aptitude 1194 Environment & Ecology 1028 Economy 936 Geography 829 Polity & Governance 826 Science & Technology 754 Ancient & Medieval History 650 Art & Culture 624 International Relations 545 Modern History 518 Data Interpretation 510 Reading Comprehension 408 Number Play 317 Probability 225 Statistics 162 Reproduction: How Life Continues 155 Biomolecules 150 Journey Inside the Atom 145 Tissues in Action 145 Fractions 142 Patterns in Life: Diversity and Classification 135 Exploring Algebraic Identities 135 I'm Up and Down, and Round and Round 134 How Forces Affect Motion 133 Work, Energy, and Simple Machines 130 Describing Motion Around Us 130 Predicting What Comes Next: Exploring Sequences and Progressions 128 Exploring Mixtures and their Separation 126 Atomic Foundations of Matter 125 The World of Numbers 125 Introduction to Linear Polynomials 125 Hydrocarbons 125 Earth as a System: Energy, Matter, and Life 125 A Peek Beyond the Point 125 Sound Waves: Characteristics and Applications 125 Measuring Space: Perimeter and Area 125 Changes Around Us: Physical and Chemical 120 Cell: The Building Block of Life 120 Light: Shadows and Reflections 120 Proportional Reasoning-1 120 Quadrilaterals 120 The Mathematics of Maybe: Introduction to Probability 120 Organic Chemistry - Some Basic Principles and Techniques 118 Light: Mirrors and Lenses 116 Prime Time 116 Measurement of Length and Motion 116 Exploring Substances: Acidic, Basic, and Neutral 116 Nature's Treasures 115 Measurement of Time and Motion 115 Structure of Atom 115 Lines and Angles 115 Mindful Eating: A Path to a Healthy Body 115 Parallel and Intersecting Lines 115 Exploring Forces 115 Pressure, Winds, Storms, and Cyclones 115 Power Play 114 The Invisible Living World: Beyond Our Naked Eye 112 Electricity: Magnetic and Heating Effects 110 The Amazing World of Solutes, Solvents, and Solutions 110 Electricity: Circuits and their Components 110 The World of Metals and Non-metals 110 Large Numbers Around Us 110 How Nature Works in Harmony 110 Diversity in the Living World 110 Nature of Matter: Elements, Compounds, and Mixtures 110 Working with Fractions 110 A Tale of Three Intersecting Lines 110 We Distribute, Yet Things Multiply 110 A Journey through States of Water 110 A Square and A Cube 109 Chemical Bonding and Molecular Structure 108 The Other Side of Zero 106 Laws of Motion 105 Life Processes in Plants 105 Living Creatures: Exploring their Characteristics 105 Health: The Ultimate Treasure 105 Methods of Separation in Everyday Life 105 Expressions using Letter-Numbers 105 Our Home: Earth, a Unique Life Sustaining Planet 105 Exploring Magnets 105 Equilibrium 105 Beyond Earth 105 Aldehydes, Ketones and Carboxylic Acids 105 Heat Transfer in Nature 105 Life Processes in Animals 105 Patterns in Mathematics 103 Particulate Nature of Matter 100 Orienting Yourself: The Use of Coordinates 100 Fundamentals of Nursing 100 Materials Around Us 100 A Story of Numbers 100 System of Particles and Rotational Motion 100 Perimeter and Area 100 Earth, Moon, and the Sun 100