Top Banner
Full Mathematical Power In Calculated Questions Through Spreadsheets Moodle Research 2013 [email protected] @hiramglows
15

Full Mathematical Power In Calculated Questions Through Spreadsheets

Jul 13, 2015

Download

Education

Hiram Bollaert
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Full Mathematical Power In Calculated Questions Through Spreadsheets

Full Mathematical PowerIn Calculated QuestionsThrough Spreadsheets

Moodle Research 2013

[email protected] @hiramglows

Page 2: Full Mathematical Power In Calculated Questions Through Spreadsheets

Context• Artesis Plantijn University College Anwerp

• 1st year Professional Bachelors Business Studies

a very heterogeneous group

• Applied Statistics

– collaborate and peer teach live online.

– self-pacing, enabling faster students to advance and help slower students

– spreadsheets to solve the exercises.

– gather learning content from the web.

first line electronic tutor.

[email protected] @hiramglows

Page 3: Full Mathematical Power In Calculated Questions Through Spreadsheets

Calculated Questions in Moodle• Example:

Calculate the area of a rectangle with a base of {base}cm and a height of {height}cm.

• 3 parts:

– Wildcards: {base} & {height}

– Formula: {base} * {height}

– Data Set: {base} = 8 {height}=4{base} = 2 {height}=7{base} = 5 {height}=3… …

[email protected] @hiramglows

Page 4: Full Mathematical Power In Calculated Questions Through Spreadsheets

Published Calculated Questions• Moodle merges the question text with values from

the data set:

Calculate the area of a rectangle with a base of 8cm and a height of 4cm.

• Moodle calculates the result using a given formula and the published values:

Answer: 8 * 4 = 32

[email protected] @hiramglows

Page 5: Full Mathematical Power In Calculated Questions Through Spreadsheets

Very powerful, but…• Moodle understands about 42 mathematical

functions ranging from “+” to “tanh”

• Limits?we managed to get a 1171 characters long formula with nine variables working generating an answer that looks like

“4 years, 7 months and 15 days”

• But…What if you would like to create formulas using statistical functions?

[email protected] @hiramglows

Page 6: Full Mathematical Power In Calculated Questions Through Spreadsheets

Example: The Binomial Distribution

• Calculate the chance of more than 1 but less than 7 successes given there are 8 trials and the chance of success is 18%.

• With a spreadsheet this is easily solved:

BINOMDIST(6 , 8 , 0.18 , true)-BINOMDIST(1 , 8, 0.18 , true)

[email protected] @hiramglows

Page 7: Full Mathematical Power In Calculated Questions Through Spreadsheets

The solution: Moodle XML• Moodle allows EXPORT & IMPORT of XML files

• XML = eXtensible Markup Language = markup language defining a set of rules for encoding documents in a format that is both human-readable and machine-readable.

<question type="calculated"><name><text>bi_tires</text>

</name><questiontext format="html"><text>Sample</text>

</questiontext>

[email protected] @hiramglows

Page 8: Full Mathematical Power In Calculated Questions Through Spreadsheets

Trick {answer}• VBA: extract content from a spreadsheet and

translate into XML

• Introduce new wildcard {answer} and give it the value calculated by a formula of your choice.

PROBLEM

You need to include [answer} in the question text!

(and use {answer} in the formula specified in the definition of the calculated question)

[email protected] @hiramglows

Page 9: Full Mathematical Power In Calculated Questions Through Spreadsheets

• Hide:You can use HTML tags in the question text and thus hide text with comment tags

<!– hidden text -->

Be aware that hidden text is very visible in the page source code

• Camouflage:Place a random set of random numbers in before and after the correct answer

Hide and Camouflage

[email protected] @hiramglows

Page 10: Full Mathematical Power In Calculated Questions Through Spreadsheets

Result

Expect that somebody will explore the page source code.

And if this is not enough, there are more easy tricks to hide away the correct answer.

[email protected] @hiramglows

Page 11: Full Mathematical Power In Calculated Questions Through Spreadsheets

CQ4M Generator• Download this spreadsheet from

https://sites.google.com/site/cq4mgenerator/

[email protected] @hiramglows

Page 12: Full Mathematical Power In Calculated Questions Through Spreadsheets

Regions

[email protected] @hiramglows

Calculation of the correct answer andalternatives

Definition and

preparationof all usedvariables

(wildcards)

Dataset:All values for the

wildcards, answers are multiplied with a ‘disguising’ factor

Camouflaging

Moodle Question Definition

Macro assigned buttons

Moodle Formula Definition

Page 14: Full Mathematical Power In Calculated Questions Through Spreadsheets

• Google Group CQ4M Generatorhttps://groups.google.com/forum/#!forum/cq4m-generator

• Google Site CQ4M Generatorhttps://sites.google.com/site/cq4mgenerator/

• Mail, [email protected], @hiramglows

[email protected] @hiramglows

Comment! Share!

Page 15: Full Mathematical Power In Calculated Questions Through Spreadsheets

[email protected] @hiramglows

Thank you