An Itô integral It=∫0tfsdWs (with f adapted, E[∫0tfs2ds]<∞) is a martingale with
E[It]=0,Var(It)=E[∫0tfs2ds]=∫0tE[fs2]ds,
the Itô isometry. More generally E[ItJt]=∫0tE[fsgs]ds for Jt=∫0tgsdWs.
For deterministic time-integrals of W, use Cov(Wu,Wv)=min(u,v) and Fubini:
Var(∫0tWsds)=∫0t∫0tmin(u,v)dudv,
or integrate by parts, ∫0tWsds=tWt−∫0tsdWs=∫0t(t−s)dWs, then apply the isometry.
Quadratic variation: for a partition into 2n pieces, ∑(ΔW)2→t in L2, since increments are independent with E[(ΔW)2]=Δt, Var((ΔW)2)=2(Δt)2.