Let $f : \mathbb{R} \to \mathbb{R} $ be a continuous function and $f(x+1) = f(x)$ for all $x \in \mathbb{R}$. Then
$f$ is bounded above, but not bounded below.
$f$ is bounded above and bounded below, but may not attain its bounds.
$f$ is bounded above and bounded below, and attain its bounds.
$f$ is uniformly continuous.
I have answered that 3 and 4 are correct.
Reason: We can see the image of $f$ depends on the image of $[0,1]$ under $f$.
Now , since $f$ is continuous and $[0,1]$ is a closed and bounded interval therefore $f$ is uniformly continuous on it and hence uniformly continuous on the whole of $\mathbb{R}$.
Also $f$ being continuous will attain its bound on the closed and bounded interval $[0,1]$ and the since the image of $f$ is in some sense same as image of $[0,1]$ under $f$ , therefore the bounds of $f$ on $\mathbb{R}$ will be same as that in $[0,1]$
Is this reasoning correct?
Thanks in advance!
I think that 3 and 4 are correct. If we look at $f$ restricted on $[0,1]$, which is compact, then it is uniformly continuous by Heine-Cantor theorem and bounded from above (by $\sup_{x\in [0,1]}f(x)$) and from below (by $\inf_{x\in [0,1]}f(x)$). The bounds are attained because it is a continuous map on a compact space.
All this properties remains true also for $f$ from $\mathbb{R}$ to $\mathbb{R}$. It is maybe useful to note the following.
For uniform continuity consider an arbitrary $\epsilon>0$ choose $\hat{\delta}>0$ such that for all $x,\,y\in[0,1]$ with $|x-y|<\hat{\delta}$ we have $|f(x)-f(y)|<\epsilon$. Such a $\hat{\delta}$ exists by above discussion. Now, by periodicity, if we take $x,\,y\in[n,n+1]$ ($n\in\mathbb{N}$) there is no problem. Indeed, for $\alpha,\,\beta\in(0,1)$, $|\alpha-\beta|<\hat{\delta}$ and $x=n+\alpha$, $y=n+\beta$, we have \begin{equation} |f(x)-f(y)|=|f(\alpha)-f(\beta)|<\epsilon. \end{equation} This argument, however, does not consider the case $x\in[n,n+1)$, $y\in(n+1,n+2]$ with $|x-y|<\hat{\delta}$ and $n\in\mathbb{N}$. Indeed, using just periodicity it seems hard to motivate $|f(x)-f(y)|<\epsilon$. However, $f$ is continuous, in particular continuous in $n+1$. Thus there exists a $\delta_{n+1}>0$, for which \begin{equation} |x-(n+1)|<\delta_{n+1} \Rightarrow |f(x)- f(n+1)| < \frac{\epsilon}{2}. \end{equation} By periodicity, such $\delta_m$ is the same for all $m\in\mathbb{Z}$. Taking $\delta = \min\{\hat{\delta},\delta_m\}$ we are done.