
Type: Improvement

Status: Open

Priority: Minor

Resolution: Unresolved

Affects Version/s: 3.5.1

Fix Version/s: None

Component/s: Questions

Labels:None

Affected Branches:MOODLE_35_STABLE
Suggested Improvements
 Add normal distribution as an option for random items in a dataset
 Add probabilistic functions to the available functions
 Permutation with and without repetition
 Variation without repetition
 Combination with and without repetition
Testing
Normal distribution
 Add a new question  question type 'calculated'
 Question text = '{x}'
 Answer formula = '{x}'
 Save changes
 Next Page
 Range of values: select '1' for µ and '0.5' for sigma
 Add 30 new items
 Display all 30 new items
 Make sure the created data sets follow a normal distribution
Add factorial function to the available arithmetic operators
Permutation without repetition
 Create a new question  question type 'calculated'
 Question text = '3! = {x}'
 Answer formula = 'factorial({x})'
 Save changes
 Next Page
 Item to add:
 Wild card = '3'
 Range of Values Minimum = '3'
 Range of Values Maximum = '3'
 Decimal places = '0'
 Distribution = 'Uniform'
 Add 1 Item
 Make sure that Set 1 Wild card {x} = '3' and Correct answer = '6'
 Repeat all steps with question type 'calculated simple'
Permutation with repetition
 Create a new question  question type 'calculated'
 Question text = 'permutation(7 2 3 2) = (7!) / (2!*3!*2!)'
 Answer formula = 'permutation({a}{b}{c}{d})'
 Save changes
 Next Page
 Item to add:
 Wild card {a} = '7'
 Range of Values Minimum = '7'
 Range of Values Maximum = '7'
 Decimal places = '0'
 Distribution = 'Uniform'
 Wild card {b} = '2'
 Range of Values Minimum = '2'
 Range of Values Maximum = '2'
 Decimal places = '0'
 Distribution = 'Uniform'
 Wild card {c} = '3'
 Range of Values Minimum = '3'
 Range of Values Maximum = '3'
 Decimal places = '0'
 Distribution = 'Uniform'
 Wild card {a} = '2'
 Range of Values Minimum = '2'
 Range of Values Maximum = '2'
 Decimal places = '0'
 Distribution = 'Uniform'
 Add 1 Item
 Make sure that Correct answer = '210'
 Repeat all steps with question type 'calculated simple'
Variation without repetition
 Create a new question  question type 'calculated'
 Question text = 'variation(5 2) = 5! / 2!
 Answer formula = 'variation({a}{b})'
 Save changes
 Next Page
 Item to add:
 Wild card {a} = '5'
 Range of Values Minimum = '5'
 Range of Values Maximum = '5'
 Decimal places = '0'
 Distribution = 'Uniform'
 Wild card {b} = '2'
 Range of Values Minimum = '2'
 Range of Values Maximum = '2'
 Decimal places = '0'
 Distribution = 'Uniform'
 Add 1 Item
 Make sure that Correct answer = '60'
 Repeat all steps with question type 'calculated simple'
Combination without repetition
 Create a new question  question type 'calculated'
 Question text = 'bincoeff(4 2)'
 Answer formula = 'bincoeff({a}{b})'
 Save changes
 Next Page
 Item to add:
 Wild card {a} = '4'
 Range of Values Minimum = '4'
 Range of Values Maximum = '4'
 Decimal places = '0'
 Distribution = 'Uniform'
 Wild card {b} = '2'
 Range of Values Minimum = '2'
 Range of Values Maximum = '2'
 Decimal places = '0'
 Distribution = 'Uniform'
 Add 1 Item
 Make sure that Correct answer = '6'
 Repeat all steps with question type 'calculated simple'
Combination with repetition
 Create a new question  question type 'calculated'
 Question text = 'combination(4 2)'
 Answer formula = 'combination({a}{b})'
 Save changes
 Next Page
 Item to add:
 Wild card {a} = '4'
 Range of Values Minimum = '4'
 Range of Values Maximum = '4'
 Decimal places = '0'
 Distribution = 'Uniform'
 Wild card {b} = '2'
 Range of Values Minimum = '2'
 Range of Values Maximum = '2'
 Decimal places = '0'
 Distribution = 'Uniform'
 Add 1 Item
 Make sure that Correct answer = '10'
 Repeat all steps with question type 'calculated simple'