GateAI
Calculus

GATE CSE 2026 Set 2 · Q64

NAT2 marksMedium

Time

Consider a function f ⁣:(0,1)→{0,1}f\colon (0,1) \to \{0, 1\} defined as follows. For a real number r∈(0,1)r \in (0,1) , f(r)=1f(r) = 1 if the second digit after the decimal point in rr is one of the four digits 2, 3, 6 and 7. Otherwise, f(r)f(r) is equal to 0. The number of points in (0,1)(0,1) at which ff is discontinuous is __________. (answer in integer)

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 40

Calculus

Any real number r∈(0,1)r \in (0,1) can be represented in decimal form as r=0.d1d2d3…r = 0.d_1 d_2 d_3 \dots, where d1∈{0,1,2,…,9}d_1 \in \{0, 1, 2, \dots, 9\} and d2∈{0,1,2,…,9}d_2 \in \{0, 1, 2, \dots, 9\}.

The function is defined as:

f(r)={1,if d2∈{2,3,6,7}0,otherwisef(r) = \begin{cases} 1, & \text{if } d_2 \in \{2, 3, 6, 7\} \\ 0, & \text{otherwise} \end{cases}

For each fixed first digit d1∈{0,1,…,9}d_1 \in \{0, 1, \dots, 9\}:

  • f(r)=1f(r) = 1 when r∈[0.d12,0.d14)r \in [0.d_1 2, 0.d_1 4) or r∈[0.d16,0.d18)r \in [0.d_1 6, 0.d_1 8)

  • f(r)=0f(r) = 0 when r∈[0.d10,0.d12)r \in [0.d_1 0, 0.d_1 2), r∈[0.d14,0.d16)r \in [0.d_1 4, 0.d_1 6), or r∈[0.d18,0.(d1+1)0)r \in [0.d_1 8, 0.(d_1+1) 0)

At the boundary points where d2d_2 changes between the subsets {2,3}\{2, 3\}, {6,7}\{6, 7\} and the rest, the left-hand limit and right-hand limit of f(r)f(r) differ (one limit is 00 and the other is 11), making ff discontinuous.

For each d1∈{0,1,2,3,4,5,6,7,8,9}d_1 \in \{0, 1, 2, 3, 4, 5, 6, 7, 8, 9\}, the boundary transition points are:

  1. 0.d120.d_1 2

  2. 0.d140.d_1 4

  3. 0.d160.d_1 6

  4. 0.d180.d_1 8

Each of these points lies strictly within the interval (0,1)(0, 1).

Since there are 1010 possible choices for d1d_1 and 44 points of discontinuity for each choice, the total number of points in (0,1)(0,1) at which ff is discontinuous is:

10×4=4010 \times 4 = 40

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Calculus previous year question is Q64 of the GATE CSE 2026 Set 2 paper. Find more GATE CSE PYQs on Calculus in Engineering Mathematics, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Calculus PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Calculus in GATE CSE

Calculus has 40 GATE CSE PYQs across 25 papers from 2011 to 2026. 4 of them are 2-mark NAT questions like this one, and GATE CSE 2026 Set 2 has 2.

How GATE tests Calculus

More from GATE CSE 2026 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2026 Set 2 · Q64 · NAT

Consider a function f (0,1) → {0, 1} defined as follows. For a real number r ∈ (0,1) , f(r) = 1 if the second digit after the decimal point in r is one of the four digits 2, 3, 6 and 7. Otherwise, f(r) is equal to 0. The number of points in (0,1) at which f is discontinuous is … (answer in integer)

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.