\documentclass[12pt,twoside]{article}
\usepackage{amsmath,amssymb,graphicx}
\usepackage{latexsym}

\newcommand{\coursenumber}{Math 042}
\newcommand{\coursetitle}{Intermediate Algebra}
\newcommand{\docdate}{April 02, 2010}
\newcommand{\duedate}{April 02, 2010}
\newcommand{\doctitle}{Exam II}
\newcommand{\student}{PUT YOUR NAME HERE}

\pagestyle{myheadings}
\markboth{\hfill\doctitle\hfill\docdate}{\docdate\hfill\doctitle\hfill}

\addtolength{\textwidth}{1.00in}
\addtolength{\textheight}{1.00in}
\addtolength{\evensidemargin}{-1.00in}
\addtolength{\oddsidemargin}{-0.00in}
\addtolength{\topmargin}{-.50in}
\setlength{\footskip}{0pt}

% Pseudocode line numbering
\newcounter{pseudocode}
\newcommand{\firstline}{\setcounter{pseudocode}{0}\linenumber}
\newcommand{\linenumber}{\refstepcounter{pseudocode}\thepseudocode}

\newcommand{\E}{{\mbox {\bf E}}}
\newcommand{\Var}{{\mbox {Var}}}

\newcommand{\solution}{\bigskip\hrule\bigskip}
\newcommand{\problembreak}{\bigskip\hrule\bigskip}

\renewcommand{\theenumi}{\textbf{\Alph{enumi}}}

\newcommand{\comment}{$\rhd$\ \ }
\newcommand{\fullver}[1]{}
\def\ni{\noindent}

\begin{document}

\thispagestyle{empty}


%\begin{center}
%\Large\bf\coursenumber\\[2pt]\doctitle \\ \large\docdate
%\end{center}

%\paragraph{}
%The point value of each problem is shown in [ ]. To receive full
%credit all your answers should be carefully justified.
%Each solution must be the student's own work. 

\setlength{\fboxrule}{.5mm}\setlength{\fboxsep}{1.2mm}
\newlength{\boxlength}\setlength{\boxlength}{\textwidth}
\addtolength{\boxlength}{-4mm}
\begin{center}\framebox{\parbox{\boxlength}{\bf
Math 042: Exam II \hfill Date: \docdate\\ ~\\~\\
Name: $\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$    \hfill Section: $\_\_\_\_\_\_\_\_\_\_\_\_\_$}}
\end{center}

%\problembreak
\noindent
\paragraph{1.} Which of the following is the graph of $3x+y=-6$?

\begin{figure}[ht]
\centering
\includegraphics[width=4.5in]{q1.eps}
\label{fig:1}
\end{figure}
~\\
\vspace*{0.8in}


\paragraph{2.}
What is the slope of the line given by the equation $x=-2$?

\ni
(a) 1 \hspace*{0.1in} (b) 0 \hspace*{0.1in} (c) $-2$ \hspace*{0.1in}
(d) undefined

\newpage
\paragraph{3.}
Find the slope and the equation of the line that contains the point
$(3,-1)$ and is \textbf{perpendicular} to the line $-2x-y=4$. \\

\ni
\textbf{Slope:} $\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$ .\\

\ni
\textbf{Equation:} $\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$ .
\vspace*{1.6in}


\vspace*{0.4in}

\paragraph{4.} 
Find the equation of the line passing through $(2,-5)$ and
$(-3,3)$. \\

\ni
\textbf{Equation:} $\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$ .

\vspace*{1.6in}

\paragraph{5.}
Solve the following system of equations.
\begin{eqnarray*}
2x - y & = & 1 \\
-3x + 2y & = & 5 
\end{eqnarray*}

\ni
\textbf{Your answer:} $\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$ .


\newpage
\paragraph{6.}
Graph $2x+3y > 6$.
\begin{figure}[h]
\centering
\includegraphics[width=2.0in]{q6.eps}
\label{fig:6}
\end{figure}

~\\
\vspace*{0.5in}
\paragraph{7.}
Which of the following is an expansion of $(4x-3y)^2$?\\

\ni
(a) $16x^2 + 9y^2$ \hspace*{0.2in} (b) $16x^2 - 9y^2$ \hspace*{0.2in}
(c) $16x^2 -12xy + 9y^2$ \hspace*{0.2in} (d) $16x^2 -24xy + 9y^2$

\vspace*{1.8in}

\paragraph{8.}
Expand $(x+3)^3$. \\

\ni
\textbf{Your answer: } $\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$ .\\

\newpage
\paragraph{9.}
$y-36y^3 = \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$ .

\vspace*{1.6in}

\paragraph{10.}
Factor $bx-by-7x+7y$. \\

\ni
\textbf{Your answer:} $\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$ .

\vspace*{1.6in}

\paragraph{11.}
Simplify $\frac{(2x^{-3}y)^3}{2x^{-2}y^{2}}$.\\

\ni
\textbf{Your answer:} $\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$ .

\vspace*{1.6in}

\paragraph{12.}
Factor $2x^2 - x -10$. \\

\ni
\textbf{Your answer: } $\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$ .


\newpage
\paragraph{13.}
Solve $x^2+2x-8=0$. \\

\ni
\textbf{Your answer: } $\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$ .


\vspace*{1.6in}

\paragraph{14.}
Which one of the following is a  factor of $8x^2 - 40x$?\\

\ni
(a) $8x^2$ \hspace*{0.1in} (b) $x^2-5$ \hspace*{0.1in} (c) $x-5$ \hspace*{0.1in}
(d) $x^2-5x$

\vspace*{1.2in}

\paragraph{15.}
$(\frac{3}{2})^{-3} = \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_$. \\ 

\ni
(a) $-\frac{8}{27}$ \hspace*{0.1in} (b) $\frac{8}{27}$ \hspace*{0.1in} (c) $-\frac{27}{8}$ \hspace*{0.1in}
(d) $\frac{27}{8}$

\end{document}
