A.M. and P.M.

When the question is "Was that A.M. or P.M.?" the problem with the way the answer looks is solved if you cap both letters. The dictionary gives you an option for caps or lowercase. Choosing caps all the time resolves any issues.

Q Was that A.M. or P.M.?
A A.M.

Happy punctuating!