Here are the recommended guidelines to be followed when creating challenges.
- MCChallenges < 20%
- OutputChallenges < 30%
- BlankChallenges at least 50%.
- Limit number of characters per line to 50
- Limit number of lines to 5
- Only the last line of code should generate an output
- Limit number of characters per line to 50
- Limit number of lines to 5
- Limit length of distractors to 9
- Distractors should be 'atomic'
- Single word:
lapply
,my_var
, ... - Single string:
"test"
,""
," "
, ... - Single syntax element:
(
,[
,]
, ... - Example of what's not good:
c("a", "b", "c")
- Single word:
- No extra guidelines.
- Make sure to wrap code elements in code tags.