Question types in learning and test quizzes.

This quiz illustrates the types of questions you can define in quizzes for learning and testing. The type of the question is determined by the type of the correct answer, that is by the specification of the correct answer in the entry field following the field for the question phrase (in the definition form).

This quiz shows only simple examples of answers. For more advanced answers and hints, see other quiz examples.

This quiz displays this introduction with every re-display of the quiz.

Question number 1 . In the simplest type of question the answer is a scalar, for example a number, a character string or a formula. The answer is specified in the entry field below. For this question the answer is the word sequence ' AbC 1bc. '. Leading and trailing space is ignored here and in the answer; also runs of space characters are regarded as a single character. Try with examples belonging to the types mentioned.
In this type of question an entry field for the answer appears after the question phrase. The length of that field is 30 characters unless otherwise specified further down in the definition form.

Question number 2 . This question type is characterized by an empty bracket in the specification of the correct answer. The correct answer must then be specified in the question phrase, for example [abc] and [ 1234 ] and [ 2+-0.1 ] and [ 1 < @ <= 2 ], which results in entry fields and and and for answers.
Notice the different length of the entry fields.
For this question the type of the answer is an ordered sequence (a vector).

Question number 3 . For this question the correct answer is specified as [ abc ][ 1234 ][ 2+-0.1 ][ 1 < @ <= 2 ][ !qcmath m*c^2 ]. Here. in the question phrase the entry fields for answers are indicated using brackets each containing a number indicating the length of the field, viz. [3] [6] [6] [] [8]:
, , , and .

Here to, the answer is an ordered sequence with elements each placed in its corresponding entry field, for example abc 1234 2.05 2 c*m*c.

Question number 4 . In this question the correct answer is specified as [ Buy ham, cheese and bread ][ The speed of light is infinite ]. This question phrase contains these two brackets containing and . The answerer should alter these two fields so that they become correct.

This question is the last one having answers in the form of an ordered sequence.

Question number 5 . In this question the correct answer is specified as { 3.14+-0.002 }{ m*c^2 }, that is, an unordered sequence with two elements.

Notice that the m*c^2 in this question is not to be regarded as a formula but rather a character sequence, since it starts with a letter. See the next question for formulas in unordered sequences.

Question number 6 . In this question the correct answer is specified with { !qcmath m*c^2 }{ !qcmath b^2 - 4*a*c }. A correct answer could be one of:
b^2-c*a*4 and m*c*c
or:
c^2*m and -4*c*a + b*b

Question number 7 . If the correct answer for a question is a subset the correct answer is specified with a brace as in this example: {.2 proton }{ neutron }{ 1<@<3 }, thus with a punctuation mark and a number just after the left brace. The number indicates the required number of elements in the answer.
The question phrase will be followed by an entry field the width of which is defined for the whole quiz further down in the definition form.

Question number 8 . Questions can be specified answerable by clicking buttons, for example the so-called radio buttons of which only one can be clicked down simultaneously.
The correct answer for such a question must be specified in the appropriate field with a brace containing a lower case letter.
The question phrase must contain braces with lower case letters scattered in the text, for example false true don't know. The letters must be in alphabetic order.

The correct answer to this question is specified to be {b}.

Question number 9 . Instead of radio buttons, see above, a question may contain check box buttons. These must be specified using lower case letters in brackets, like in:
An atom contains protons prions canons neutrons.
The corresponding specification of a correct answer is then [a][d]. Notice that the letters must be in lower case and in alphabetic order in the question phrase as well as the specification of the correct answer.

Notice also that if an answerer simply clicks all check box buttons in a question in a learning quiz the question will be redisplayed with the correct answer. This may not be what you want. Thus, you might prefer to use check box buttons in test quizzes only.

Question number 10 . An important principle in education is to avoid using statements which are dubious or false. One way of doing so is to state questions to be answered with a relation expressed by clicking two (or more) buttons as shown here.

Which two statements are correct together:
y = sin x
y = cos x
y' = sin x
y' = - cos x
y' = - sin x
The correct answer is [b][e].

As stated above, try clicking all the check box buttons and the correct answer will be displayed.

Question number 11 . An alternative to using check boxes in learning quizzes might be to specify the correct answer to a question as being an unordered sequence of letters, for example. Thus the previous question could be rephrased as follows.

Write a letter pair which two statements are correct together:indicating which two statements are correct together:
a: y = sin x
b: y = cos x
c: y' = sin x
d: y' = - cos x
e: y' = - sin x

The correct answer might be specified as { b }{ e }.

This technique can be utilized to ask for multiple combinations:

Question number 12 . This technique can be utilized to ask for multiple combinations like in this question.

Write letter pairs indicating which pairs of statements are correct together:
a: y = sin x
b: y = cos x
c: y' = sin x
d: y' = - cos x
e: y' = - sin x
f: y' = cos x.
The letters in each pair must be in alphabetical order.

Correct answers are, for example af and be or
be and af.

Question number 13 . Another way of asking for correct combinations is illustrated in this question.
Pick with a single click from this list statements matching the following:
y = sin x .
y = cos x .
Insert, with a double click, the picked answer in an entry field.
The entry field for the correct answer contains [].
A list of suggested answers for one or more questions may be placed in the introduction (field in the definition form).

When ready click this button:

Click browsers print option for a copy of this form including your answers.
Optional identification for print: