[Tex/LaTex] Hiding point in exam class

exam

There are addpoints and noaddpoints commands for the exam class in order to show or hide points of questions. However, I can't hide points by adding noaddpoints option or command.

If I delete the point near the question ([5]), point disappears but I want to keep the point as is and just don't print it. Is it possible?

\documentclass[noaddpoints]{exam}
\noaddpoints
\begin{document}
\begin{questions}
    \question[5] Test 2
    \question Test 1
\end{questions}
\end{document}

Best Answer

No need noaddpoints as an option. Add to preamble

\nopointsinmargin
\pointformat{}

\documentclass[]{exam}
\nopointsinmargin
\pointformat{}
\begin{document}
\begin{questions}
    \question[5] Test 2
    \question Test 1
\end{questions}
\end{document}
Related Question