自動為多項選擇題分配分數/分數

自動為多項選擇題分配分數/分數

我正在創建一個包含多項選擇題和結構化問題的考試。如何自動為多項選擇題分配一分或一分,以便我在撰寫論文時總分包括多項選擇題的分數。

如果我使用這段程式碼,我會得到以下結果

\documentclass[12pt,addpoints,answers]{exam}
\begin{document}

This exam has \numquestions\ questions, for a total of \numpoints\  points.
\begin{questions}
\question What is the function of nucleoli?
\begin{choices}
    \choice the formation and breakdown of the nuclear envelope
    \choice the formation of centromeres
    \choice the formation of ribosomes
    \choice the organisation of the spindle during nuclear division
\end{choices}   
\question An actively growing cell is supplied with radioactive amino acids.\\
Which cell component would first show an increase in radioactivity? \\
\begin{oneparchoices}
    \choice Golgi body
    \choice mitochondrion
    \choice nucleus
    \choice rough endoplasmic reticulum
\end{oneparchoices}
    \question \begin{parts}
        \part There are 20 units of DNA in a cell during stage G2 of mitosis. Give the number of units of DNA   you would expect to find in this cell
        \begin{subparts}
            \subpart[1] at prophase of mitosis; \fillwithdottedlines{0.25in}
        \end{subparts}
    \end{parts}
    \end{questions}
\end{document}

總點數

答案1

我修改\question為預設為1點,所以你必須使用\question[0]按部分分配點。我找不到抑製列印點的選項,所以我曾經\pointformat創建一個。

\documentclass[12pt,addpoints,answers]{exam}

\begin{document}

This exam has \numquestions\ questions, for a total of \numpoints\  points.
\begin{questions}
\let\normalquestion=\question
\renewcommand{\question}[2][1]{\normalquestion[#1]#2}
\pointformat{\hspace{-.5em}}

\question What is the function of nucleoli?
\begin{choices}
    \choice the formation and breakdown of the nuclear envelope
    \choice the formation of centromeres
    \choice the formation of ribosomes
    \choice the organisation of the spindle during nuclear division
\end{choices}   
\question An actively growing cell is supplied with radioactive amino acids.\\
Which cell component would first show an increase in radioactivity? \\
\begin{oneparchoices}
    \choice Golgi body
    \choice mitochondrion
    \choice nucleus
    \choice rough endoplasmic reticulum
\end{oneparchoices}
    \question[0] \begin{parts}
        \part There are 20 units of DNA in a cell during stage G2 of mitosis. Give the number of units of DNA   you would expect to find in this cell
        \begin{subparts}
            \subpart[1] at prophase of mitosis; \fillwithdottedlines{0.25in}
        \end{subparts}
    \end{parts}
    \end{questions}
\end{document}

相關內容