If $f:\mathbb{R}\to\mathbb{R}$ is defined by $f(x)=[2x]-2[x]$ for $x\in\mathbb{R}$, then the range of $f$ is (Here $[x]$ denotes the greatest integer not exceeding $x$)
- (1)
$\mathbb{Z}$, the set of all integers
- (2)
$\mathbb{N}$, the set of all natural numbers
- (3)
$\mathbb{R}$, the set of all real numbers
- (4)
$\{0,1\}$
Show answer
Option (4) is correct.
The council's preliminary key