Question
Consider a function defined as follows.
For a real number , if the second digit after the decimal point in is one of the four digits 2, 3, 6 and 7. Otherwise, is equal to 0.
The number of points in at which is discontinuous is ___________. (answer in integer)
Official answer and solution
- Official answer
- 40
- From
- Official GATE 2026 answer key
Solution
Identify the interval boundaries in where the second decimal digit transitions into or out of or .
For each of the choices of the first decimal digit , the second decimal digit belongs to on two disjoint sub-intervals of :
- , where , which has 2 boundary points ( and ).
- , where , which has 2 boundary points ( and ).
Inside each open interval, is constant ( or ), and at each of the boundary points per first digit , jumps between and . All boundary points lie strictly inside (the smallest is and the largest is ). Thus is discontinuous at points.
40
Counting every single digit transition () without noticing that and are adjacent ( across ) and and are adjacent ( across ).
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2026 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 64 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.