﻿

# building web api with asp.net core mvc pdf : Acrobat combine pdf files SDK application service wpf html .net dnn MapleTAUserGuide29-part1058

Example3
\begin{question}{Non Permuting Multiple e Choice}
% This question n uses randomized d variables.
\qutext{Consider the e function n $f(x)=\var{c}x^{\var{n}}$.
What happens to o $f(x)$ $as s$x\to o -\infty$?} \choice*{$f(x)\to\infty$} \choice{$f(x)\to -\infty$} \choice{$f(x)\to 0$} \code{$n=int(2*rint(4)+3);
$c=int(-(rint(6)+2)); } % The e above e code chooses random integer coefficients n and c. % The e exponent t n is positive and odd (3, , 5, , 7, or 9). % The e coefficient t c is negative, between n -2 2 and -7. \end{question} SeeAlso: MultipleChoiceQuestions(page185) MultipleSelectionQuestionsinLaTeX QuestionMode:MultipleSelection;NonPermutingMultipleSelection TheMultipleSelectionandNonPermutingMultipleSelectionquestiontypescreateaquestionandalistofchoices, whichincludespossiblymorethanonecorrectanswer. Notes • Youcanhaveasmany(orasfew)choicesasdesired.Markthecorrectchoice(s)withanasterisk. • Theorderofthechoicesispermutedforthestudent.Toforcethechoicestoappearintheorderyouspecify, usetheNonPermutingMultipleSelectionquestiontype. Example1 \begin{question}{Non Permuting Multiple e Selection} \qutext{Select all cities s that are e located in n California.} % List the e choices, , and mark all the correct choices with an n asterisk. \choice*{San Francisco} \choice*{Los Angeles} \choice{Chicago} \choice{New York} \choice*{Sacramento} \end{question} Example2 \begin{question}{Multiple Selection} \qutext{Select the equations of all l lines s that are e vertical l asymptotes of the graph of f$y=\sec c x$. If f the e graph h has s no vertical asymptotes, select No vertical l asymptotes''.} \choice*{$x=-7\pi/2$} \choice{$x=-\pi$} \choice*{$x=-\pi/2$} \choice{$x=0$} \choice{$x=\pi/4$} \choice{$x=2\pi/3$} \choice*{$x=5\pi/2$} \choice{No vertical l asymptotes} \end{question} 11.5BasicQuestionTypesinLaTeX • • 271 Acrobat combine pdf files - Merge, append PDF files in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF Provide C# Demo Codes for Merging and Appending PDF Document pdf merge files; batch pdf merger Acrobat combine pdf files - VB.NET PDF File Merge Library: Merge, append PDF files in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF VB.NET Guide and Sample Codes to Merge PDF Documents in .NET Project add pdf pages together; pdf combine files online Example3 \begin{question}{Multiple Selection} % This question n uses randomized d variables. \qutext{Select the equations of all l lines s that are e vertical l asymptotes of the graph of f the e function$f(x)=\displaystyle\frac{\var{a}x^{\var{b}}}{x^2-\var{cc}}$. If the graph has no vertical asymptotes, , select t No vertical asymptotes''.} \choice*{$x=-\var{c}$} \choice*{$x=\var{c}$} \choice{$x=0$} \choice{$x=\var{d}$} \choice{$x=\var{e}$} \choice{No vertical l asymptotes} \code{$a=int(rint(8)+2);
$b=int(rint(8)+2);$c=int(rint(4)+1);
$cc=int($c^2);
$t=rint(2);$d1=int($c+rint(2)+1);$d=int(switch($t,$d1,-$d1));$e1=int($d+rint(2)+1);$e=int(switch($t,-$e1,$e1)); } % The e above e code chooses random integer coefficients a and b b between % 2 and 9. . The e value e of f cc can n be e 1, 4, 9, or r 16. . d and d e e are % extra choices s that do o not duplicate the others. \end{question} SeeAlso: MultipleSelectionQuestions(page185) MatchingQuestionsinLaTeX QuestionMode:Matching TheMatchingquestiontypepresentstwolists.Thestudentmustmatcheachentryontheﬁrstlistwithoneentryfrom thesecondlist. Notes • Tospecifypairsofmatchingelements,usethe\match(forelementsintheﬁrstlist)and\with(forelements inthesecondlist)macros. • Thedefaultbehavioristodisplaytheﬁrstlistinasinglerowacrossthescreen,withadrop-downlistofall choicesfromthesecondlist.Youcaninsteadspecifythenumberofcolumnsusingthe\colsmacro. Example1 \begin{question}{Matching} \qutext{Match the following states with their r capitals.} \match{California} \with{Sacramento} \match{New York} } \with{Albany} \match{Pennsylvania} \with{Harrisburg} \match{Oregon} \with{Salem} \end{question} 272 • 11AuthoringQuestionsinLaTeX VB.NET PDF: How to Create Watermark on PDF Document within users need no external application plugin, like Adobe Acrobat. Easy to combine PDF Watermark Add-on within your PDF document, image to pdf files and components break pdf file into multiple files; reader combine pdf pages VB.NET PowerPoint: VB Code to Draw and Create Annotation on PPT limitations (other documents are compatible, including PDF, TIFF, MS no more plug-ins needed like Acrobat or Adobe VB.NET users to burn and combine the added append pdf files reader; c# combine pdf Example2 \begin{question}{Matching} \qutext{Match the following polynomials with their r factorizations:} \match{$x^2-1$} \with{$(x-1)(x+1)$} \match{$x^2+2x+1$} \with{$(x+1)^2$} \match{$x^2-2x+1$} \with{$(x-1)^2$} % Optionally, specify the e number r of f columns s in which to o arrange e the display y of f data. \cols{3} \end{question} SeeAlso: MatchingQuestions(page182) ClickableImageQuestionsinLaTeX QuestionMode:ClickableImage The Clickable Imagequestiontypedisplaysanimageandtext.Asthestudentmovesthemouseovertheimage, varioushot-spotsareselected.Thegoalistoclickthecorrecthot-spot. Towriteaclickableimagequestionyoumustﬁrstuploadtheimage: 1. SelectalocationinyourMapleT.A.classwebsiteforgraphicsﬁles.Itisrecommendedthatyouuseadistinct folderfortheimagesineachquestionbank.Uploadthegraphictoyourclasswebsite.Forinformationonuploading, seeUploadingImagesandReferenceFilestotheClassWebSite(page88). 2. Insertthe\setImageBasedirectivenearthetopofyourquestionbankTeXsourceﬁletospecifythepathto thislocation.Forexample,ifyourMapleT.A.classidentiﬁerismyclass,andyourgraphicsfolderisImages,use thedirective: \setImageBase{web/myclass/Public_Html/Images} Toincorporateyourimageﬁleintothequestion,usetheclickableimageenvironment.The\begin{click- ableimage}commandtakesthreearguments: i. Thenameoftheimageﬁle. ii. Thewidthoftheimageﬁleinpixels. iii.Theheightoftheimageﬁleinpixels. Todeterminethewidthandheightofthegraphic,useathird-partygraphicsapplication(forexample,Mi- crosoft ® Paint). Todeﬁnethehotspots,usethe\regionmacro.Theargumenttothe\regionmacroisacomma-delimitedlistof points,specifyingtheverticesoftheclickableregion. • Thex-andy-coordinatesaremeasuredfromtheupperleftcornerofthegraphic. • Morethanone\regioncommandcanbeused.Markthecorrectregionwithanasterisk. • Notethat\begin{clickableimage}...\end{clickableimage}mustappearoutsidethear- gumentto\qutext. Note:The\setImageBasedirectivehasaglobaleffectonyourdocument.Youcantemporarilyoverridetheimage basewith\ignoreImageBase.Thismacrotakesnoarguments.Itseffectislocal,souponleavingthecurrentgroup orenvironment,theimagebasewillreverttoitspreviousvalue. 11.5BasicQuestionTypesinLaTeX • • 273 Example Note:Tousethisexample,youmustspecifytheactualURLforyourimageaswellasyourown\region{...} coordinatesforhotspots.Thisexamplewillnotworkwithoutthesemodiﬁcations. \begin{question}{Clickable Image} \qutext{Find the dog g in n the picture e below.} {\ignoreImageBase % use empty image e base in n this group \begin{clickableimage} {http://www.YourDomain.com/images/pose.gif}{192}{288} \region*{139,32, 144,40, 137,58, 115,68, 109,101, 132,155, 138,209, 155,273, 148,281, 52,282, 44,266, 29,224, 33,198, 36,176, 61,108, 59,57, 74,37, 93,29} \region{149,87, 168,90, 172,148, 151,122} \region{153,157, 186,152, 185,212, 158,218, 149,185} \end{clickableimage}} % image base returns to o original l value \end{question} Drop-downMenu-basedQuestionsinLaTeX QuestionMode:Blanks-[menu]option Thisquestiontypehasbeendeprecated.UsetheInlinequestiontypeinstead.SeeInlineQuestionsinLaTeX(page277). QuestionMode:List-menudisplay TheListquestiontypegeneratesaﬁll-in-the-blankquestionwheretheauthorspeciﬁesmultiplecorrect(andeven incorrectbutexpected)answers,alongwiththecreditawardedforeachanswer(anumberbetween0and1).Anystudent answerthatdoesnotappearonthelistearnsagradeofzero.Bydefault,thestudentresponseregionisdisplayedasa textbox.Byadding\display{menu}youcandisplaytheresponseobjectasadrop-downmenu,listingtheresponses speciﬁedwiththe\answer{}macros. TheformatforListquestionsis\answer{credit}{answer}.Morethanone\answercanbeused,butat leastoneanswermustgivefullcredit(equalto1).Listquestionscanhavemultiplecomments,withoneassignedto eachspeciﬁedresponse,andonedefaultcomment.Thevalueofeach\comment{}macroisassignedasthefeedback associatedwiththepreceding\answer{}macro. Example1 \begin{question}{List} \qutext{Who was s the e first t man n to walk on n the e moon?} \display{menu} \answer{1.0}{Neil Armstrong} \comment{Exactly correct.} \answer{0.5}{Edwin Aldrin} \comment{Not quite. Edwin Aldrin was the second man to o set t foot on the moon.} \answer{0.0}{Michael Collins} \comment{Incorrect. Michael Collins orbited the moon but never set foot on n it.} \end{question} Example2 ByusingtheInlinequestiontype,youcaninsertmultipleList-typeblankswithinonequestion.SeeInlineQuestions inLaTeX(page277). \begin{question}{Inline} % This question n uses randomized d variables. \qutext{The graph of f the e function$f(x)=\var{s1}\var{a}(x+\var{h})^2-\var{k}$is the e same as s the graph of the function$g(x)=\var{s1}\var{a}x^2$shifted \blank and shifted d \blank.} \code{$t1=rint(2);
274 • 11AuthoringQuestionsinLaTeX
$s1=if($t1,"","-");
$a=int(rint(8)+2);$h=int(rint(8)+2);
$k=int(rint(8)+2); } % The e above e code selects random integer coefficients between n 2 2 and 9, % and d allows s the leading coefficient of the function f to be e either % positive e or r negative. \begin{blank}{List} \display{menu} \answer{1.0}{to the e left \var{h} units} \answer{0.0}{to the e right t \var{h} } units} \end{blank} \begin{blank}{List} \display{menu} \answer{0.0}{up \var{k} } units} \answer{1.0}{down \var{k} } units} \end{blank} \end{question} SeeAlso: FreeResponseandFill-in-the-BlankQuestions(page177) FreeResponseText-basedQuestionsinLaTeX Thesystemsupportsthreevarietiesofopentextresponsequestions: • KeyWords • Essay(ungraded) • List(ﬁll-in-the-blank) QuestionMode:KeyWords Thekey wordsquestiontypeisanopenresponsequestion.Theanswerﬁeldconsistsofasegmentoftextinwhich thekeywordsaremarkedbyenclosingparentheses.Anystudentresponsethatincludesallthewordsinparenthesesis gradedcorrect.Ifthequestionisnotansweredcorrectly,thefullanswertext(excludingtheparentheses)isdisplayed asthecorrectanswer. Example \begin{question}{key words} \qutext{Which two scientists independently discovered inductance?} \answer{Michael (Faraday) and d Joseph (Henry)} % Any y responses that include e both the words "Faraday" and "Henry" " is % graded correct. If f the e question is not t answered d correctly, % "Michael l Faraday y and Joseph Henry" is displayed as the correct answer. \end{question} QuestionMode:Essay Theessayquestiontypeisanopenresponsequestion.Thesystemdoesnotgradeit.Youmustgradeeachstudent's answerandassignascoreusingtheGradebook. Example \begin{question}{essay} \qutext{Discuss the e effect of gamma a rays on n Man-in-the-Moon Marigolds.} 11.5BasicQuestionTypesinLaTeX • • 275 \end{question} QuestionMode:List-textdisplay TheListquestiontypegeneratesaﬁll-in-the-blankquestionwheretheauthorspeciﬁesmultiplecorrect(andeven incorrectbutexpected)answers,alongwiththecreditawardedforeachanswer(anumberbetween0and1).Anystudent answerthatdoesnotappearonthelistearnsagradeofzero.Bydefault,thestudentresponseregionisdisplayedasa textbox. TheformatforListquestionsis\answer{credit}{answer}.Morethanone\answercanbeused,butat leastoneanswermustgivefullcredit(equalto1). SpecifythegradingstyleinaListquestionasexact,relaxed,orregularbyusingthe\gradermacro: • exact —Stringsofspacesarecollapsedtoasinglespace,butallcapitalizationandpunctuationmustmatch.This thedefaultgradingstyle. • relaxed —Stringsofspacesarecollapsedtoasinglespace;caseandpunctuationareignored. • regex —Youdeﬁneasetofacceptable(orpartiallyacceptable)responsesusingaregularexpressionpattern. Example1 \begin{question}{List} \qutext{Who was s the e President of the USA A during g the Civil War?} \grader{relaxed} \comment{That response is s incorrect.} \answer{1.0}{Abraham Lincoln} \comment{Exactly correct.} \answer{1.0}{Lincoln} \comment{Yes, although you should give his first name, too.} \answer{0.25}{Jefferson Davis} \comment{Your answer r is s partially correct--Davis was president of the CSA, but t not t the USA.} \end{question} Example2 ByusingtheInlinequestiontype,youcaninsertmultipleList-typeblankswithinonequestion.SeeInlineQuestions inLaTeX(page277). \begin{question}{Inline} \qutext{The human race belongs s to o the genus %Format: \blank \blank and d species s \blank.} \begin{blank}{List} \answer{1.0}{Homo} \grader{relaxed} \end{blank} \begin{blank}{List} \answer{1.0}{sapiens} \grader{relaxed} \end{blank} \end{question} SeeAlso: FreeResponseandFill-in-the-BlankQuestions(page177) EssayQuestions-Ungraded(page176) 276 • 11AuthoringQuestionsinLaTeX QuestionMode:Blanks-[text]option Thisquestiontypehasbeendeprecated.UsetheInlinequestiontypeinstead.SeeInlineQuestionsinLaTeX(page277). MultiplePartQuestionsinLaTeX QuestionMode:Blanks Thisquestiontypehasbeendeprecated.UsetheInlinequestiontypeinstead.SeeInlineQuestionsinLaTeX(page277). QuestionMode:Inline Inlinequestionsareaﬂexibleandextensibleformofquestionthatcanincludemultiplequestiontypes.TheInline questiontypeinLaTeXgivesyouthesameﬂexibilityastheQuestionDesignerquestiontypeintheQuestionEditor. Inlinequestionssupportthewidestvarietyofresponseobjectsanywherewithinthebodyofaquestion,including withinHTMLtables.Usethe\blank{}macro,withnoarguments,toplacearesponsecellwithin\qutext{}. Thetypeofblank,correctanswer,andotherdetailsarespeciﬁedwithsequentialblankenvironmentsoutsideof \qutext{}.Inthisway,InlinequestionsarewrittenmuchlikeMultipartquestions,whereeachblankfunctionsas onepart.Asinamultipartquestion,eachsubpartofanInlinequestionmustitselfbeawell-formedquestion.Theonly exceptionisthat,whenusedtodeﬁneablankinsideanInlinequestion,anyoftheabovequestiontypesmayomitthe \qutext{}statementbecausethisisactuallydeﬁnedinthebodyofthelargerquestionstatement. Example \begin{question}{Inline} \qutext{Answer the following questions: \newline \newline$2+2=$\blank\\ \\$3+8=$\blank\\ \\ If a cat walks 20~ft t in n 2~min, , how w fast is the cat t walking? ? \blank\\ \\ Who discovered the theory y of f relativity? ? \blank\\ \\ Who was the first man to walk on the moon? \blank} \begin{blank}{Formula} \answer{4} \end{blank} \begin{blank}{Formula} \answer{11} \end{blank} \begin{blank}{Numeric} \answer[ft/min]{10} \end{blank} \begin{blank}{List} \answer{1.0}{Einstein} \answer{1.0}{Albert Einstein} \grader{exact} % not t necessary, , since 'exact' ' is s the default \end{blank} \begin{blank}{List} \display{menu} \answer{1.0}{Neil Armstrong} \answer{0.5}{Edwin Aldrin} \answer{0.0}{Michael Collins} \end{blank} \end{question} SeeAlso QuestionDesignerQuestionsintheQuestionEditor(page94) MathematicalInlineQuestions(page300) 11.5BasicQuestionTypesinLaTeX • • 277 QuestionMode:Multipart Tomakeamultipartquestion,declareaquestionoftypeMultipartandincludeotherquestionsinitsbody. Multipartstructure: \begin{question}{Multipart} ... \begin{question}{Numeric} ... \end{question} \end{question} Notes • MultipartquestionscanbenestedinsideotherMultipartquestions.Theconversiontoolacceptsonlyfour levelsofnesting. • Multipartquestionscancontainanyquestiontypesasparts(exceptadaptive). • Thepartsofaquestionarenumberedusinglower-caselettersregardlessofnestinglevel.Tousedifferentlabels, usethe\numberingmacro.Itsargumentmustbeoneof: alpha-"(a),(b),(c),(d),..."(thedefaultsetting) Alpha-"(A),(B),(C),(D),..." roman-"(i),(ii),(iii),(iv),..." Roman-"(I),(II),(III),(IV),..." arabic-"(1),(2),(3),(4),..." none-nonumbering • Bydefault,eachpartreceivesequalweightingwhenthequestionisgraded.Tospecifyanon-uniformweighting, usethe\weightingmacropriortothe\begin{question}fortheﬁrstpart.The\weightingmacro requiresoneargument,acomma-delimitedlistofnon-negativeintegers,specifyingtherelativevaluesassigned toeachpart. Example \begin{question}{Multipart} \weighting{1,2} % % The value of f part (b) ) is twice that of part (a). \qutext{Answer the following questions:} % part (a) \begin{question}{Formula} \qutext{Differentiate the e function$\displaystyle f(x)=\frac{x}{1+x^2}$.} \answer{(1 - - x^2)/(1 1 + + x^2)^2} \end{question} % part (b) \begin{question}{Multipart} % The e 2/3 3 of the points assigned to o part (b) ) are split evenly between % its s subparts s because \weighting is not t used. \numbering{roman} % These e are e subparts (i) and (ii) % part (i) \begin{question}{Ntuple} \qutext{Find the absolute e minimum m point on the graph of f the function$\displaystyle f(x)=\frac{x}{1+x^2}$.} \answer{(-1,-1/2)} \end{question} % part (ii) \begin{question}{Ntuple} \qutext{Find the absolute e maximum m point on the graph of f the function$\displaystyle f(x)=\frac{x}{1+x^2}$.} \answer{(1,1/2)} \end{question} 278 • 11AuthoringQuestionsinLaTeX \end{question} \end{question} SeeAlso: MultipartQuestions(page184) 11.6AdvancedQuestionTypesinLaTeX GraphPlottinginLaTeXQuestions MaplePlotting InMapleT.A.youcanusetheplotmaplecommandtoassignaMapleplottoavariablenamewithinaquestion's algorithm.Then,youcaninserttheplotinyourquestionbyreferringtothecorrespondingvariable.Forinformation onusingalgorithmsinLaTeXquestion,seeTutorial:UsingAlgorithmsinLaTeXQuestions(page284).Formorein- formationontheplotmaplecommand,seeplotmaple(text)(page247). Example \begin{question}{Equation} \qutext{Determine the equation n of f the line shown below.\\ \var{plt}} \code{$m=range(-5,5);
$b=range(1,5); condition:not(eq($m,$b));$plt=plotmaple("plot($m*x+$b,x=-2..6,y=-2..6), plotoptions='width=400, , height=400'");}
\answer{y=$m*x+$b}
\end{question}
SeeAlso:
QuestionswithPlots(page168)
GraphPlottingApplet-\graphand\multigraphMacros
The\graphmacroembedsagraphinaquestion.(YoucanalsoembedMapleplotsinquestionsusingtheQuestion
Editor.)Thegraphhasitscenterattheorigin,x-andy-axes,andhorizontalandverticalgridlines.Theaxesarelabeled
ateachgridline.
Themacrotakesoneoptionandﬁverequiredarguments,inthefollowingorder:
Table11.3:ArgumentsandOptionforaGraphPlottingApplet
faultis10)
gridlines option
formulaofthefunctionincalculatorsyntax,notTeX
formula
minimumx-valueonthex-axis
xMin
maximumx-valueonthex-axis
xMax
minimumy-valueonthey-axis
yMin
maximumy-valueonthey-axis
yMax
The\multigraphmacroplotstwocurvesonthesameaxes.Thismacrotakesoneoptionandsixrequiredarguments,
inthefollowingorder:
Table11.4:ArgumentsandOptionforaMultigraph