\documentclass[letter]{article}

\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage[box,separateanswersheet]{automultiplechoice} 
\usepackage{multicol}
\usepackage{tikz}
\geometry{letterpaper, hmargin=1.5cm,headheight=2cm,headsep=.3cm,footskip=1cm,top=3.cm,bottom=2.cm}

\begin{document}
\AMCrandomseed{1237893}
\AMCcodeHspace=.3em
\AMCcodeVspace=0em
\AMCformHSpace=.3em
\AMCformVSpace=0.5ex
\AMCboxStyle{shape=oval,size=1.7ex,down=.2ex,rule=.5pt,outsidesep=0em,color=black}
\def\AMCformQuestion#1{\vspace{\AMCformVSpace}\par {\sc Q#1:} } 
\def\AMCformAnswer#1{\hspace{\AMCformHSpace}#1}
\def\AMCchoiceLabelFormat#1{\tiny{#1}}
\AMCtext{corrected}{Answers}

% horizontal bar
\newcommand{\sectionline}{\nointerlineskip \vspace{\baselineskip} \hspace{\fill}\rule{0.85\linewidth}{.7pt}\hspace{\fill} \par\nointerlineskip \vspace{\baselineskip}}

% some definitions
\newcommand{\degree}{\ensuremath{^\circ}}
\newcommand\blank[1]{\rule[-.2ex]{#1}{.4pt}}
\renewcommand{\multiSymbole}{}

\small

%%%%
\element{general}{
\begin{question}{dm2}
The observational evidence suggests that there is more dark matter than visible matter in the universe.
\begin{choiceshoriz}
\correctchoice{TRUE}
\wrongchoice{FALSE}
\end{choiceshoriz}
\end{question}}

\element{general}{
\begin{question}{dm3}
The leading theory suggests that most of the dark matter is:
\begin{choiceshoriz}
\wrongchoice{white dwarfs}
\wrongchoice{brown dwarfs and planets}
\correctchoice{Weakly Interacting Massive ParticleS}
\wrongchoice{black holes}
\end{choiceshoriz}
\end{question}}

\element{general}{
\begin{question}{gal1}
In studying the large scale distribution on galaxies, we find that:
\begin{choices}
\wrongchoice{galaxies are arranged in filaments and sheets, with a "frothy" distribution. }
\wrongchoice{the universe has vast voids that are relatively empty.}
\wrongchoice{as expected, it is homogeneous and totally random. }
\correctchoice{Two of the other answers are correct. }
\end{choices}
\end{question}}

\element{general}{
\begin{question}{galsvsstars}
What formed first ?
\begin{choiceshoriz}
\correctchoice{stars}
\wrongchoice{galaxies}
\end{choiceshoriz}
\end{question}}


\element{general}{
\begin{question}{gut}
What is the Grand Unified Theory (GUT) ?
\begin{choices}
\correctchoice{the force unifying electromagnetic, weak, and strong forces}
\wrongchoice{the force unifying electromagnetic, weak, strong, and gravity forces}
\wrongchoice{the force unifying electromagnetic and weak forces}
\wrongchoice{the force unifying weak and strong forces}
\end{choices}
\end{question}}

\element{general}{
\begin{question}{firststars}
The first stars were probably born \blank{1cm} years after the Big Bang.
\begin{choiceshoriz}
\wrongchoice{2,000}
\correctchoice{300 million}
\wrongchoice{14 million}
\wrongchoice{1.4 billion}
\end{choiceshoriz}
\end{question}}


\element{general}{
\begin{question}{ageuniv}
The current best estimate for the age of the universe is 
\begin{choiceshoriz}
\wrongchoice{1 million years}
\wrongchoice{4.5 billion years}
\wrongchoice{1 billion years}
\correctchoice{13.8 billion years}
\end{choiceshoriz}
\end{question}}

\element{general}{
\begin{question}{univdens}
The mass density of the universe was mainly in the form of light in the early history of the universe.
\begin{choiceshoriz}
\correctchoice{TRUE}
\wrongchoice{FALSE}
\end{choiceshoriz}
\end{question}}


\element{general}{
\begin{question}{univunif}
The inflationary stage of rapid expansion helps to explain the uniformity of regions separated by greater the light travel time for the age of the universe.
\begin{choiceshoriz}
\correctchoice{TRUE}
\wrongchoice{FALSE}
\end{choiceshoriz}
\end{question}}

\element{general}{
\begin{question}{elemheavy}
Why didn't many elements heavier than helium form in the early universe?
\begin{choices}
\correctchoice{Collision with photons and other elements prevented the formation of more massive elements}
\wrongchoice{Heavier elements did form, but they didn't survive the making of the first stars and galaxies}
\wrongchoice{The creation of dark energy stopped all nucleosynthesis. }
\wrongchoice{The laws of physics only allow nucleosynthesis in stars.}
\end{choices}
\end{question}}

\element{general}{
\begin{question}{hhe}
Big-bang nucleosynthesis predicts the composition of the primordial gas in Helium (He) and Hydrogen (H) to be:
\begin{choiceshoriz}
\correctchoice{25\% He, 75\% H}
\wrongchoice{75\% He, 25\% H}
\wrongchoice{90\% He, 10\% H}
\wrongchoice{50\% He, 50\% H}
\end{choiceshoriz}
\end{question}}

\element{general}{
\begin{question}{lightmass}
Light can be converted into mass by the process of 
\begin{choiceshoriz}
\correctchoice{particle/antiparticle production}
\wrongchoice{particle/antiparticle annihilation}
\wrongchoice{ionization}
\wrongchoice{nuclear fusion}
\end{choiceshoriz}
\end{question}}

\element{general}{
\begin{question}{univeras}
Order the epochs in the evolution of the universe chronologically from first to last.
\begin{multicols}{2}
\begin{choices}
\wrongchoice{Planck, electroweak, GUT, particle, nucleosynthesis}
\wrongchoice{Planck, GUT, particle, electroweak, nucleosynthesis}
\wrongchoice{Electroweak, GUT, Planck, nucleosynthesis, particle}
\correctchoice{Planck, GUT, electroweak, particle, nucleosynthesis}
\end{choices}
\end{multicols}
\end{question}}


\onecopy{1}{    

%%% beginning of the test sheet header:    
\noindent{\bf ASTRO 1020  \hfill Class Quiz 7\\}
{\noindent {\bf Please ONLY give me back the answer sheet}.}
\vspace{5ex}

%%% end of the test shee header

\shufflegroup{general}
\insertgroup{general}

\AMCcleardoublepage    

\AMCformBegin    
%%% beginning of the answer sheet header
\begin{center}
{\large\bf Class Quiz 7 - ANSWER SHEET}
\end{center}
\begin{minipage}[t]{.48\textwidth}
\namefield{\fbox{    
    \begin{minipage}{.9\linewidth}
        \centering First and Last name\\
       \vspace*{.5cm} \dotfill \\
       \vspace*{.5cm} \dotfill
       \vspace*{3mm}
     \end{minipage}
   }}
 \vspace{.5cm} \noindent Please {\bf detach and return only this sheet}. You should keep the question sheets. Please use {\bf a pencil} and {\bf completely fill} the \tikz[baseline=-1ex]\draw[black,fill=white] (0,0) circle (1ex); so that they look like this: \tikz[baseline=-1ex]\draw[black,fill=black] (0,0) circle (1ex);.
 \end{minipage}
\hfill
 \begin{minipage}[t]{.50\textwidth}
 \vspace{-1.5cm}
\begin{center}
 Encode your PANTHER ID below
\end{center} 
 \begin{minipage}[t]{.50\textwidth}
\begin{tabbing} 
 {\footnotesize \it 1\textsuperscript{st} digit of your Panther ID}~~\= $\rightarrow$ \\
 {\footnotesize \it 2\textsuperscript{nd} digit of your Panther ID} \> $\rightarrow$ \\
 {\footnotesize \it 3\textsuperscript{rd} digit of your Panther ID} \> $\rightarrow$ \\
 {\footnotesize \it 4\textsuperscript{th} digit of your Panther ID} \> $\rightarrow$ \\
 {\footnotesize \it 5\textsuperscript{th} digit of your Panther ID} \> $\rightarrow$ \\
 {\footnotesize \it 6\textsuperscript{th} digit of your Panther ID} \> $\rightarrow$ \\
 {\footnotesize \it 7\textsuperscript{th} digit of your Panther ID} \> $\rightarrow$ \\
 {\footnotesize \it 8\textsuperscript{th} digit of your Panther ID} \> $\rightarrow$ \\
 {\footnotesize \it 9\textsuperscript{th} digit of your Panther ID} \> $\rightarrow$ \\   
\end{tabbing}
 \end{minipage}
 \begin{minipage}[t]{.45\textwidth}
 \AMCcodeH{pantherid}{9}
 \end{minipage}

 \end{minipage}

\sectionline
 
%%% end of the answer sheet header
\begin{multicols}{4}
  \AMCform
\end{multicols}

}  

\end{document}
