For example, if you help someone with their groceries who obviously needs help,
An optimist will thank you and talk about their day or ask you about yourself. A pessimist will become suspicious, tell you that they have nothing to give you, and may even yell at you to leave them alone.