It's a common exercise to prove in an abstract algebra book that if $G/Z(G)$ is cyclic then $G$ must be abelian. But I've always found the exercise strange because if $G$ is abelian then $Z(G)=G$ and the quotient is trivial.
Is there a specific example of this being a useful technique to proving a group is abelian? As it seems you must know enough about a specific group $G/Z(G)$ to proves it's cyclic, but not enough to notice that it the trivial group, which would prove the commutativity of $G$ immediately.