In exam class, how to print Answer instead of Solution when using

\begin{solution}

\end{solution}


Referencing Section 8.3.1 of the manual, you can use, for example,

\renewcommand{\solutiontitle}{\noindent\textbf{Answer}\par\noindent}


Here's a complete MWE:

% arara: pdflatex