Consider the given function.
f(x)=mx+c
On differentiating w.r.t x, we get
f′(x)=m
Since, f′(0)=1
So,
f′(0)=m
m=1
Now,
f(x)=x+c
On putting x=2, we get
f(2)=2+c
Hence, this is the answer.