MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: preparing multiple choice questions


Baris Erbas wrote:
> Dear Mathematica Users,
>
> I have been trying to prepare a test of 30 question with multiple choices
> ranging from a-e.
>
> I want to automatically assign the question numbers and and the correct
> answers using mathematica. All correct answers should be in equal quantity,
> i.e. 6 a, 6 b, . 6 e.
>
> I tried to use Random with Table however it doesnt produce equal number of
> correct answers. I also tried to look into the Statistical packages.
>
> Is there a way of doing this in Mathematica?

Part[ Flatten@Table[{"a","b","c","d","e"},{6}],
      Ordering@Table[Random[],{30}] ]


  • Prev by Date: Re: Making a new definition of Equal work with lists as well
  • Next by Date: Re: Re: Questions regarding MatrixExp, and its usage
  • Previous by thread: Re: preparing multiple choice questions
  • Next by thread: Lightweight Structs - Practical Example (Data Types in Mathematica)