Concept:
- Definition of the derivative: \(f'(x)=\displaystyle\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\).
- Squeeze principle: if \(0\le g(h)\le |h|\) for every \(h\ne 0\), then \(g(h)\to 0\) as \(h\to 0\).
- A function whose derivative is zero at every point of \(\mathbb{R}\) is a constant function.
Step 1: Convert the given inequality into a bound on the difference quotient
Put \(y=x+h\) with \(h\ne 0\) in \(\left|f(x)-f(y)\right|\le (x-y)^2\): \[ \left|f(x+h)-f(x)\right|\le h^2 . \] Dividing both sides by \(|h|\gt 0\) gives \[ \left|\frac{f(x+h)-f(x)}{h}\right|\le |h| . \]
Step 2: Take the limit to find the derivative
As \(h\to 0\), the right-hand side tends to \(0\), while the left-hand side cannot be negative. Since \(f\) is differentiable, the quotient inside the modulus tends to \(f'(x)\). Hence \[ |f'(x)|\le \lim_{h\to 0}|h| = 0 \quad\Longrightarrow\quad f'(x)=0 . \] This holds for every real \(x\).
Step 3: Use the initial value
Because \(f'(x)=0\) for all \(x\in\mathbb{R}\), the function is constant: \(f(x)=k\). The condition \(f(0)=0\) gives \(k=0\), so \(f(x)=0\) for every \(x\). In particular \(f(1)=0\).
The values \(-1\), \(2\) and \(1\) are impossible because each of them would make \(f(1)\) differ from \(f(0)\), which a constant function cannot do. For instance, \(f(1)=\pm 1\) satisfies the inequality for the single pair \((0,1)\), but fails once the interval is split into small pieces.
Step 4: Conclusion
\(f(x)\) is identically zero, so \(f(1)=0\). Hence, the correct option is (B), \(0\).