So yes, it is a solution, but that doesn't mean that it's the general solution. That's the difference.
y'' + y = 0
The general solution is y = c[1] * sin(x) + c[2] * cos(x). Hopefully, you can see that the specific solution you were given has c[1] equal to 0 and c[2] equal to c + 5C
y(x) = sinx + cosx is a solution because y'(x) = cosx - sinx, y''(x) = -sinx - cosx, giving y'' + y = -sinx - cosx + sinx + cosx = 0. But y(x) = sinx + cosx in not included in c1(cosx) + 5c2(cosx) for any choice of c1, c2. So answer is false. General solution is y(x) = c1cosx + c2sinx.