Creating Tests and Quizzes

Arithmetic, Decimals and Fractions, Prealgebra, Algebra I, Algebra II, Geometry, Trigonometry, Precalculus, Calculus, Discrete Math, Probability and Statistics, etc.
Forum Rules
By using the Wolfram Faculty Program Forum, you agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, or sexually oriented material. Wolfram Faculty Program Forum administrators have the right to remove, edit, move or close any topic at any time should we see fit.

Personal Information: Posts in this forum may be viewed by non-members; however, the forum prohibits non-members from viewing your profile. Although your email address is hidden from both non-members and members, your account is initially configured to allow members to contact you via email through the forum. If you wish to hide your profile, or prohibit others from contacting you directly, you may change these settings by updating your profile through the User Control Panel.

Attachments: Attachments are not currently enabled on this forum. To share a file with others on this site, simply upload your file to the online storage service of your choice and include a link to the file within your post. If your school does not offer an online file storage and sharing service, the following sites provide free basic online file storage and sharing: Mozy, FilesAnywhere, Adrive, and KeepandShare.

Creating Tests and Quizzes

Postby Tasha_Dunaway » Thu Jan 28, 2010 5:12 pm

What simple techniques have you found effective in creating Tests and Quizzes in Mathematica?
User avatar
Posts: 13
Joined: Wed Sep 30, 2009 4:48 pm
Organization: Wolfram Research, Inc.
Department: Sales

Re: Creating Tests and Quizzes

Postby Bruce_Torrence » Wed Feb 17, 2010 1:51 pm

I think the big advantage in using Mathematica for tests and quizzes is the ability to produce graphics. One can double-click the output cell to hide the input code. This makes it a snap to edit the input at a later date to produce a slightly different version (e.g. for a make-up test). There are a few keyboard shortcuts that are also really helpful. For instance, option-return will create a new cell of the same type as the current cell -- terrific for starting a new text paragraph -- and of course, control-9 for typing inline mathematics. I use a stylesheet with "exercise" and "exercisePart" cell styles. These create cells with automatic numbering and indenting. So you can move them around (e.g. to get the page breaks right) and the numbering is always correct.
User avatar
Posts: 2
Joined: Tue Feb 16, 2010 7:46 pm
Location: Ashland, VA USA
Organization: Randolph-Macon College
Department: Mathematics

Re: Creating Tests and Quizzes

Postby James_Hill » Wed Feb 24, 2010 4:22 pm

Yeah, I think making a standard stylesheet would be the way to go, then your format is set and both you and the students ae more comfortable. So, I am on my way to making a stylesheet. Thanks for your question.
User avatar
Posts: 2
Joined: Wed Feb 17, 2010 7:57 pm
Organization: Kingswood Regional High School
Department: Math

Re: Creating Tests and Quizzes

Postby Adam_Caudell » Thu May 20, 2010 1:24 am

I came across a demonstration that had code for a quiz generator, but cannot find it now. Does anyone have a template that they can share that is used to generate multiple versions of tests and quizzes?
User avatar
Posts: 4
Joined: Fri Feb 26, 2010 6:24 am
Organization: Minarets High School
Department: Mathematics

Re: Creating Tests and Quizzes

Postby Kathy_Bautista » Thu May 20, 2010 5:11 am

Adam_Caudell wrote:I came across a demonstration that had code for a quiz generator, but cannot find it now. Does anyone have a template that they can share that is used to generate multiple versions of tests and quizzes?

Hi Adam,

Is this the Demonstration you had seen previously?

Simply click on "Download Source Code Notebook" to download the associated Mathematica notebook, and then you'll be able to customize it for your own classes.

If anyone else has created quizzes or tests in Mathematica and would like to share your template, please post a link.

Katherine Bautista
Senior Academic Program Manager
Wolfram Research, Inc.
User avatar
Site Admin
Posts: 182
Joined: Fri Jul 31, 2009 6:24 pm
Location: Mesa, Arizona
Organization: Wolfram Research, Inc.
Department: Academic Initiatives

Re: Creating Tests and Quizzes

Postby Andrew_Bayliss » Thu Dec 16, 2010 3:24 pm

The code below is a question generator that I have been working on. It creates a graph of a line with two points clearly defined, and asks the student to identify the equation of the line in standard form. It is a multiple choice question where I have defined six possible wrong answers, and randomly grabs three of them. The code makes certain that there shouldn't be any duplicates in the answer set. I also had a hard time making sure +1, or -1 did not show up as a coefficient. In addition there are no double signs in front of the y-variable. The only things I haven't done so far is to identify which is the correct answer, even though I know it is there, and then I would like to include code to write the question & answer to two different notebooks in order to generate a quiz.

