Skip to content
Official PYQ · 2026

GATE CS 2026 Set 2 Q54 — Calculus: Limits, Continuity, Differentiability

Explain with AI
Consider a function f:(0,1)→{0,1}f:(0,1) \rightarrow\{0,1\} defined as follows.
For a real number r∈(0,1),f(r)=1r \in(0,1), f(r)=1 if the second digit after the decimal point in rr is one of the four digits 2,3,62,3,6 and 77. Otherwise, f(r)f(r) is equal to 00.

The number of points in (0,1)(0,1) at which ff is discontinuous is ______\_\_\_\_\_\_. (answer in integer)
View worked solution

Answer: 40:40

The value of f(r)f(r) depends only on the second decimal digit d2d_2 of r=0.d1d2d3…r = 0.d_1 d_2 d_3 \dots (using standard decimal representation without infinite trailing 99s).

On any open interval of the form (0.d1d2, 0.d1(d2+1))(0.d_1 d_2, \, 0.d_1 (d_2+1)), the second digit d2d_2 is constant. Thus, f(r)f(r) is constant and continuous on these intervals. The only possible points of discontinuity in (0,1)(0,1) are the boundary points of the form x=0.d1d2x = 0.d_1 d_2 where d1∈{0,1,…,9}d_1 \in \{0, 1, \dots, 9\} and d2∈{0,1,…,9}d_2 \in \{0, 1, \dots, 9\}.

For any boundary point x=0.d1d2x = 0.d_1 d_2:

  • For rr slightly larger than xx, the second digit is d2d_2, so lim⁡r→x+f(r)=f(x)\lim_{r \to x^+} f(r) = f(x).
  • For rr slightly smaller than xx, the second digit is d2−1d_2 - 1 (or 99 if d2=0d_2 = 0, with the first digit being d1−1d_1 - 1).

A discontinuity occurs at xx if and only if the value of ff changes across this boundary. Let us analyze the transitions of the second digit:

  • For d2=0d_2 = 0: The transition is from 99 to 00. Since both 9,0∉{2,3,6,7}9, 0 \notin \{2,3,6,7\}, f(r)f(r) remains 00 on both sides. Thus, ff is continuous at 0.d100.d_1 0.
  • For d2∈{1,…,9}d_2 \in \{1, \dots, 9\} within a fixed d1d_1:
    • 0→10 \to 1: ff goes 0→00 \to 0 (continuous)
    • 1→21 \to 2: ff goes 0→10 \to 1 (discontinuous)
    • 2→32 \to 3: ff goes 1→11 \to 1 (continuous)
    • 3→43 \to 4: ff goes 1→01 \to 0 (discontinuous)
    • 4→54 \to 5: ff goes 0→00 \to 0 (continuous)
    • 5→65 \to 6: ff goes 0→10 \to 1 (discontinuous)
    • 6→76 \to 7: ff goes 1→11 \to 1 (continuous)
    • 7→87 \to 8: ff goes 1→01 \to 0 (discontinuous)
    • 8→98 \to 9: ff goes 0→00 \to 0 (continuous)

Thus, for each of the 1010 possible values of d1∈{0,1,…,9}d_1 \in \{0, 1, \dots, 9\}, there are exactly 44 points of discontinuity corresponding to d2∈{2,4,6,8}d_2 \in \{2, 4, 6, 8\}.

The total number of points of discontinuity in (0,1)(0,1) is: 10×4=4010 \times 4 = 40

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Calculus: Limits, Continuity, Differentiability questions