[LON-CAPA-users] Another option question--OOPS

Robley Light lon-capa-users@mail.lon-capa.org
Mon, 10 Oct 2005 17:36:51 -0400

OOPS--hit the send button too soon by mistake.  Following is rest of

In the various option questions, one generates "foils", and can then
randomly select among the foils for the ones to be presented in a problem.

Is there a way to set up a string response question to consist of some
number of string response questions and answers in a similar fashion, so
that a smaller number of questions can randomly be chosen from the longer

For example:

Q. Who was the first US president?  A.George Washington
Q. Who was the second US president?  A.John Adams
Q. Who was the third US president?  A.Thomas Jefferson
Q. Who was the fourth US president?  A.James Madison
Q. Who was the fifth US president?  A.James Monroe
Q. Who was the sixth US president?  A.John Adams
Q. Who was the seventh US president?  A.Andrew Jackson

With the problem pulling randomly from the list?  

I realize one could set up the questions (or  "first", "second", "third",
etc) in one array and the answer in another array and use scripting to do
it, but I was wondering if the "foil" tags could be used somehow to
accomplish something like this.

Robley Light
Robley J. Light                         Professor of Chemistry and
Department of Chemistry          Phone:   (850) 644-3844
   and Biochemistry                   Email:  rlight@chem.fsu.edu  
Florida State University             Fax:      (850) 644-8281
Tallahassee, FL 32306-4390    Home Page: