Which of the following is an example of pessimism?

If I don’t get every answer right on today’s test, it’s the teacher’s fault.

If there’s a chance it will rain, it’s going to rain.

If I don’t get every answer right on today’s test, I’m a failure.

If there’s a chance it will rain, there’s also a good chance it won’t rain.