\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage{a4wide}
\usepackage{psfig}
\setlength{\textwidth}{18cm}
\hoffset -1.5cm
\begin{document}
\pagestyle{myheadings}
\renewcommand{\thepage}{}
\large
\begin{tabbing} {\Huge Tiny Multiple Choice Test}\\ \\ {\LARGE ID~~~~~~}\={\LARGE \raisebox{-4mm}{\framebox[10cm]{\rule{0mm}{10mm}}}}\\ \\ {\LARGE Name}\>{\LARGE \raisebox{-4mm}{\framebox[10cm]{\rule{0mm}{10mm}}}}\\ \end{tabbing}
\newpage
\noindent
\begin{minipage}{\textwidth}\vspace*{2mm}
\noindent\hspace*{-5cm}\rule{30cm}{1pt}
{\textbf{Question 1}}

\noindent
What is a newt?\\~\\
\noindent
\begin{tabular}{r@{\hspace*{1pt}}l@{\hspace*{1pt}}l@{~~}p{16cm}}
2 \rule{20mm}{4mm}~&\textit{a}&\framebox[4mm]{\rule{0mm}{2mm}} &
A unit of gravity\\
2 \rule{20mm}{4mm}~&\textit{b}&\framebox[4mm]{\rule{0mm}{2mm}\textbf{\textsf{x}}} &
A small animal\\
\end{tabular}

\end{minipage}

\noindent
\begin{minipage}{\textwidth}\vspace*{2mm}
\noindent\hspace*{-5cm}\rule{30cm}{1pt}
{\textbf{Question 2}}

\noindent
What is the correct URL encoding of \verb:"100% pure":?\\~\\
\noindent
\begin{tabular}{r@{\hspace*{1pt}}l@{\hspace*{1pt}}l@{~~}p{16cm}}
1 \rule{10mm}{4mm}~&\textit{a}&\framebox[4mm]{\rule{0mm}{2mm}} &
\verb:100%+pure:\\
1 \rule{10mm}{4mm}~&\textit{b}&\framebox[4mm]{\rule{0mm}{2mm}} &
\verb:100+%+pure:\\
4 \rule{40mm}{4mm}~&\textit{c}&\framebox[4mm]{\rule{0mm}{2mm}\textbf{\textsf{x}}} &
\verb:100%25+pure:\\
\end{tabular}

\end{minipage}

\noindent
\begin{minipage}{\textwidth}

\noindent
\hspace*{-5cm}\rule{30cm}{1pt}
{\textbf{Example}}

\noindent

      Consider the following example XML tree in which the
      \textit{current} node is colored black:\\
      \begin{center}
      \psfig{file=tree.ps,width=7cm}
      \end{center}
    \end{minipage}

\noindent
\begin{minipage}{\textwidth}\vspace*{2mm}
\noindent\hspace*{-5cm}\rule{30cm}{1pt}
{\textbf{Question 3}}

\noindent
Which nodes belong to the \texttt{descendant} axis for the current node in the
        above example XML tree?\\~\\
\noindent
\begin{tabular}{r@{\hspace*{1pt}}l@{\hspace*{1pt}}l@{~~}p{16cm}}
4 \rule{40mm}{4mm}~&\textit{a}&\framebox[4mm]{\rule{0mm}{2mm}\textbf{\textsf{x}}} &
b,c,d,e,f\\
2 \rule{20mm}{4mm}~&\textit{b}&\framebox[4mm]{\rule{0mm}{2mm}} &
c,e,f\\
0 \rule{0mm}{4mm}~&\textit{c}&\framebox[4mm]{\rule{0mm}{2mm}} &
d,e,f\\
0 \rule{0mm}{4mm}~&\textit{d}&\framebox[4mm]{\rule{0mm}{2mm}} &
a,b,c,d,e,f\\
\end{tabular}

\end{minipage}

\noindent
\begin{minipage}{\textwidth}\vspace*{2mm}
\noindent\hspace*{-5cm}\rule{30cm}{1pt}
{\textbf{Question 4}}

\noindent
Which nodes belong to the \texttt{preceding} axis for the current node in the
        above example XML tree?\\~\\
\noindent
\begin{tabular}{r@{\hspace*{1pt}}l@{\hspace*{1pt}}l@{~~}p{16cm}}
2 \rule{20mm}{4mm}~&\textit{a}&\framebox[4mm]{\rule{0mm}{2mm}\textbf{\textsf{x}}} &
It is empty.\\
1 \rule{10mm}{4mm}~&\textit{b}&\framebox[4mm]{\rule{0mm}{2mm}} &
a\\
1 \rule{10mm}{4mm}~&\textit{c}&\framebox[4mm]{\rule{0mm}{2mm}} &
b,c\\
0 \rule{0mm}{4mm}~&\textit{d}&\framebox[4mm]{\rule{0mm}{2mm}} &
a,b,c\\
\end{tabular}

\end{minipage}

\noindent
\begin{minipage}{\textwidth}\vspace*{2mm}
\noindent\hspace*{-5cm}\rule{30cm}{1pt}
{\textbf{Question 5}}

\noindent
Which nodes belong to the \texttt{child} axis for the current node in the
        above example XML tree?\\~\\
\noindent
\begin{tabular}{r@{\hspace*{1pt}}l@{\hspace*{1pt}}l@{~~}p{16cm}}
3 \rule{30mm}{4mm}~&\textit{a}&\framebox[4mm]{\rule{0mm}{2mm}\textbf{\textsf{x}}} &
b,c\\
1 \rule{10mm}{4mm}~&\textit{b}&\framebox[4mm]{\rule{0mm}{2mm}} &
b,c,i,j,k\\
0 \rule{0mm}{4mm}~&\textit{c}&\framebox[4mm]{\rule{0mm}{2mm}} &
b,c,d,e,f\\
0 \rule{0mm}{4mm}~&\textit{d}&\framebox[4mm]{\rule{0mm}{2mm}} &
a\\
\end{tabular}

\end{minipage}

\newpage
\end{document}