Code: Select all
WrongChoices=Complement[{{mtop,-mbot,mtop x2-mbot y2},{mtop,mbot,mtop x2+mbot y2},{mtop,mbot,-(mtop x2-mbot y2)},{mtop,-mbot,-(mtop x2-mbot y2)},{mbot,mtop,mtop x2-mbot y2},{mbot,-mtop,mtop x2-mbot y2},{mbot,mtop,-(mtop x2-mbot y2)},{mbot,-mtop,-(mtop x2-mbot y2)},{mbot,mtop,mtop y2-mbot x2}},{mtop,mbot,mtop x2-mbot y2}];
f[x_]:=m x-m x2+y2;
FormattedAns={StringForm["`` x `` `` y = ``",mtop/.{1->"",-1->"-"},Positive[mbot]/.{True->"+",False->"-"},Abs[mbot]/.{1->"",-1->""},mtop x2-mbot y2],StringForm["`` x `` `` y = ``",Ch[[1,1]]/.{1->"",-1->"-"},Positive[Ch[[1,2]]]/.{True->"+",False->"-"},Abs[Ch[[1,2]]]/.{1->"",-1->""},Ch[[1,3]]],StringForm["`` x `` `` y = ``",Ch[[2,1]]/.{1->"",-1->"-"},Positive[Ch[[2,2]]]/.{True->"+",False->"-"},Abs[Ch[[2,2]]]/.{1->"",-1->""},Ch[[2,3]]],StringForm["`` x `` `` y = ``",Ch[[3,1]]/.{1->"",-1->"-"},Positive[Ch[[3,2]]]/.{True->"+",False->"-"},Abs[Ch[[3,2]]]/.{1->"",-1->""},Ch[[3,3]]]};
DisplayForm[Grid[{{"1.) Find the equation of the line in standard form that passes through the given points and represents the line on the graph below.",SpanFromLeft},{Item[Show[P,P1,P2,L1,L2],Alignment->Center],SpanFromLeft},{StringForm["a.] `` ",Choices[[1]]],StringForm["b.] `` ",Choices[[2]]],StringForm["c.] `` ",Choices[[3]]],StringForm["d.] `` ",Choices[[4]]]}},Alignment->{Left},Spacings->{3,3},ItemSize->13]]

I don't know if you can copy the code and try it, but maybe let me know what you think. Are there any ways I could improve it? A fellow teacher and I are going to be working on making more questions, if any of you have good linear questions, send them to me, & I will see if I can program it.
User avatar
Posts: 7
Joined: Mon Oct 11, 2010 10:36 pm
Organization: Sparta High School
Department: Mathematics

Re: Creating Tests and Quizzes

Postby Tom_DeVries » Fri Feb 04, 2011 1:05 pm

Hi, when I create tests and quizzes this way, I first create one file with the question and answer, then delete the answer cells to create the questions file (for the student). That way, once I grade the test, I can send the student a "complete" file with question, solution, and my comments.

When creating questions, each part of the answer will be created with a cell tag. It's easy, once a test is formed, to search for those cells and delete them.

You can automate this process so Mathematica does the work of assembling a test with a particular "version" number, saving the complete file, deleting the answers, saving it again as a questions only file, then repeat for the number of versions of the test you want.

When creating multiple choice questions, I create the responses, and you can use permutations to scramble these but always know which one is correct.
This works really well if the order of the responses is not critical to the question.

Sorry, I could elaborate more if anyone is interested..

permlist = Permutations[{1, 2, 3, 4, 5}];
num = RandomInteger[{1, 120}];
letteranswer =
Extract[{"A", "B", "C", "D", "E"}, Position[permlist[[num]], 1]][[

I know this kind of sharing be very difficult to do, but I would be very interested in collaborating with other teachers who are using Mathematica in this way to create "generated" tests. As teachers, we all work too hard doing things on our own, it would be great to share the load and broaden our reach without adding more prep time! It would be good encouragement for me to document some of the things I have done, if it meant being able to work together to with other teachers to improve my testing procedures.

Sincerely, Tom De Vries
User avatar
Posts: 13
Joined: Wed Mar 03, 2010 7:43 am
Organization: NorthStar Academy
Department: Mathematics

Return to Mathematics and Statistics (Primary/Secondary)

Who is online

Users browsing this forum: No registered users and 1 guest