In this repo the raw quiz data for the vogella Quiz App ist maintained.
Each quiz is assigned to a course category id. The server then assigns a quiz to a course according to the category id and sorts the quizzes according to the course structure.
The name of the yaml file will not be used for the assignment of a quiz to a course or the ordering of the quizzes in a course. Nevertheless for maintenance reasons a prefix of the underlying course should be set upfront. e.g.:
rcp_for the Rich Client Platform courseflutter_for the Flutter courseplugin_for the Eclipse IDE extensions course
The following will give an introduction on how to create a quiz for a category in a course.
- assign the categoryId to which the quiz is for by:
categoryId: **categoryId** - assign a name to the quiz by
name: **name**
questions consist of:
description: the description of the questionchoices: 2 to 4 choices can be defined. For number of choices less than 4, add missing choices asNULLat the end.hint: a hint for user to get the answer, if does not exist then please putNULLexplanation: an explanation for the answer, if does not exist then please putNULLtype: optional,SINGLE_CHOICE(the default when absent) orMULTIPLE_CHOICEcorrectChoice: for single-choice questions, the id of the correct choice, range 0-3correctChoices: for multiple-choice questions, the list of all correct choice ids, e.g.[0, 2], instead ofcorrectChoice
Choice ids are 0-based and must point at a non-empty choice.
A multiple-choice question counts as answered correctly only if exactly the choices in correctChoices are selected.
The app shows it as "select all that apply", so the description does not need to say so.
categoryId: # CategoryId
name: # QuizName
questions:
- description: # Question Description
choices:
- # Choice A
- # Chocie B
- # Choice C or NULL
- # Choice D or NULL
hint: # hint
explanation: # explanation
correctChoice: # choiceId
- description: # Question Description
choices:
- # Choice A
- # Chocie B
- # Choice C
- # Choice D
hint: # hint
explanation: # explanation
correctChoice: # choiceId
- description: # Question Description
choices:
- # Choice A
- # Chocie B
- # Choice C
- # Choice D
hint: # hint
explanation: # explanation
correctChoice: # choiceId
- description: # Question Description
type: MULTIPLE_CHOICE
choices:
- # Choice A
- # Chocie B
- # Choice C
- # Choice D
hint: # hint
explanation: # explanation
correctChoices: # list of choiceIds, e.g. [0, 2]
...