# Difference between revisions of "Create a calculated question on a test or quiz"

(Created page with "{{Template:Tests and Quizzes}} Category:Tests and Quizzes Category:Instructor Category:Sakai 19 {{Template:Sakai Community Documentation}}") |
Nimangazin (talk | contribs) |
||

(3 intermediate revisions by 2 users not shown) | |||

Line 1: | Line 1: | ||

+ | This allows for a calculated question to be added to a new or existing assessment. A calculated question calculates new answers for every test, based on variables whose value changes each time. The answer is based on a formula, using those variables. | ||

+ | |||

+ | ==Go to '''Tests & Quizzes'''== | ||

+ | [[File:Select the Tests & Quizzes tool from the Tool Menu of your course..png|frame|center]] | ||

+ | |||

+ | Select the '''Tests & Quizzes''' tool from the Tool Menu in your site. | ||

+ | |||

+ | ==Select an assessment== | ||

+ | Questions may be added to any assessment. Select an existing assessment or create a new one. | ||

+ | |||

+ | ''Note: You may also add a question directly to a question pool.'' | ||

+ | |||

+ | ===Create a New Assessment=== | ||

+ | |||

+ | ====Click '''Add'''==== | ||

+ | [[File:Click_Add.png|frame|center]] | ||

+ | For more information on creating new assessments, see [[Create an assessment in Tests and Quizzes]]. | ||

+ | |||

+ | ===Or edit an existing assessment=== | ||

+ | [[File:Or edit an existing assessment.png|frame|center]] | ||

+ | |||

+ | ==Select '''Calculated Question''' from drop-down menu== | ||

+ | [[File:Select Calculated Question from drop-down menu.png|frame|center]] | ||

+ | |||

+ | After selecting '''Calculated Question''' from the drop-down menu, the program will open options for the question. | ||

+ | |||

+ | ==Set the point value for the question== | ||

+ | [[File:Set the point value for the question..png|frame|center]] | ||

+ | |||

+ | Enter the point value for this question. Questions may be worth any point value you choose. | ||

+ | |||

+ | ''Tip: Keep in mind that the point value of all the questions in the assessment will equal the point value of the assessment in the Gradebook. So, if you want your assessment to be worth a total of 100 points, you should assign point values to your questions accordingly.'' | ||

+ | |||

+ | ==Display points?== | ||

+ | [[File:Display points?.png|frame|center|Display points?]] | ||

+ | |||

+ | Do you want students to see the point value as they are taking the test? If so, leave the default setting of '''Yes'''. If you prefer that students do not see the point value for the question, select '''No'''. | ||

+ | |||

+ | ==Add Question Text== | ||

+ | [[File:Add Question Text - calculated.png|frame|center]] | ||

+ | |||

+ | Type the '''Question Text''' into the text box provided. This is the information that the student will see, including the variable and formula placeholders (see examples below). | ||

+ | |||

+ | '''Variables''': Define variables to use in this question below. Reference them in the question text by putting them in single curly braces eg. {x}. Variable names are alpha-numeric but must begin with an alpha character. | ||

+ | |||

+ | Example: Kevin has {x} apples. Jane eats {y}. How many does Kevin have now? <nowiki>{{z}}</nowiki> | ||

+ | |||

