Skip to content

Instantly share code, notes, and snippets.

@lidavidm
Created February 18, 2013 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lidavidm/4979877 to your computer and use it in GitHub Desktop.
Save lidavidm/4979877 to your computer and use it in GitHub Desktop.
\startenvironment env_mocktest
% Font
\definefontfeature[default][mode=node, kern=yes, liga=yes, dlig=yes,protrusion=quality,expansion=quality]
\usemodule[simplefonts][size=11.5pt]
\setmainfont[(FONT NAME REMOVED)]
\setsansfont[(FONT NAME REMOVED)]
\setupalign[right,nothyphenated,stretch,hz,verytolerant]
% Page
\setuppapersize[letter]
\setuplayout[width=7.1in,height=10in,topspace=0.5in,backspace=0.70in,
header=0.5in,footer=0.5in,bottomspace=0.5in,]
\setupwhitespace[0.3cm]
\setupindenting[0.25in]
\indenting[no]
\def\sheaderone{{\framed[frame=off,background=color,backgroundcolor=black,foregroundcolor=white]{\simplefont[(FONT NAME REMOVED)btbold]Section I}}}
\def\sheadertwo{{\framed[frame=off,background=color,backgroundcolor=black,foregroundcolor=white]{\simplefont[(FONT NAME REMOVED)btbold]Section II}}}
\def\unauth{
\startframedtext[style=\ssxx\bf,width=4.7cm,height=0.3in,autowidth=force,align=right,frameoffset=0pt,backgroundoffset=0pt,location=bottom,offset=2pt]
\setupinterlinespace[0.1ex] Unauthorized copying or reuse of any part of this page is illegal.
\stopframedtext
}
\setupheadertexts[][\sheaderone][\sheaderone][]
\def\MyPageNumber#1{{\simplefont[(FONT NAME REMOVED)w0145light]#1}}
\setuppagenumbering[location={footer,inright},command=\MyPageNumber,alternative=doublesided]
% Utilities
\defineparagraphs[PageDivision][n=2]
\setupparagraphs[PageDivision][1][width=.25\textwidth]
\setupparagraphs[PageDivision][2][distance=2em,align=right]
\defineparagraphs[NoRights][n=2]
\setupparagraphs[NoRights][2][width=0.2in]
\defineparagraphs[PDTwo][n=2]
\setupparagraphs[PDTwo][1][width=.5\textwidth]
\setupparagraphs[PDTwo][2][align=flushright, width=.46\textwidth]
\defineparagraphs[SampleQuestion][n=2]
\setupparagraphs[SampleQuestion][1][width=.2\textwidth]
\setupparagraphs[SampleQuestion][2][width=.3\textwidth]
\defineitemgroup[sqitemize][levels=2]
\setupitemgroup[sqitemize][1][left=(, right=), stopper=]
\setuplinenumbering[step=5, location=left, style={\tfx\em}]
\setupitemize[2][left=(, right=), stopper=]
\def\sectiontitle#1#2{
\setupwhitespace[none]
{\bf
\startalignment[middle]
ENGLISH LANGUAGE AND COMPOSITION
SECTION #1
Time—#2
\stopalignment
}
\setupwhitespace[0.3cm]
}
\def\sectiontitletwo#1#2{
\setupwhitespace[none]
{\bf
\startalignment[middle]
ENGLISH LANGUAGE AND COMPOSITION
SECTION #1
\bf
Total time—#2
\stopalignment
}
\setupwhitespace[0.3cm]
}
\definebodyfontenvironment[12pt][x=11pt]
\definestartstop[passage][
before={
\startlinenumbering
\setupwhitespace[none]
\indenting[yes]
},
after={
\indenting[no]
\setupwhitespace[0.3cm]
\stoplinenumbering
}]
\def\inputpassage[#1]#2#3{
\startcolumns[n=2]
\setupwhitespace[0.3cm]
{\bf Questions #2. Read the following passage carefully before you choose
your answers.}
{\em (#3)}
\blank[0.2cm]
\startpassage
\ReadFile{#1}
\stoppassage
\stopcolumns
}
\def\question#1#2#3#4#5#6{
\startitem
#1
\blank[0.5em]
\startitemize[A,packed]
\item #2
\item #3
\item #4
\item #5
\item #6
\stopitemize
\blank[0.5em]
\stopitem
}
\def\frqquestion#1{
\startalignment[middle]
{\bf Question #1}
(Suggested time—40 minutes. This question counts for one-third of the total
essay question score.)
\stopalignment
}
\def\hangover{\hangafter=1\hangindent=0.5in}
\definestartstop[workscited][
before={
\page[yes]
\indenting[never]
\startalignment[middle]
Works Cited
\stopalignment
\bgroup\appendtoks\hangover\to\everypar
},
after={
\egroup
\indenting[yes]}]
\definestartstop[citation][
before={
\indenting[never]
\bgroup\appendtoks\hangover\to\everypar
},
after={
\egroup
\indenting[yes]}]
\def\synqsource#1#2#3#4{
\page[yes]
\setupwhitespace[0.3cm]
\startalignment[middle]
\dontleavehmode
\framed[width=3.5in, align=center, offset=0.25cm]{
{\bf Source #1}
\setupalign[right]
\startcitation
\setupinterlinespace[5.6ex]
#2\par
\stopcitation
}
\stopalignment
{\em #3}
#4
}
\stopenvironment
\environment env_mocktest
\usemodule[tikz]
\setupfootertexts[][][][]
\starttext
\startalignment[flushright]
{\simplefont[(FONT NAME REMOVED)bold][size=14pt] The Exam}
\stopalignment
\blank[0.1cm]
\hrule
{\simplefont[(FONT NAME REMOVED)bold][size=22pt] AP English Language
and Composition Exam}
\blank[0.25cm]
\startPDTwo
\framed[corner=00,background=color,backgroundcolor=black,
foreground=color,foregroundcolor=white,width=local]{\simplefont[(FONT NAME REMOVED)bold][size=13pt]
SECTION I: Multiple-Choice Questions }
\nextPDTwo
{\simplefont[(FONT NAME REMOVED)bold][size=22pt] \color[darkgray]{2013}}
\stopPDTwo
{\ss\bf DO NOT OPEN THIS BOOKLET UNTIL YOU ARE TOLD TO DO SO.}
\startPageDivision
\setupTABLE[y][first][background=color,backgroundcolor=darkgray,bottomframe=on,topframe=on,framecolor=black,align=middle]
\setupTABLE[first][first][backgroundcorner=3,corner=11,frame=on,toffset=2pt,boffset=2pt]
\setupTABLE[row][last][corner=9,roffset=15pt,boffset=5pt,toffset=5pt]
\bTABLE[align=flushleft,loffset=5pt,roffset=5pt]
\bTR \bTD \simplefont[(FONT NAME REMOVED)bold][size=14pt] At a Glance \eTD\eTR
\bTR \bTD \ssx
\setupinterlinespace[2.2ex]
{\bf Total Time}
\startnarrower[left]
1 hour
\stopnarrower
{\bf Number of Questions}
\startnarrower[left]
21
\stopnarrower
{\bf Percent of Total Grade}
\startnarrower[left]
45\%
\stopnarrower
{\bf Writing Instrument}
\startnarrower[left]
Pencil Required
\stopnarrower
\eTD\eTR
\eTABLE
\PageDivision
{\simplefont[(FONT NAME REMOVED)bold][size=13pt] Instructions}
\setupwhitespace[small]
Section I of this exam contains 21 multiple-choice questions. Fill in only
the ovals for numbers 1 through 21 on your answer sheet.
Indicate all of your answers to the multiple-choice questions on the answer
sheet. No credit will be given for anything in this exam booklet, but you
may use the booklet for notes or scratch work. After you have decided which
of the suggested answers is best, completely fill in the corresponding oval
on the answer sheet. Give only one answer to each question. If you change an
answer, be sure that the previous mark is erased completely. Here is a
sample question and answer.
\startSampleQuestion
\underbar{Sample Question}
~
Chicago is a
\startsqitemize[A,packed,nowhite]
\item state
\item city
\item country
\item continent
\item village
\stopsqitemize
\nextSampleQuestion
\underbar{Sample Answer}
~
\starttikzpicture
\draw (0,0) ellipse (0.25cm and 0.15cm);
\node at (0,0) {\ssx A};
\draw[fill=black] (0.6cm,0) ellipse (0.25cm and 0.15cm);
\node at (0.6cm,0) {\ssx B};
\draw (1.2cm,0) ellipse (0.25cm and 0.15cm);
\node at (1.2cm,0) {\ssx C};
\draw (1.8cm,0) ellipse (0.25cm and 0.15cm);
\node at (1.8cm,0) {\ssx D};
\draw (2.4cm,0) ellipse (0.25cm and 0.15cm);
\node at (2.4cm,0) {\ssx E};
\stoptikzpicture
\stopSampleQuestion
Use your time effectively, working as quickly as you can without losing
accuracy. Do not spend too much time on any one question. Go on to other
questions and come back to the ones you have not answered if you have
time. It is not expected that everyone will know the answers to all of the
multiple-choice questions.
\blank[0.2cm]
{\simplefont[(FONT NAME REMOVED)bold][size=13pt] About Guessing}
Many students wonder whether or not to guess the answers to questions about
which they are not certain. Multiple choice scores are based on the number
of questions answered correctly. Points are not deducted for incorrect
answers, and no points are awarded for unanswered questions. Because points
are not deducted for incorrect answers, you are encouraged to answer all
multiple-choice questions. On any questions you do not know the answer to,
you should eliminate as many choices as you can, and then select the best
answer among the remaining choices.
\stopPageDivision
\page[yes]
\dontleavehmode\blank[3in]
\framed[frame=off,width=5.55in,align=right,loffset=1.55in] {The inclusion of source material
in this exam is not intended as an endorsement by the College Board or ETS
of the content, ideas, or values expressed in the material. The material
has been selected by the English faculty who serve on the AP English
Language and Composition Development Committee. In their judgment, the
material printed here reflects various aspects of the course of study on
which this exam is based and is therefore appropriate to use to measure
the skills and knowledge of this course. }
\page[yes]
\setupfootertexts[\unauth][{\ss\bf GO ON TO THE NEXT PAGE.}][\unauth][{\ss\bf GO ON TO THE NEXT PAGE.}]
\tf
\sectiontitle{I}{1 hour}
\setupinterlinespace[2.5ex]
{\bf Directions:} This part consists of selections from prose works and
questions on their content, form, and style. After reading each passage,
choose the best answer to each question and completely fill in the
corresponding oval on the answer sheet.
{\bf Note:} Pay particular attention to the requirement of questions that
contain the words NOT, LEAST, or EXCEPT.
\inputpassage[passage1]{1-7}{The following passage is excerpted from a 2010
book that examines the computer hacker culture of the late 20\high{th}
century.}
\startcolumns[n=2]
\startitemize[n,packed]
\question{The author’s attitude towards IBM in the passage is one of}%
{ambivalence}%
{disdain}%
{respect}%
{ridicule}%
{solemnness}
\question{In paragraph 5, the author employs all of the following EXCEPT}%
{antithesis}%
{anaphora}%
{apostrophe}%
{personification}%
{simile}
\question{The author uses the image of the rudder in paragraph 8 to
emphasize that}%
{antithesis}%
{anaphora}%
{apostrophe}%
{personification}%
{simile}
\question{The \quotation{white shirts} in line 59 most likely refers to
which of the following?}%
{IBM engineers}%
{IBM headhunters}%
{IBM investors}%
{IBM lawyers}%
{IBM officials}
\question{The primary rhetorical function of lines 1–6 is to}%
{emphasize the unusual nature of the deal with IBM.}%
{emphasize the size and importance of IBM itself}%
{point out that {\em Dark Crystal} was not a big deal.}%
{note the relative youth of On-Line Systems.}%
{imply that IBM and On-Line Systems were equal in power.}
\question{In line 102, the allusion can be inferred as emphasizing On-Line
Systems’s possible future}%
{IBM engineers}%
{IBM headhunters}%
{IBM investors}%
{IBM lawyers}%
{IBM officials}
\question{Which of the following best summarizes the main topic of the passage?}%
{IBM engineers}%
{IBM headhunters}%
{IBM investors}%
{IBM lawyers}%
{IBM officials}
\stopitemize
\stopcolumns
\page[yes]
\inputpassage[passage2]{8-14}{The following passage is excerpted from a 2010
book that examines the computer hacker culture of the late 20\high{th}
century.}
\startcolumns[n=2]
\startitemize[n,packed]
\question{The author’s attitude towards IBM in the passage is one of}%
{ambivalence}%
{disdain}%
{respect}%
{ridicule}%
{solemnness}
\question{In paragraph 5, the author employs all of the following EXCEPT}%
{antithesis}%
{anaphora}%
{apostrophe}%
{personification}%
{simile}
\question{The author uses the image of the rudder in paragraph 8 to
emphasize that}%
{antithesis}%
{anaphora}%
{apostrophe}%
{personification}%
{simile}
\question{The \quotation{white shirts} in line 59 most likely refers to
which of the following?}%
{IBM engineers}%
{IBM headhunters}%
{IBM investors}%
{IBM lawyers}%
{IBM officials}
\question{The primary rhetorical function of lines 1–6 is to}%
{emphasize the unusual nature of the deal with IBM.}%
{emphasize the size and importance of IBM itself}%
{point out that {\em Dark Crystal} was not a big deal.}%
{note the relative youth of On-Line Systems.}%
{imply that IBM and On-Line Systems were equal in power.}
\question{In line 102, the allusion can be inferred as emphasizing On-Line
Systems’s possible future}%
{IBM engineers}%
{IBM headhunters}%
{IBM investors}%
{IBM lawyers}%
{IBM officials}
\question{Which of the following best summarizes the main topic of the passage?}%
{IBM engineers}%
{IBM headhunters}%
{IBM investors}%
{IBM lawyers}%
{IBM officials}
\stopitemize
\stopcolumns
\startalignment[middle]
\ss\bf END OF SECTION I
\stopalignment
\stoptext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment