Skip to content
vogellacompanyPublic

About

Question for learn.vogella.com

Resources

Stars

0 stars

Watchers

4 watching

Forks

Latest commit

 

History

155 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guide to generate a Quiz

Intro

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 course
  • flutter_ for the Flutter course
  • plugin_ for the Eclipse IDE extensions course

The following will give an introduction on how to create a quiz for a category in a course.

Header

  • assign the categoryId to which the quiz is for by: categoryId: **categoryId**
  • assign a name to the quiz by name: **name**

Questions

questions consist of:

  • description: the description of the question
  • choices: 2 to 4 choices can be defined. For number of choices less than 4, add missing choices as NULL at the end.
  • hint: a hint for user to get the answer, if does not exist then please put NULL
  • explanation: an explanation for the answer, if does not exist then please put NULL
  • type: optional, SINGLE_CHOICE (the default when absent) or MULTIPLE_CHOICE
  • correctChoice: for single-choice questions, the id of the correct choice, range 0-3
  • correctChoices: for multiple-choice questions, the list of all correct choice ids, e.g. [0, 2], instead of correctChoice

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.

Template

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]
...

About

Question for learn.vogella.com

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors