答案1
从这个美好的回答并进行了一些修改。
\documentclass[a4paper,addpoints]{exam}
\makeatletter
\@qformatfalse
\def\droppointsatend{%
\def\level@of@question{question}%
\leavevmode\unskip\nobreak%
\ifx\level@of@question\@queslevel%
\dotfill(\mbox{\totalpoints\ \points})%
\else%
\quad \mbox{(\@points\ \points)}%
\fi%
\par
}
\makeatother
\begin{document}
\pointsdroppedatright
\begin{questions}
\question Some questions about emotions.
\begin{parts}
\part[2] Are we happy? \droppointsatend
\part[2] Are we mad? \droppointsatend
\part[2] Are we mad Are we mad Are we mad Are we mad Are we mad Are we mad Are we mad Are we mad Are we mad Are we mad? \droppointsatend
\end{parts}
\question Second questions about emotions.
\begin{parts}
\part[2] Are we happy? \droppointsatend
\part[2] Are we mad? \droppointsatend
\end{parts}
\end{questions}
\noindent Total to earn: \numpoints\ \points
\end{document}
答案2
您可以尝试以下代码。这应该会给出所需的结果:
\documentclass[11pt]{exam}
\begin{document}
\begin{questions}
\question Some questions about emotions.
\begin{parts}
\part Are we happy? (2 points)
\part Are we mad? (2 points)
\end{parts}
\end{questions}
\end{document}