Skip to content

bajuba/CanvasQuizBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CanvasQuizBuilder

Build Importable Canvas quizzes in a text file. The file should begin with the title of the quiz. Each section of the quiz is separated by three pound symbols (###) Each quiz in the file must be followed by six pound symbols (######) even if it is the only quiz in the file The sections are as follows:

Quiz Title
Quiz Options
###
Question Title
###
Question Type~Points
###
Question Text
###
Answers
###
Question Correct Feedback
######

Quiz Options:

Quiz options are placed directly under the quiz title. Each option must be on a separate line with the option name, a tilde(~) separator, and then the option value.

Default Option Values
The following are the default values for all changeable quiz options. Any option omitted from the options section in the input file will receive these default values:
description : ""
shuffle : true
scoring : keep_highest
type : assignment
lockdown : false
show_correct : false
anonymous : false
attempts : -1
one_question : false
cant_go_back : false
available : true
one_time_results : false
show_correct_last : false
only_visible_to_overrides : false
module_locked : false

Possible Types:

multiblank = multiple fill in the blank question
multiselect = multiple dropdown question
multichoice = multiple choice question

Question Text:

You can use html directly in your question text. If you need to show the html code within the question you can use pipes(|) before and after an area that html should be shown rather than executed
Example:
|<p style="color:red;">This will show as html code in the question text</p>|
The same text without the pipes will show as:

This will show as html code in the question text

Answers:

Answers are in the following format:
identifier~answer1~answer2~answer3~etc...

multiblank answers:

The identifier matches the blank identifier in the question while each subsequent answer represents a possible correct answer for that blank

multiselect answers:

The identifier matches the dropdown identifier in the question while each subsequent answer represents an option in the dropdown.
The correct answer for multiselect must be the first answer following the identifier. (all quizzes are created with shuffled answers)

multichoice answers:

The identifier is not used but must be present. The first answer must be the correct one while subsequent answers are choices

Feedback:

The feedback will display if a student gets the question correct. Leave this section blank if the question does not require feedback.
Note: The section separator must still be present even without feedback
If a link is included in the feedback, it must be on its own line in the following format:
link text~link address

Example Quiz with all questions represented:

Test Quiz
description~Description Line 1~Line 2~Line 3~Line ...~Line n
shuffle~false
lockdown~true
###
01. Question 1
###
multichoice~3
###
Which of these is traditionally green?
###
1~tree~fire hydrant~television~refrigerator~fox
###
Good job! We all know trees are green all the time forever!
###
02. Question 2
###
multiblank~5
###
[1] are red.
[2] are blue.
[3] is sweet, and so are you!
###
1~roses
2~violets
3~sugar
###
###
Third Question
###
multiselect~2
###
Little Bo-Peep has lost her [1],
And can't tell where to find them;
Leave them alone, and they'll come [2],
Bringing their [3] behind them.
###
1~sheep~dogs~socks
2~home~back~to dinner~over for tea~around
3~tails~babies~lint
###
Check out a full version of the poem:
little bo peep poem~https://www.poetryfoundation.org/poems/46966/little-bo-peep
######

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages