Error
There was an error loading the page.
Show one of several blocks of text depending on the value of a question variable.
As well as a simple check for the value of a variable, the condition to display a block of text can be a complex expression in any of the question variables - in this example, depending on the discriminant of the generated quadratic.
Metadata
-
England schools
-
England university
-
Scotland schools
Taxonomy: mathcentre
Taxonomy: Kind of activity
Taxonomy: Context
Contributors
History
Mark Eitzel 8 years, 2 months ago
Created this as a copy of Conditional visibility.Name | Status | Author | Last Modified | |
---|---|---|---|---|
Conditional visibility | Ready to use | Christian Lawson-Perfect | 09/12/2019 10:19 | |
Mark's copy of Conditional visibility | draft | Mark Eitzel | 03/02/2017 11:50 | |
Johan's copy of Conditional visibility | draft | Johan Maertens | 20/02/2017 18:59 | |
Adrian's copy of Conditional visibility | draft | Adrian Jannetta | 16/08/2023 14:56 | |
Ed's copy of Conditional visibility | draft | Ed Southwood | 08/08/2022 10:18 | |
Benjamin's copy of Conditional visibility | draft | Benjamin Bui | 16/01/2019 04:02 |
There are 30 other versions that do you not have access to.
Name | Type | Generated Value |
---|
scenario | integer |
3
|
Name | Type | Generated Value |
---|
a | integer |
3
|
||||
b | integer |
1
|
||||
c | integer |
-3
|
Name | Type | Generated Value |
---|
Generated value: integer
- Statement
- "Unnamed part" - prompt
Gap-fill
Ask the student a question, and give any hints about how they should answer this part.
First, this question picks between three scenarios.
This is Scenario 1.
This is Scenario 2.
This is Scenario 3.
Now, consider the quadratic equation
{{a}x2+{b}x+{c}=0}
The discriminant of this equation is {{b}2−4{a}{c}}={b2−4ac}. This is greater than zero, so the equation has two real roots. As this is zero, the equation has one repeated root. This is less than zero, so the equation has no real roots.
Use this tab to check that this question works as expected.
There was an error which means the tests can't run:
Numbas Error: Part a gap 0: The expression defining the choice is not a list.
Part | Test | Passed? |
---|---|---|
Gap-fill | ||
Hasn't run yet | ||
Choose one from a list | ||
Hasn't run yet | ||
Number entry | ||
Hasn't run yet |