對或錯的問題

對或錯的問題

我想做一個只有正確或錯誤問題的測驗/考試,並且我想製作一個頁面,學生只能在其中標記 T 或 F,而不包含問題。我希望它在我需要時顯示答案。

有什麼幫助嗎?

答案1

一個棘手的方法:設定一個\status儲存文件狀態(答案紙或答案鍵)的指令。

如果您想隱藏答案鍵,請將其設為white。將其設定為black其他。

你在答案中:

\documentclass{article}
\usepackage{color}
\def\status{black}
\begin{document}
%\renewcommand{\status}{white}
\begin{enumerate}
    \item \underline{\quad\textcolor{\status}{T}\quad} Foo bar
    \item \underline{\quad\textcolor{\status}{F}\quad} Dummy text
    \item \underline{\quad\textcolor{\status}{F}\quad} Hello world
    \item \underline{\quad\textcolor{\status}{T}\quad} Loren lipsum
    \item \underline{\quad\textcolor{\status}{T}\quad} There is something in the sky.
\end{enumerate}
\end{document}

在此輸入影像描述

您在答題卡:

\documentclass{article}
\usepackage{color}
\def\status{black}
\begin{document}
\renewcommand{\status}{white}
\begin{enumerate}
    \item \underline{\quad\textcolor{\status}{T}\quad} Foo bar
    \item \underline{\quad\textcolor{\status}{F}\quad} Dummy text
    \item \underline{\quad\textcolor{\status}{F}\quad} Hello world
    \item \underline{\quad\textcolor{\status}{T}\quad} Loren lipsum
    \item \underline{\quad\textcolor{\status}{T}\quad} There is something in the sky.
\end{enumerate}
\end{document}

在此輸入影像描述

人們可以定義一個新的命令來\item使這個過程變得更容易。

相關內容