\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{cs1102smcq}
              [2001/07/28 v1.0; CS1102S MCQ Test]

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}

\ProcessOptions

\LoadClass{article}
\usepackage{fancybox}

\usepackage{amstext}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage{inductive}
\usepackage{lambda}
\usepackage{simpl}
\usepackage{url}
\usepackage{amsmath}
\usepackage{denotational}
\usepackage{processors}
\usepackage{repl}
\usepackage{impl}
\usepackage{epsfig}

\newenvironment{proof}{%
\noindent
\textbf{Proof:}
}%
{
\hfill \qed\\
\medskip
}

\newcommand{\qed}{$\Box$}

\newcommand{\Rulee}[3]{\genfrac{}{}{0.7pt}{}{{\setlength{\fboxrule}{0pt}\setlength{\fboxsep}{3mm}\fbox{$#1$}}}{{\setlength{\fboxrule}{0pt}\setlength{\fboxsep}{3mm}\fbox{$#2$}}}[#3]}

\newcommand{\transition}{\rightrightarrows_s}
\newcommand{\translate}{\twoheadrightarrow}
\newcommand{\translateaux}{\hookrightarrow}


\newcounter{questioncounter}
\setcounter{questioncounter}{0}
\newcounter{altcounter}

\newenvironment{question}{%
\addtocounter{questioncounter}{1}
\vspace{10mm}
\begin{minipage}{\textwidth}
\textbf{Question \thequestioncounter}:
}% 
{
\end{minipage}
}

\newenvironment{answer}{%
\vspace{10mm}
\textbf{Answer \thequestioncounter}:
}%
{}

\newcommand{\Answerbox}[1]{%
\vspace{3mm}
{\bf Answer:} \Ovalbox{#1}
}

\newenvironment{alternatives}{%
\setcounter{altcounter}{1}
\begin{itemize}}%
{
\end{itemize}}

\newcommand{\Item}{\item[\thequestioncounter\ \Ovalbox{\Alph{altcounter}}]
\addtocounter{altcounter}{1}
}

\newenvironment{answeralternatives}{%
\setcounter{altcounter}{1}
\begin{itemize}
}%
{%
\end{itemize}
}

\ProcessOptions

\parindent 0pt

\newcommand{\header}[1]{\newcommand{\hdr}{#1}}

\AtBeginDocument{%
{\Large CS1102S Data Structures and Algorithms}\newline
\vspace{10mm}

{\large 4/2/2008
\vspace{10mm}

{\LARGE \hdr}
\vspace{10mm}

This test is intended to measure your level of competency
with basic concepts of Java classes and objects. It is not
part of your grade, but you will be given the results.

\vspace{10mm}
}
}
