Context Word: attitude. 
Question: PersonX always has a better attitude and outlook on life unlike PersonY because _ is an optimist. 
Answer: PersonX
PersonX always has a better attitude and outlook on life unlike PersonY because _ is an pessimist.