+ | '''Formulas''': Place double curly braces (e.g. <nowiki>{{y}}</nowiki> around a formula name, to define where the student's input box will display. Formula names are alpha-numeric but must begin with an alpha character. | ||

+ | |||

+ | Example: Solve: COS({a}) * ({c} - {b}) = <nowiki>{{z}}</nowiki> Formula z would be COS({a}) * ({c}-{b}) | ||

+ | |||

+ | Keep in mind the following: | ||

+ | |||

+ | *You may define acceptable tolerance as a constant (0.01) or percentage (1.5%) of the answer. (Defaults to 0.01.) | ||

+ | *Variables and formulas support decimals. Default is 3. | ||

+ | *Valid Operators: + - * / ^ ! # ( ) | ||

+ | *You can use the following math functions: SIN, COS, TAN, ASIN, ACOS, ATAN, ABS, EXP, SGN, SQRT, LOG10, and LN. | ||

+ | *There are two built-in constants, PI(3.14...) and e(2.718...). Use them in your answer expression. | ||

+ | *Variables and Formulas cannot have the same name. | ||

+ | *See http://mathparser.org/mxparser-math-collection/ for the full set of valid math functions and operators. | ||

+ | |||

+ | ''Note: To edit with Rich-Text Editor, click the hyperlink to open the full menu.'' | ||

+ | |||

+ | ==Click '''Extract Variables, Calculations, and Formulas'''== | ||

+ | [[File:Click Extract Variables, Calculations, and Formulas.png|frame|center]] | ||

+ | |||

+ | Click the '''Extract Variables, Calculations, and Formulas from Question Text''' button to create the variables and formulas. | ||

+ | |||

+ | ==Define ranges of variable values== | ||

+ | [[File:Change the Min, Max, and Decimal Places for all of the variables to define their ranges of valid values.png|frame|center]] | ||

+ | |||

+ | Change the Min, Max, and Decimal Places for all of the variables to define their ranges of valid values. | ||

+ | |||

+ | ==Enter the formula== | ||

+ | [[File:Enter the formula.png|frame|center]] | ||

+ | |||

+ | Enter the mathematical expression for each Formula, inserting the Variables where needed. | ||

+ | |||

+ | ==Add attachment (Optional)== | ||

+ | [[File:Add attachment. (Optional).png|frame|center]] | ||

+ | |||

+ | Click '''Add Attachments''' to browse for and select a file attachment if desired. | ||

+ | |||

+ | ==Assign to part (Optional)== | ||

+ | [[File:Assign to part. (Optional).png|frame|center]] | ||

+ | |||

+ | If you have multiple parts in your assessment, you may assign the question to a different part. | ||

+ | |||

+ | ==Assign to pool (Optional)== | ||

+ | [[File:Assign to pool. (Optional).png|frame|center]] | ||

+ | |||

+ | If you have an existing question pool and would like to copy this question to the pool, select the pool name here. | ||

+ | |||

+ | ==Add feedback for correct answer and/or incorrect answer (Optional)== | ||

+ | [[File:Add feedback for correct answer and-or incorrect answer. (Optional).png|frame|center]] | ||

+ | |||

+ | Feedback is optional text available for the student to review after the particular question is graded. For fill in the blank questions, the feedback option is offered for correct and/or incorrect answers, if desired. | ||

+ | |||

+ | ''Note: To edit with Rich-Text Editor, click the hyperlink to open the full menu. | ||

+ | '' | ||

+ | |||

+ | ==Click '''Save'''== | ||

+ | [[File:Click Save to save the question (or Cancel to exit)..png|frame|center]] | ||

+ | |||

+ | Click '''Save''' to save the question (or '''Cancel''' to exit). | ||

+ | |||

+ | |||

{{Template:Tests and Quizzes}} | {{Template:Tests and Quizzes}} | ||

[[Category:Tests and Quizzes]] | [[Category:Tests and Quizzes]] |

## Latest revision as of 13:49, 21 July 2020

This allows for a calculated question to be added to a new or existing assessment. A calculated question calculates new answers for every test, based on variables whose value changes each time. The answer is based on a formula, using those variables.

## Contents

- 1 Go to
**Tests & Quizzes** - 2 Select an assessment
- 3 Select
**Calculated Question**from drop-down menu - 4 Set the point value for the question
- 5 Display points?
- 6 Add Question Text
- 7 Click
**Extract Variables, Calculations, and Formulas** - 8 Define ranges of variable values
- 9 Enter the formula
- 10 Add attachment (Optional)
- 11 Assign to part (Optional)
- 12 Assign to pool (Optional)
- 13 Add feedback for correct answer and/or incorrect answer (Optional)
- 14 Click
**Save** - 15 More questions about the
**Tests and Quizzes**tool?

## Go to **Tests & Quizzes**

Select the **Tests & Quizzes** tool from the Tool Menu in your site.

## Select an assessment

Questions may be added to any assessment. Select an existing assessment or create a new one.

*Note: You may also add a question directly to a question pool.*

### Create a New Assessment

#### Click **Add**

For more information on creating new assessments, see Create an assessment in Tests and Quizzes.

### Or edit an existing assessment

After selecting **Calculated Question** from the drop-down menu, the program will open options for the question.

## Set the point value for the question

Enter the point value for this question. Questions may be worth any point value you choose.

*Tip: Keep in mind that the point value of all the questions in the assessment will equal the point value of the assessment in the Gradebook. So, if you want your assessment to be worth a total of 100 points, you should assign point values to your questions accordingly.*

## Display points?

Do you want students to see the point value as they are taking the test? If so, leave the default setting of **Yes**. If you prefer that students do not see the point value for the question, select **No**.

## Add Question Text

Type the **Question Text** into the text box provided. This is the information that the student will see, including the variable and formula placeholders (see examples below).

**Variables**: Define variables to use in this question below. Reference them in the question text by putting them in single curly braces eg. {x}. Variable names are alpha-numeric but must begin with an alpha character.

Example: Kevin has {x} apples. Jane eats {y}. How many does Kevin have now? {{z}}

**Formulas**: Place double curly braces (e.g. {{y}} around a formula name, to define where the student's input box will display. Formula names are alpha-numeric but must begin with an alpha character.

Example: Solve: COS({a}) * ({c} - {b}) = {{z}} Formula z would be COS({a}) * ({c}-{b})

Keep in mind the following:

- You may define acceptable tolerance as a constant (0.01) or percentage (1.5%) of the answer. (Defaults to 0.01.)
- Variables and formulas support decimals. Default is 3.
- Valid Operators: + - * / ^ ! # ( )
- You can use the following math functions: SIN, COS, TAN, ASIN, ACOS, ATAN, ABS, EXP, SGN, SQRT, LOG10, and LN.
- There are two built-in constants, PI(3.14...) and e(2.718...). Use them in your answer expression.
- Variables and Formulas cannot have the same name.
- See http://mathparser.org/mxparser-math-collection/ for the full set of valid math functions and operators.

*Note: To edit with Rich-Text Editor, click the hyperlink to open the full menu.*

## Click **Extract Variables, Calculations, and Formulas**

Click the **Extract Variables, Calculations, and Formulas from Question Text** button to create the variables and formulas.

## Define ranges of variable values

Change the Min, Max, and Decimal Places for all of the variables to define their ranges of valid values.

## Enter the formula

Enter the mathematical expression for each Formula, inserting the Variables where needed.

## Add attachment (Optional)

Click **Add Attachments** to browse for and select a file attachment if desired.

## Assign to part (Optional)

If you have multiple parts in your assessment, you may assign the question to a different part.

## Assign to pool (Optional)

If you have an existing question pool and would like to copy this question to the pool, select the pool name here.

## Add feedback for correct answer and/or incorrect answer (Optional)

Feedback is optional text available for the student to review after the particular question is graded. For fill in the blank questions, the feedback option is offered for correct and/or incorrect answers, if desired.

*Note: To edit with Rich-Text Editor, click the hyperlink to open the full menu.*

## Click **Save**

Click **Save** to save the question (or **Cancel** to exit).