Answer:
i. An optimist is a person who visits shrines and holy places,
ii. The glutton ate and drank excessively.
iii. During the meeting, the stenographer wrote in shorthand.
iv. A mayor steals things as a habit.
OR
The mayor steals things as a habit
Using A in the fourth sentence makes it sound a bit off the grid