

\documentclass[12pt]{article}

\usepackage{pstricks}
\usepackage{times}
\usepackage{pstcol}

\setlength{\topmargin}{0in}
\setlength{\textheight}{9.0in}
\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{0.15in}
\setlength{\evensidemargin}{0.15in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\pagestyle{empty}

\newcounter{pointCount}
\def\P#1{{\sf (#1 pts)}\addtocounter{pointCount}{#1}}

\def\beBrief{{\\[12pt]
    {\footnotesize An accurate one-sentence explanation is enough.  Don't write a book.\\[12pt]}}}


\def\AnswerGrid#1{
\psset{unit=18pt}
\begin{pspicture}(0,0)(20,#1)
\psset{subgriddiv=0,linewidth=.8,gridlabels=0pt}
\psgrid(0,0)(20,#1)
\end{pspicture}}


\begin{document}


\vskip .1in
\noindent
{ \Large  CISC 474 (Conrad)\\
{\bf E01\_practice\_1\_S05} \hfill
Practice Exam 1 for Midterm I, 4/21/04 \\ }
\vskip 0.05in 
\noindent

Name\rule{4.0in}{1pt}

\vspace{0.5in}


\vspace{0.3in}


\section*{General Instructions}

\begin{itemize}
\large
\item DO NOT WRITE YOUR NAME ON ANY PAGE EXCEPT THIS ONE!
\item You have 75 minutes
\item You are permitted to use one 8.5 x 11 sheet of notes, (both sides) 
      which you must turn in with your exam.  Put your name on it.  
      You won't get it back, so make a copy before you come to the exam.
      It {\em is} permitted for your notes to be a laser print or photocopy.
\item {\bf Pace Yourself!!!!!} \\[\baselineskip]
Pay attention to the point values.
When there are 10 minutes left, skim through and be sure you have at least
written {\em something} for the questions that are worth many points.
\item Read {\em all} the directions {\em carefully} on each problem.
\end{itemize}

\newpage % start of even

\begin{enumerate}  %%% THE FIRST BEGIN ENUMERATE FOR THE EXAM

\item \P{10} Explain the role of HTML vs. the role of HTTP.  (It is helpful, but not sufficient to tell me what the letters stand for.  What I really need to see is the role that each one plays in a web application.)

[HF, p. 6]

\vspace{2in}

\item \P{10} An HTTP request stream includes exactly one ``HTTP Method''.  List at least two HTTP methods, and briefly describe the circumstances under which each might be used.

[HF p. 10-19, p. 108-111]

\newpage % start of odd

\item \P{15} For each of the following, circle GET, POST or both, and then {\em explain your answer.}

[HF 13-19, 108-118]

\begin{tabular}{ccp{3.0in}}
GET & POST & A user is submitting a username and password \\[.7in]
GET & POST & A user submits a course number and semester (e.g. Fall 2005)
              to see how many open seats are in a class. \\[.7in]
GET & POST & A user submits a text box containing their comments about
              their hotel stay.  The box has room for about 10 lines
              of text.\\[.7in]
\end{tabular}

\newpage % start of even

\item \P{10} Write a brief web page that illustrates the proper use of the following tags.   The web page should include an input fields for ``name'' and ``email address'', and a submit button.   The page should submit a form to a servlet called ``addToList.do'' using the POST method.   
Add attributes to the tags as needed.  (Before you start, take a look at the following question also.)

[HF p. 7-9, 75, 117-118]

\begin{verbatim}
<body>
<br>
<form>
<head>
<html>
<input>
<p>
<title>

\end{verbatim}

\newpage

\item \P{5} Now draw a picture of how a typical graphical browser (Firefox, IE) might render the web page you just created.



\newpage


\end{enumerate} %%% THE FINAL END ENUMERATE FOR THE EXAM



\newpage
Total Points: \the\value{pointCount}
\typeout{Total Points: \the\value{pointCount}}
\end{document}










