答案1
尝试一下这个代码。
\documentclass[addpoints]{exam}
%******************************************** added <<<<<<<<<<<<
\usepackage{xpatch}
\makeatletter
\chbpword{Bonus Question:}
\gdef\bonuspoint@block{Bonus Question:}%
\xapptocmd{\questions}{%
\def\bonusquestion{%
\@bonustrue%
\def\thequestiontitle{Bonus}%
\process@question%
}%
}{}{}
\makeatother
%********************************************
\begin{document}
\begin{questions}
\question [10] Question 1
\question [20] Question 2
\bonusquestion [35] What's your favorite color?
\end{questions}
\combinedpointtable[h][questions] % changed <<<<<<<<<<<<<<<<<
\end{document}
和 \combinedgradetable[h][questions]
更新后续问题之后
\documentclass[addpoints]{exam}
%******************************************** added <<<<<<<<<<<<
\usepackage{xpatch}
\makeatletter
\chbpword{Bonus Question:}
\gdef\bonuspoint@block{Bonus Question:}%
\xapptocmd{\questions}{%
\def\bonusquestion{%
\@bonustrue%
\def\thequestiontitle{Bonus}%
\process@question%
}%
}{}{}
\renewcommand\questionlabel{\if@bonus\relax\else\thequestion.\fi}
\makeatother
%********************************************
\begin{document}
\begin{questions}
\question [10] Question 1
\question [20] Question 2
\bonusquestion [35] What's your favorite color?
\end{questions}
\combinedgradetable[h][questions] % changed <<<<<<<<<<<<<<<<<
\end{document}