Q1) Let $X$ a r.v. Do we always have that $\mathbb E[X\boldsymbol 1_{[a,b]}]<\infty $ ?
Q2) Let $f:[a,b]\longrightarrow \mathbb R$ a function (not necessarily continuous). Does $\sup_{[a,b]}f<\infty $ ?
My attempts
1) Since $X(\omega )\in \mathbb R$ for all $\omega $, I woud say yes.
2) Since $f(x)\in \mathbb R$ for all $x\in [a,b]$ I would say yes.