<b>Level 3 Physics Waves</b>
<figure><img src="images/fibre optics.jpg" alt="optical fibre" style="width:320px;height:212px">
Here are the revision quizzes. You can ''retake'' them for some different questions!
(set: $m to "Less time")
(display: "Menu")
<!-- $test is true = display test mode and qu. numbers for editing-->
(set: $test to false)(if: $test is true)[''----Test mode----'']
(set: $difficulty to 1)
(set: $countdwnStyle to (text-style: "bold") + (text-colour: "crimson") )Choose a quizz:
[[Physics formulae]]
[[Multichoice questions->Multichoice questions]]
[[Physics ideas in exam questions]]
<!--[[Physics ideas]] -->
<small>//*Adjust the time you have to answer questions --> //[//$m//]<moreLess|</small>
(click-replace:?moreLess)[(if: $m is "Less time")[Ok, you will have less time.(set:$m to "More time")(set:$difficulty to 0.5)](else:)[Ok, you will have more time(set:$m to "Less time")(set:$difficulty to 1)]]
<!-- $randPic is used in passages to display a different image for the same text-->
(set: $randPic to (random: 1,3) )These formulae will be given to you in the exam.
<figure><img src="images/formulae.jpg" alt=" waves formulae" style="width:545px;height:67px">
</figure>
However, you need to understand the equations so that you can use them properly.
This is a ''5'' question quiz.
[[Begin->QFormula questions start]]This is a ''10'' question quiz.
Repeat the quizz for some different questions
[[Begin->MultQuestions start]]Explaining Physics ideas takes practice. But, like anything it gets easier with practice.
//You can get more clues in this quiz if you need them.//
This is a 5 question quiz
[[Begin->Guess start]]
<!-- -->If you can recognize the (text-style: "underline")[main] physics idea in a question, then it helps you answer the question. Some past exam level questions are used in this quiz.
This is a ''5'' question quiz
[[Begin->QExam start]]{
<!-- -->
<!-- _temp length = the total number of quiz qu.s available
(set: $quizzTotal to 5) = the quiz length. $quizzTotal is used in the correspondg timer and quizEnd(for the scoring) -->
(set: $quizzTotal to 5)
(set: _temp to (array: "1","2","3","4","5","6","7","8","9","10","11","12","13") )
<!--Initial sets for questions -->
<!--$defaultTime is set to 30s below, multiplied by $difficulty -->
(set: $score to 0)
(set: $quizTimer to "QF Multichoice Timer")
(set: $quizEnd to "QFEnd")
(set: $defaultTime to (30*$difficulty))
(set: $spStyle to (text-colour: "RoyalBlue "))
(set: $scoreStyle to (text-style: "italic") + (text-colour: "Limegreen"))
(set: $errorStyle to (text-colour: "darkred") )
(set: $correctStyle to (text-style: "bold") + (text-colour: "Lime") )
<!-- Randomise the order of the quiz questions-->
(set: $qusOrder to (shuffled:..._temp) )
(set: $qusOrder to (altered: _qu via "QF" + _qu, ...$qusOrder) )
<!-- Outputs:
$quTotal is the total number of quiz questions
$qusOrder is the order of the quiz questions and will be used to point to the next question link
$quCount is the count for the number of questions that will have been asked and is also used by MultichoiceTimer to find the next question link
$qusOrder's $quCount will be used to point to the first quiz question
In the Questions following the first entry of $answerComments is the correct answer
-->
(set: $quCount to 1)
(goto: $quizTimer)
<!-- -->
}{
<!--Display question and any images, get inputs $answerComments, $timeLeft -->
}
(display: $qusOrder's $quCount)
{
<!--Multichoice -->
(set: $correctAns to $answerComments's 1st)
(set: $correctComm to $answerComments's 2nd)
(set: $answerOrder to (shuffled: 1,3,5,7) )
(set: $ans to $answerOrder's 1) (set: $comm to $ans +1)
(set: $answer1 to $answerComments's $ans)
(set: $comment1 to $answerComments's $comm)
(set: $ans to $answerOrder's 2) (set: $comm to $ans +1)
(set: $answer2 to $answerComments's $ans)
(set: $comment2 to $answerComments's $comm)
(set: $ans to $answerOrder's 3) (set: $comm to $ans +1)
(set: $answer3 to $answerComments's $ans)
(set: $comment3 to $answerComments's $comm)
(set: $ans to $answerOrder's 4) (set: $comm to $ans +1)
(set: $answer4 to $answerComments's $ans)
(set: $comment4 to $answerComments's $comm)
}
{
<!--Display Multichoice links -->
<p style="font-size:10%;"></p> <!--reduce <p> spacing between sections-->
Choose your answer:<br>
(if: $answer1 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer1)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]] $errorStyle[$comment1] ] ] }
{(if: $answer2 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer2)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]] $errorStyle[$comment2] ] ] }
{(if: $answer3 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer3)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]]$errorStyle[$comment3] ] ] }
{(if: $answer4 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer4)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]]$errorStyle[$comment4] ] ]
}
{
<!--timer -->
<!--Timer sets -->
(if: $timeLeft is 0)[(set: $timer to false)](else:)[(set:$timer to true)]
(set: $decisionMade to false)
(if: $timer)[
(live: 1250ms)[
(if: $decisionMade is true)[(stop:)]
(else:)[
(set: $timeLeft to $timeLeft - 1)
(replace: ?warningmessage)[You have $timeLeft seconds left to make your choice.]
]
(if: $timeLeft <= 0)[(goto: "outoftime")]
]
]
<br> <!-- <p style="font-size:60%;"> </p> reduce <p> spacing between sections-->
(if: $timer)[[You have $timeLeft seconds left to make your choice.]<warningmessage| ]
(else:)[ []<warningmessage| ]
<br>
[$scoreStyle[Score: $score]]<decision|
<!-- $quizzTotal is the length of the quiz set in start, added to end-->
(click: ?correctAnswer)[
(set: $decisionMade to true)
(set: $score to $score + 20)
(replace: ?correctAnswer)[ $correctStyle[$correctComm]]
(replace: ?decision)[$scoreStyle[Score: $score ]]
(replace: ?warningmessage)[$correctStyle[(display: "correct fdbk")]
]
(live:2.0s)[
(set: $quCount to $quCount + 1)
(set: $timeLeft to 0)
(if: $quCount > $quizzTotal)[(goto: $quizEnd)]
(else:)[(goto: $quizTimer)]
]
]
}Congratulations - You completed the Formula topics quiz!
{
<!-- from the corresponding timer: the number of qus is a random selection of qutotal - 6 qus (if: $quCount > $quTotal-6)[(goto: $quizEnd)]; this needs to be adjusted in the QExam quizEnd also for total possible score.-->
(set:_totalPossible to $quizzTotal*20)
$scoreStyle[Final Score: $score out of _totalPossible]
}
(link-goto: "Return to menu", "Menu"){(if: $test is true)[1]
<!--doppler effect -->
<!-- Display question Q: and any image -->
//View the diagrams and formula below//
<figure><img src="images/doppler.jpg" alt="doppler effect" style="width:425px;height:256px">
</figure>
Q: //Fill in the blanks by comparing the diagrams://<br>
In the (text-style: "underline")[right] diagram, Vs is $spStyle[_____] and Vw is $spStyle[_____].}{
<!-- -->
(set: $answerComments to (array:
"greater, unchanged",
"greater, unchanged",
"greater, greater",
"greater, greater",
"less, unchanged",
"less, unchanged",
"unchanged, greater",
"unchanged, greater"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[2]
<!--doppler formula -->
<!-- Display question Q: and any image -->
<figure><img src="images/doppler formula.jpg" alt="doppler effect" style="width:250px;height:101px">
</figure>
Q: //In the formula above//, ''Vs and Vw'' (either: "represent", "are", "indicate") the (either: "velocities", "speeds") of the $spStyle[_____] and the $spStyle[_____] in the medium.}{
<!-- -->
(set: $answerComments to (array:
"moving wave source, wave velocity",
"moving wave source, wave velocity",
"stationary observer, wave velocity",
"stationary observer, wave velocity",
"moving observer, velocity of the source",
"moving observer, velocity of the source",
"stationary observer, greater velocity",
"stationary observer, greater velocity"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[3]
<!--diffraction formula approx -->
<!-- Display question Q: and any image -->
<figure><img src="images/approx-formula.jpg" alt="diffraction x/L" style="width:165px;height:114px">
</figure>
Q: The formula above is used (text-style: "underline")[''only if''], (either: "the value x/L", "the angle measured from the middle of the diffraction grating to the point on the screen") is ?}{
<!-- -->
(set: $answerComments to (array:
"very small",
"very small",
"given",
"given",
"less than 90 degrees",
"less than 90 degrees - x/L is a distance",
"large",
"large"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}
{(if: $test is true)[4]
<!--diffraction formula approx -->
<!-- Display question Q: and any image -->
//View the diagram and formula below//
<figure><img src="images/dsintheta-diagram-blanks.jpg" alt="diffraction approx. formula" style="width:400px;height:319px">
</figure>
Q: Above, d, x and L are given in the (text-style: "underline")[diagram] as $spStyle[__], $spStyle[__] and $spStyle[__] respectively.}{
<!-- -->
(set: $answerComments to (array:
"A,C and B",
"A,C and B",
"A,B and C",
"A,B and C",
"B,C and A",
"B,C and A",
"C,A and B",
"C,A and B"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[7]
<!--diffraction qu -->
<!-- Display question Q: and any image -->
//View the question and formulae below//
<figure><img src="images/q2b_TK16_2.jpg" alt="diffraction picture" style="width:620px;height:300px">
</figure>
Q: Choose the (text-style: "underline")[equation] that (either: "is needed", "allows you", "is necessary") to solve question (b) ?}{
<!-- -->
(set: $answerComments to (array:
"equation 1",
"equation 1",
"equation 2",
"equation 2 - the angle is too large",
"equation 3",
"equation 3",
"equation 4",
"equation 4"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
<!-- time + 10 for this QF7 -->
(set: $timeLeft to $defaultTime + 10)
}{(if: $test is true)[6]
<!--reed qu -->
<!-- Display question Q: and any image -->
//View the question and formulae below//
<figure><img src="images/q1d_TK2016_2.jpg" alt="reed question" style="width:557px;height:231px">
</figure>
Q: Which (text-style: "underline")[equation] (either: "is almost all you need", "allows you", "is necessary") to solve question ''(d)''.}{
<!-- -->
(set: $answerComments to (array:
"equation 4",
"equation 4",
"equation 5",
"equation 5",
"equation 3",
"equation 3",
"equation 2",
"equation 2"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
<!-- Outputs $defaultTime to + 10 for this QF6 -->
(set: $timeLeft to $defaultTime + 10)
}{(if: $test is true)[5]
<!--whistle qu -->
<!-- Display question Q: and any image -->
//View the question and formulae below//
<figure><img src="images/q1_TK2015_2.jpg" alt="whistle qu" style="width:635px;height:391px">
</figure>
Q: Which equation (either: "is needed", "will help", "is necessary") to solve question ''(a)'' ?}{
<!-- -->
(set: $answerComments to (array:
"equation 4",
"equation 4",
"equation 5",
"equation 5",
"equation 3",
"equation 3",
"equation 1",
"equation 1"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
<!-- time + 10 for this QF5 -->
(set: $timeLeft to $defaultTime + 10)
}(set: $defaultTime to 50)(set: $adjustTime to 20)
(set: $timeLeft to $defaultTime - 2*$adjustTime)
$timeLeft
''bold''--> (either: "one","","") to solve the given problem
-->play each question multiple times - check syntax, visual look of question. How can I improve the appeal, engagement with the question.
(set: $randPic to (random: 1,3) )
$randPic
{
(if: $randPic is 1)[
<figure>
<img src="images/spectra-band-smaller-2.jpg" alt="spectra 1" style="width:204px;height:78px" >
</figure>
](else-if: $randPic is 2)[
<figure>
<img src="images/spectra-band-smaller-2.jpg" alt="spectra 2" style="width:204px;height:78px" >
</figure>
](else:)[
<figure>
<img src="images/spectra-band-smaller-2.jpg" alt="spectra 3" style="width:204px;height:78px" >
</figure>
]
}
(if: $test is true)[1]
<!-- time + 10 for this QF5 -->
(set: $timeLeft to $defaultTime + 10)(print: (either:
"You got it!",
"That's right!",
"Correct!",
"Ka Pai!",
"Great!"
)
){
<!-- -->
<!-- $quTotal and _temp have the same length ie. the number of quiz questions -->
(set: $quTotal to 9)
(set: $quTotal to (set: _temp to (array: "1","2","3","4","5","6","7","8", "9") )
<!-- in the corresponding timer: the number of qus is a random selection of qutotal - 4 qus (if: $quCount > $quTotal-4)[(goto: $quizEnd)]; this needs to be adjusted in the QExam quizEnd also for total possible score.-->
<!--Initial sets for questions -->
<!--$defaultTime is set to 60s below, multiplied by $difficulty -->
(set: $score to 0)
(set: $quizTimer to "QExam multichoice Timer")
(set: $quizEnd to "QExam quizEnd")
(set: $defaultTime to (60*$difficulty))
(set: $spStyle to (text-colour: "RoyalBlue "))
(set: $scoreStyle to (text-style: "italic") + (text-colour: "Limegreen"))
(set: $errorStyle to (text-colour: "darkred") )
(set: $correctStyle to (text-style: "bold") + (text-colour: "Lime") )
<!-- Randomise the order of the quiz questions-->
(set: $qusOrder to (shuffled:..._temp) )
(set: $qusOrder to (altered: _qu via "QE" + _qu, ...$qusOrder) )
<!-- Outputs:
$quTotal is the total number of quiz questions
$qusOrder is the order of the quiz questions and will be used to point to the next qustion link
$quCount is the count for the number of questions that will have been asked and is also used by MultichoiceTimer to find the next question link
$qusOrder's $quCount will be used to point to the first quiz question
-->
(set: $quCount to 1)
(goto: $quizTimer)
}{
<!---
Inputs:
$answerComments is passed to this passage, A is the correct answer and A2 it's comment.
(set: $answerComments to (array: "A","A2","B","B2","C","C2","D","D2") )
$timeLeft is the time available to answer the question. If unset it defaults to disabled.
$quCount is the current question count. This will be incremented to find the link to the next question.
-->
}{
<!--Display question and any images, get inputs $answerComments, $timeLeft -->
(display: $qusOrder's $quCount)
}{<!--Multichoice -->
(set: $correctAns to $answerComments's 1st)
(set: $correctComm to $answerComments's 2nd)
(set: $answerOrder to (shuffled: 1,3,5,7) )
(set: $ans to $answerOrder's 1) (set: $comm to $ans +1)
(set: $answer1 to $answerComments's $ans)
(set: $comment1 to $answerComments's $comm)
(set: $ans to $answerOrder's 2) (set: $comm to $ans +1)
(set: $answer2 to $answerComments's $ans)
(set: $comment2 to $answerComments's $comm)
(set: $ans to $answerOrder's 3) (set: $comm to $ans +1)
(set: $answer3 to $answerComments's $ans)
(set: $comment3 to $answerComments's $comm)
(set: $ans to $answerOrder's 4) (set: $comm to $ans +1)
(set: $answer4 to $answerComments's $ans)
(set: $comment4 to $answerComments's $comm)
}{<!--Display Multichoice links -->}
{(if: $answer1 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer1)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]] $errorStyle[$comment1] ] ]}
{(if: $answer2 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer2)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]] $errorStyle[$comment2] ] ]}
{(if: $answer3 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer3)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]]$errorStyle[$comment3] ] ]}
{(if: $answer4 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer4)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]]$errorStyle[$comment4] ] ]
}{
<!--timer -->
<!--Timer sets -->
(set:$timer to true)
(set: $decisionMade to false)
(if: $timeLeft is 0)[(set: $timer to false)]
(if: $timer)[
(live: 1250ms)[
(if: $decisionMade is true)[(stop:)]
(else:)[
(set: $timeLeft to $timeLeft - 1)
(replace: ?warningmessage)[You have $timeLeft seconds left to make your decision]
]
(if: $timeLeft <= 0)[(goto: "outoftime")]
]
]
}
{
(if: $timer)[[You have $timeLeft seconds left to make your decision]<warningmessage| ]
(else:)[ []<warningmessage| ]
}<br>{
[$scoreStyle[Score: $score]]<decision|
<!-- correct answer is clicked -->
(click: ?correctAnswer)[
(set: $decisionMade to true)
(set: $score to $score + 20)
(replace: ?correctAnswer)[ $correctStyle[$correctComm]]
(replace: ?decision)[$scoreStyle[Score: $score ]]
(replace: ?warningmessage)[$correctStyle[(display: "correct fdbk")]
]
<!-- num of qus is a random selection of qutotal - 2 qus; this needs to be adjusted in the QExam quizEnd also for total possible score.-->
(live:3.0s)[
(set: $quCount to $quCount + 1)
(set: $timeLeft to 0)
(if: $quCount > $quTotal-4)[(goto: $quizEnd)]
(else:)[(goto: $quizTimer)]
]
]
} Congratulations - You completed the Exam topics quiz!
{
(set:_totalPossible to ($quTotal-4)*20)
$scoreStyle[Final Score: $score out of _totalPossible]
}
(link-goto: "Return to menu", "Menu"){(if: $test is true)[1]
<!-- Display question Q: and any image -->
Q: //What physics topic do (either: "these questions", "questions (a) & (b)") relate to?//<br>
<figure>
<img src="images/q1_sw2017.jpg" alt="2017 nbts" style="width:647px;height:250px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"Standing Waves",
"Standing Waves",
"Diffraction",
"Diffraction",
"The Doppler effect",
"The Doppler effect - not questions (a) or (b)",
"interference",
"interference - too general an answer"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[2]
<!-- Display question Q: and any image -->
Q: //What physics topic does (either: "this question", "question (a)") relate to?//<br>
<figure>
<img src="images/q3_wb2012.jpg" alt="2012 nbts" style="width:761px;height:271px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"Diffraction",
"Diffraction",
"Standing waves",
"Standing waves",
"The Doppler effect",
"The Doppler effect",
"Interference",
"Interference - is too general an answer"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[3]
<!-- Display question Q: and any image -->
Q: //What physics topic does (either: "this question", "question (a) & (b)") relate to?//<br>
<figure>
<img src="images/q3_wb2010.jpg" alt="2010 nbts" style="width:746px;height:348px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"Interference",
"Interference - specifically 'path difference'",
"Standing waves",
"Standing waves",
"The Doppler effect",
"The Doppler effect",
"Diffraction",
"Diffraction - not in question (a) or (b)"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[4]
<!-- Display question Q: and any image -->
Q: //What physics topic does (either: "this question", "question (a)") relate to?//<br>
<figure>
<img src="images/q3_TK2016.jpg" alt="2016 TK" style="width:500px;height:284px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"The Doppler effect",
"The Doppler effect",
"Standing waves",
"Standing waves",
"Wave interference",
"Wave interference",
"A diffraction grating",
"A diffraction grating"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[5]
<!-- Display question Q: and any image -->
Q: //What unstated assumption is being made in this question?//<br>
<figure>
<img src="images/q1_TK2015.jpg" alt="whistle" style="width:635px;height:306px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"22 kHz is the fundamental mode",
"22 kHz is the fundamental mode",
"22kHz cannot be heard by humans",
"22kHz cannot be heard by humans",
"The whistle is an open ended pipe",
"The whistle is an open ended pipe",
"Beats will allow Elise to hear the whistle",
"Beats will allow Elise to hear the whistle"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[6]
<!-- Display question Q: and any image -->
Q: //What unstated assumption is being made in question a?//<br>
<figure>
<img src="images/q3_wb2009.jpg" alt="sound question" style="width:734px;height:242px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"A classroom will mean sounds interfere with the demonstration",
"A classroom has: sound echoes, reflections etc...",
"Classrooms may not have the correct equipment",
"The question assumes the equipment is available",
"Students do not listen carefully",
"Students do not listen carefully",
"The effect will be weaker in a classroom",
"The effect will be weaker in a classroom - is too general an answer"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[7]
<!-- Display question Q: and any image -->
Q: //It is assumed for fringes that the red laser is a source of .... ?//<br>
<figure>
<img src="images/q3_tk2017.jpg" alt="fringes question" style="width:728px;height:158px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"Corehent light",
"Coherent light = A constant wavelength/frequency and phase difference",
"Intense light",
"Intense light - Intensity is not relevant.",
"Powerful photons",
"Powerful photons",
"Bright light",
"Bright light - is not essential"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[8]
<!-- Display question Q: and any image -->
Q: //It is to be assumed that Bob's finger is .... ?//<br>
<figure>
<img src="images/q2e_tk2015.jpg" alt="guitar question" style="width:745px;height:254px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"creating an node",
"creating an node",
"allowing resonance to occur",
"allowing resonance to occur",
"creating an antinode",
"creating an antinode",
"reducing the string tension",
"reducing the string tension"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{
<!-- -->
<!-- _temp length = the total number of quiz qu.s available
(set: $quizzTotal to 5) = the quiz length. $quizzTotal is used in the correspondg timer and quizEnd(for the scoring) -->
(set: $quizzTotal to 10)
(set: _temp to (array: "1","2","3","4","5","6","7","8","9","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28", "29", "30", "31", "32", "33", "34") )
<!--Initial sets for questions -->
<!--$defaultTime is set to 35s below, multiplied by $difficulty 0.5 or 1 -->
(set: $score to 0)
(set: $defaultTime to (35*$difficulty))
(set: $quizTimer to "MultichoiceTimer")
(set: $quizEnd to "MultiquizEnd")
(set: $spStyle to (text-colour: "RoyalBlue "))
(set: $scoreStyle to (text-style: "italic") + (text-colour: "Limegreen"))
(set: $errorStyle to (text-colour: "darkred") )
(set: $correctStyle to (text-style: "bold") + (text-colour: "lime") )
<!-- Randomise the order of the quiz questions-->
(set: $qusOrder to (shuffled:..._temp) )
(set: $qusOrder to (altered: _qu via "Q" + _qu, ...$qusOrder) )
<!-- Outputs:
$quTotal is the total number of quiz questions
$qusOrder is the order of the quiz questions and will be used to point to the next qustion link
$quCount is the count for the number of questions that will have been asked and is also used by MultichoiceTimer to find the next question link
$qusOrder's $quCount will be used to point to the first quiz question
-->
(set: $quCount to 1)
(goto: $quizTimer)
<!-- -->
}{
<!---
Inputs:
$answerComments is passed to this passage, A is the correct answer and A2 it's comment.
(set: $answerComments to (array: "A","A2","B","B2","C","C2","D","D2") )
$timeLeft is the time available to answer the question. If unset it defaults to disabled.
$quCount is the current question count. This will be incremented to find the link to the next question.
-->
}
{
<!--Display question and any images, get inputs $answerComments, $timeLeft -->
(display: $qusOrder's $quCount)}{
<!--Multichoice -->
(set: $correctAns to $answerComments's 1st)
(set: $correctComm to $answerComments's 2nd)
(set: $answerOrder to (shuffled: 1,3,5,7) )
(set: $ans to $answerOrder's 1) (set: $comm to $ans +1)
(set: $answer1 to $answerComments's $ans)
(set: $comment1 to $answerComments's $comm)
(set: $ans to $answerOrder's 2) (set: $comm to $ans +1)
(set: $answer2 to $answerComments's $ans)
(set: $comment2 to $answerComments's $comm)
(set: $ans to $answerOrder's 3) (set: $comm to $ans +1)
(set: $answer3 to $answerComments's $ans)
(set: $comment3 to $answerComments's $comm)
(set: $ans to $answerOrder's 4) (set: $comm to $ans +1)
(set: $answer4 to $answerComments's $ans)
(set: $comment4 to $answerComments's $comm)
}
{
<!--Display Multichoice links -->
(if: $answer1 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer1)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]] $errorStyle[$comment1] ] ]}
{(if: $answer2 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer2)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]] $errorStyle[$comment2] ] ]}
{(if: $answer3 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer3)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]]$errorStyle[$comment3] ] ]}
{(if: $answer4 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer4)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]]$errorStyle[$comment4] ] ]
}
{
<!--timer -->
<!--Timer sets -->
(set:$timer to true)
(set: $decisionMade to false)
(if: $timeLeft is 0)[(set: $timer to false)]
(if: $timer)[
(live: 1250ms)[
(if: $decisionMade is true)[(stop:)]
(else:)[
(set: $timeLeft to $timeLeft - 1)
(replace: ?warningmessage)[You have $timeLeft seconds left to make your decision]
]
(if: $timeLeft <= 0)[(goto: "outoftime")]
]
]
<br>
(if: $timer)[[You have $timeLeft seconds left to make your decision]<warningmessage| ]
(else:)[ []<warningmessage| ]
<br>
[$scoreStyle[Score: $score]]<decision|
<!-- correct answer is clicked -->
(click: ?correctAnswer)[
(set: $decisionMade to true)
(set: $score to $score + 20)
(replace: ?correctAnswer)[ $correctStyle[$correctComm]]
(replace: ?decision)[$scoreStyle[Score: $score ]]
(replace: ?warningmessage)[$correctStyle[(display: "correct fdbk")]
]
(live:3.0s)[
(set: $quCount to $quCount + 1)
(set: $timeLeft to 0)
(if: $quCount > $quizzTotal)[(goto: $quizEnd)]
(else:)[(goto: $quizTimer)]
]
]
}Congratulations - You completed the Multichoice quiz!
{
(set:_totalPossible to $quizzTotal*20)
$scoreStyle[Final Score: $score out of _totalPossible]
}
(link-goto: "Return to menu", "Menu")$countdwnStyle[You are out of time!]
(set: $score to $score - 20)
The correct answer was: $correctStyle['$correctComm']
$scoreStyle[Score: //minus// 20]
(live:4.0s)[
(set: $quCount to $quCount + 1)
(if: $quCount > $quTotal)[(goto: $quizEnd)]
(else:)[(goto:$quizTimer)]]
<!-- In quiz start passages, set $quizTimer and $quizEnd to correct timer and end in the Quiz start passages-->{(if: $test is true)[1]
<!-- Display question Q: and any image -->
//Complete the sentence://<br> Q: Radio waves, microwaves and light waves (text-style: "underline")[all] travel...
<!-- -->
(set: $answerComments to (array:
"at the speed of light",
"All Electromagnetic radiation travels at the speed of light",
"in straight lines",
"in straight lines - except when they diffract!",
"at the speed of sound",
"at the speed of sound",
"through EM radiation",
"through EM radiation? They are EM radiations."
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[2]
<!-- Display question Q: and any image -->
//Complete the sentence://<br> Q: When an object vibrates at it's natural frequency...
<!-- -->
(set: $answerComments to (array:
"resonance occurs",
"resonance - a large amplitude of vibration - occurs",
"EM radiation occurs",
"EM radiation occurs",
"a diffraction pattern can be seen",
"a diffraction pattern can be seen",
"the doppler effect can be observed",
"the doppler effect can be observed"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
<!-- reduce time to 30 - 10 = 20s-->
(set: $timeLeft to $defaultTime - 10)
}{(if: $test is true)[3]
<!-- Display question Q: and any image -->
//Complete the sentence://<br> Q: Beats occur when there are two waves ...
<!-- -->
(set: $answerComments to (array:
"of slightly different frequencies",
"of slightly different frequencies",
"causing a sound with a changing frequency",
"causing a sound with a changing frequency",
"tuning an instrument",
"tuning an instrument - not necessarily",
"of similar amplitudes",
"of similar amplitudes"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[4]
<!-- Display question Q: and any image -->
//Complete the sentence://<br> Q: The doppler (either: "formula", "effect") applies if the (either: "wave source", "source of the waves", "wave emitter") is ...
(if: $randPic is 1)[
<figure>
<img src="images/doppler formula.jpg" alt="doppler formula" style="width:250px;height:101px" >
</figure>
](else-if: $randPic is 2)[
<figure>
<img src="images/doppler-1.jpg" alt="doppler 1" style="width:274px;height:265px" >
</figure>
](else:)[
<figure>
<img src="images/doppler 2.jpg" alt="doppler 2" style="width:366px;height:326px" >
</figure>
]
<!-- -->
(set: $answerComments to (array:
"moving at a constant velocity",
"moving at a constant velocity",
"emitting waves in the medium of air",
"emitting waves in the medium of air - not necessarily",
"emitting waves of a relatively high frequency",
"emitting waves of a relatively high frequency",
"moving at an increasing or decreasing velocity",
"moving at an increasing or decreasing velocity"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[5]
<!-- Display question Q: and any image -->
Q: //Complete the sentence://<br> When red laser light is directed through a small circular hole $spStyle[_____] occurs, but only when the $spStyle[_____] is similar to the hole diameter.
<figure>
<img src="images/circular aperture.jpg" alt="circular effect" style="width:213px;height:214px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"diffraction, wavelength",
"diffraction, wavelength",
"the doppler effect, wave velocity",
"the doppler effect, wave velocity",
"a spreading of the light, phase difference",
"a spreading of the light, phase difference",
"constructive interference, wavelength",
"constructive interference, reflection"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[6]
<!-- -->
<!-- Display question Q: and any image -->
//Complete the sentence://<br>
Q: A coherent source of waves from two slits means both waves have $spStyle[_____] (either: "wavelength", "frequency"), and a constant $spStyle[_____].
<!-- -->
(set: $answerComments to (array:
"the same, phase difference",
"the same, phase difference",
"a similar, phase difference",
"a similar, phase difference",
"the same, amplitude",
"the same, amplitude",
"the same, distance to the detecting screen",
"the same, distance to the detecting screen"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[7]
<!-- -->
<!-- Display question Q: and any image -->
<figure><img src="images/openPipe-1.jpg" alt="open pipe" style="width:334px;height:153px;">
</figure>
//Fill in the blanks://<br>
Q: The standing wave above is the $spStyle[_____], and the wavelength is equal to $spStyle[_____].
<!-- -->
(set: $answerComments to (array:
"fundamental, 2 x L",
"fundamental, 2 x L",
"fundamental, 0.5 x L",
"fundamental, 0.5 x L",
"first overtone, 2 x L",
"first overtone, 2 x L",
"2nd overtone, 4 x L",
"2nd overtone, 4 x L"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[8]
<!-- -->
<!-- Display question Q: and any image -->
<figure><img src="images/closedPipe.jpg" alt="closed pipe" style="width:341px;height:163px;">
</figure>
Q: The standing wave shown is the $spStyle[_____], and the wavelength is equal to $spStyle[_____].
<!-- -->
(set: $answerComments to (array:
"first overtone, 4/3 x L",
"first overtone, 4/3 x L",
"fundamental wavelength, 2/3 x L",
"fundamental wavelength, 2/3 x L",
"first overtone, 3/2 x L",
"first overtone, 3/2 x L",
"fundamental wavelength, 3/4 x L",
"fundamental wavelength, 3/4 x L"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[9]
<!-- -->
<!-- Display question Q: and any image -->
<figure><img src="images/closed-pipe-1.jpg" alt="closed pipe" style="width:300px;height:135px;">
</figure>
Q: The standing wave shown is the $spStyle[_____], and the wavelength is equal to $spStyle[_____].
<!-- -->
(set: $answerComments to (array:
"fundamental, 4 x L",
"fundamental, 4 x L",
"fundamental, 0.5 x L",
"fundamental, 0.5 x L",
"first overtone, 0.5 x L",
"first overtone, 0.5 x L",
"second harmonic, 4 x L",
"second harmonic, 4 x L"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[10]
<!-- -->
<!-- Display question Q: and any image -->
<figure><img src="images/open-pipe.jpg" alt="open pipe" style="width:300px;height:146px;">
</figure>
Q: The standing wave shown is the $spStyle[_____], and the wavelength is equal to $spStyle[_____].
<!-- -->
(set: $answerComments to (array:
"second harmonic, L",
"second harmonic, L",
"first harmonic, L",
"first harmonic, L",
"first overtone, 2xL",
"first overtone, 2xL",
"2nd overtone, 0.5xL",
"2nd overtone, 0.5xL"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[11]
<!-- -->
<!-- Display question Q: and any image -->
<figure><img src="images/approx-formula.jpg" alt="approx. formula" style="width:165px;height:114px;">
</figure>
//Complete the sentence://<br>
Q: In the formula above, ''d'' (either: "stands for", "indicates", "equals") the $spStyle[_____].
<!-- -->
(set: $answerComments to (array:
"distance between the slits or lines",
"distance between the slits or lines",
"distance from the slits to the screen",
"distance from the slits to the screen",
"number of lines per metre",
"number of lines per metre",
"path difference",
"path difference"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[18]
<!-- Display question Q: and any image -->
<figure>
<img src="images/diffraction-grating.jpg" alt="diffraction grating" style="width:300px;height:225px" >
</figure>
//Fill in the missing words://<br>
Q: (either: "Green","Red") laser light is passed through a diffraction grating. If a (either: "blue","violet") laser is used instead the (either: "antinodes", "bright spots") are found to be $spStyle[_____] the central maximum.
<!-- -->
(set: $answerComments to (array:
"closer to",
"closer to - because of a shorter wavelength",
"further from",
"further from",
"the same distance to",
"the same distance to",
"as bright as",
"as bright as"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[16]
<!-- Display question Q: and any image -->
//View the diagram and equation below://
<figure>
<img src="images/dsintheta-full.jpg" alt="doppler formula" style="width:400px;height:262px" >
</figure>
Q: The location of the (either: "second", "2nd") (text-style: "underline")[antinode] is found (either: "at P ", "")when ''nλ'' equals...
<!-- -->
(set: $answerComments to (array:
"2 x wavelength",
"2 x wavelength, n=2",
"1.5 x wavelength",
"1.5 x wavelength - gives the 2nd node",
"0.5 x wavelength",
"0.5 x wavelength",
"two",
"two"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[15]
<!-- Display question Q: and any image -->
//View the diagram and equation below://
<figure>
<img src="images/dsintheta-full.jpg" alt="doppler formula" style="width:400px;height:262px" >
</figure>
Q: The location of the (either: "second", "2nd") (text-style: "underline")[node] is found (either: "at P ", "")when ''nλ'' equals...
<!-- -->
(set: $answerComments to (array:
"1.5 x wavelength",
"1.5 x wavelength = (2 - 1/2) x wavelength",
"2 x wavelength",
"2 x wavelength - gives the 2nd antinode",
"0.5 x wavelength",
"0.5 x wavelength",
"two",
"two"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[19]
<!-- Display question Q: and any image -->
<figure>
<img src="images/dsintheta equ.jpg" alt="diffraction" style="width:208px;height:73px" >
</figure>
//Complete the sentence://<br>
Q: This formula (either: "indicates", "says"), the $spStyle[_____] the wavelength incident on a diffraction grating, the $spStyle[_____] the (either: "distance between the bright spots", "spread") on the screen.
<!-- -->
(set: $answerComments to (array:
"greater, greater",
"greater, greater",
"greater, lesser",
"greater, lesser",
"smaller, greater",
"smaller, greater",
"more monochromatic, greater",
"more monochromatic, greater"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[17]
<!-- Display question Q: and any image -->
<figure>
<img src="images/diffraction pattern.jpg" alt="spectra" style="width:400px;height:241px" >
<br>//Find the missing words://<br>
Q: The above image is found on a screen when $spStyle[_____] passes through a $spStyle[_____].
<!-- -->
(set: $answerComments to (array:
"white light, diffraction grating",
"white light, diffraction grating",
"monocromatic light, diffraction grating",
"monocromatic light, diffraction grating",
"white light, prism",
"white light, prism - the colour bands will have the ''reverse'' order",
"monocromatic light, prism",
"monocromatic light, prism"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[12]
<!-- interference-->
<!-- Display question Q: and any image -->
</figure>
//Fill in the blanks://<br>
Q: Two waves (either: "combine", "superimpose", "interfere with each other"). If the amplitude of the (either: "combination", "resultant", "new", "final") wave is (either: "larger", "greater") than either of the original waves then $spStyle[_____] has occurred. $spStyle[_____] interference would mean that the final amplitude was (either: "smaller", "less") than either of the original waves.
<!-- -->
(set: $answerComments to (array:
"constructive interference, destructive",
"constructive interference, destructive",
"destructive interference, constructive",
"destructive interference, constructive",
"superposition, constructive",
"superposition, constructive",
"the doppler effect, destructive",
"the doppler effect, destructive"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[13]
<!-- -->
<!-- Display question Q: and any image -->
//Complete the sentence://<br>
Q: When two waves of (either: "the same", "identical","equal") amplitude and frequency meet in the same place, but are (either: "1/2", "half") a wavelength out of sync with each other there will be ...
<!-- -->
(set: $answerComments to (array:
"destructive interference",
"destructive interference",
"constructive interference",
"constructive interference",
"superposition",
"superposition - is too general an answer",
"beats",
"beats - do not happen when freq.s are equal"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
<!-- 35 - 10 = 25s for this question -->
(set: $timeLeft to $defaultTime - 10)
}{(if: $test is true)[14]
<!-- -->
<!-- Display question Q: and any image -->
//Fill in the blanks://<br>
Q: When two sounds of (either: "very similar","almost equal", "very close") frequencies are played (either: "to a person", "to a listener") they will hear $spStyle[_____] as the $spStyle[_____] changes (either: "continuously", "regularly").
<!-- -->
(set: $answerComments to (array:
"beats, volume",
"beats, volume - a repeating cycle of loud then soft",
"the doppler effect, frequency",
"the doppler effect, frequency",
"noise cancellation, sound",
"noise cancellation, sound",
"destructive interference, phase difference",
"destructive interference, phase difference"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[20]
<!-- Display question Q: and any image -->
<figure>
<img src="images/dsintheta equ.jpg" alt="diffraction" style="width:208px;height:73px" >
</figure>
//Complete the sentence://<br>
Q: The $spStyle[_____] the distance between the lines of a diffraction grating, the $spStyle[_____] the (either: "distance between the bright spots", "spread") of the interference pattern.
<!-- -->
(set: $answerComments to (array:
"smaller, greater",
"smaller, greater",
"greater, greater",
"greater, greater",
"smaller, smaller",
"smaller, smaller",
"more identical, greater",
"more identical, greater"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[25]
<!-- Display question Q: and any image -->
Q: //What is the following an example of ?//<br> (either: "An ambulance, on the way to an emergency, passes a person standing on the footpath. The siren changes pitch", "The light from a distant star that is moving towards Earth appears 'blue shifted' to astronomy observers on Earth", "The light from a distant star that is moving away from Earth appears 'red shifted' to astronomy observers on Earth", "Police use a laser pointed at a car to estimate the car's speed based upon the reflected frequency of the laser light").
<!-- -->
(set: $answerComments to (array:
"the doppler effect",
"the doppler effect",
"technology causing resonance",
"technology causing resonance",
"standing waves",
"standing waves",
"diffraction at an obstacle",
"diffraction at an obstacle"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
<!-- 35 -15 = 20s for this particular question -->
(set: $timeLeft to $defaultTime - 15)
}{(if: $test is true)[24]
<!-- Display question Q: and any image -->
//Complete the sentence://<br>Q: (either: "For a standing wave", "In a harmonic pattern", "For a stationary wave"), the distance between (either: "two adjacent antinodes", "two adjacent nodes", "one antinode and the next", "one node and the next") ...
<!-- -->
(set: $answerComments to (array:
"is always the wavelength/2",
"is always the wavelength/2",
"depends upon the wave frequency",
"depends upon the wave frequency",
"is equal to the wavelength/4",
"is equal to the wavelength/4",
"determines the overtone",
"determines the overtone"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[22]
<!-- Display question Q: and any image -->
//Complete the sentence://<br> Q: A sound pulse is moving towards the (text-style: "underline")[open end] of a pipe. (either: "In general", "It is //always true// that") when a wave reflects off an open end, it will be ...
<figure>
<img src="images/pulse-open-pipe.jpg" alt="wave in open pipe" style="width:401px;height:127px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"not have a phase change",
"not have a phase change",
"be doppler shifted",
"be doppler shifted",
"create a standing wave",
"create a standing wave",
"be inverted",
"be inverted"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[23]
<!-- Display question Q: and any image -->
//Below is an example of ?//<br> Q: (either: "A singer sings a note and a nearby glass shatters", "Pedestrians walking on a bridge cause it to swing wildly", "A parent pushes their child on a swing back and forth and with very little effort causes the child to go up to a great height").
<!-- -->
(set: $answerComments to (array:
"resonance",
"resonance",
"the doppler effect",
"the doppler effect",
"beats",
"beats",
"diffraction at an obstacle",
"diffraction at an obstacle"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
<!-- 35 -15 = 20s for this particular question -->
(set: $timeLeft to $defaultTime - 15)
} {(if: $test is true)[21]
<!-- Display question Q: and any image -->
//Complete the sentence://<br> Q: A pulse is moving towards a (text-style: "underline")[fixed end] below. (either: "In general", "It is //always true// that") when a wave reflects off a fixed end, the reflected wave will ...
<figure>
<img src="images/wave-pulse.jpg" alt="wave on string" style="width:338px;height:141px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"be inverted",
"be inverted",
"be doppler shifted",
"be doppler shifted",
"create a standing wave",
"create a standing wave - not always!",
"remain upright",
"remain upright"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[27]
<!-- Display question Q: and any image -->
//Complete the sentence://<br> Q: When white light is directed through an optical device and then onto a screen the following spectra is seen left of the screen's centre. The optical device is (either: "almost certainly", "very probably") (text-style: "underline")[not] a $spStyle[_____].
<figure>
<img src="images/spectra-band-smaller.jpg" alt="spectra band" style="width:204px;height:78px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"prism",
"prism - these have a refractive colour order",
"diffraction grating",
"diffraction grating",
"a small circular aperture",
"a small circular aperture",
"a DVD surface",
"a DVD surface"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[26]
<!-- Display question Q: and any image -->
//Complete the sentence://<br> Q: When white light is directed through an optical device and onto a screen the following spectrum is seen to the left of screen's centre. The optical device is (either: "almost certainly", "very probably") (text-style: "underline")[not] a $spStyle[_____].
<figure>
<img src="images/spectra-band-smaller-2.jpg" alt="spectra band" style="width:204px;height:78px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"diffraction grating",
"diffraction grating",
"prism",
"prism",
"a small circular aperture",
"a small circular aperture",
"a small rectangular hole",
"a small rectangular hole"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[28]
<!-- Display question Q: and any image -->
//View the diagram and two equations below://<br> Q: When the light source is (either: "white", "red laser", "green laser", "monochromatic", "blue laser", "violet laser") light , (text-style: "underline")[which equation] can be used to find (either: "bright spots", "bright bands", "the brightness of a specific point") on the screen ?
(if: $randPic is 1)[
<figure>
<img src="images/double-slit-y1.jpg" alt="spectra 1" style="width:530px;height:273px" >
</figure>
](else-if: $randPic is 2)[
<figure>
<img src="images/double-slit-y2.jpg" alt="spectra 2" style="width:530px;height:273px" >
</figure>
](else:)[
<figure>
<img src="images/double-slit-y3.jpg" alt="spectra 3" style="width:530px;height:273px" >
</figure>
]
<!-- -->
(set: $answerComments to (array:
"equation 1",
"equation 1",
"equation 2",
"equation 2",
"either equation 1 or 2",
"either equation 1 or 2",
"neither equation",
"neither equation"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{
<!-- ,"3","4","5"-->
<!-- $quTotal and _temp have the same length ie. the number of quiz questions -->
(set: $quTotal to 6)
(set: _temp to (array: "1","2","3","4","5","6") )
<!--Initial sets for questions -->
(set: $score to 0)(set: $clueTkn to 10)
(set: $quizTimer to "Guess multichoiceTimer")
(set: $quizEnd to "guessEnd")
(set: $defaultTime to (90*$difficulty))
(set: $a to (text-style: "none") + (text-colour: "mediumseagreen"))
(set: $spStyle to (text-colour: "RoyalBlue "))
(set: $scoreStyle to (text-style: "italic") + (text-colour: "Limegreen"))
(set: $errorStyle to (text-colour: "darkred") )
(set: $correctStyle to (text-style: "bold") + (text-colour: "Lime") )
<!-- Randomise the order of the quiz questions-->
(set: $qusOrder to (shuffled:..._temp) )
(set: $qusOrder to (altered: _qu via "Guess" + _qu, ...$qusOrder) )
<!-- Outputs:
$quTotal is the total number of quiz questions
$qusOrder is the order of the quiz questions and will be used to point to the next qustion link
$quCount is the count for the number of questions that will have been asked and is also used by MultichoiceTimer to find the next question link
$qusOrder's $quCount will be used to point to the first quiz question
-->
(set: $quCount to 1)
(goto: $quizTimer)
<!-- -->
}{<b>Light: </b>What <b>one</b> physics idea am I thinking of?
<p style="font-size:10%;"></p> <!--reduce <p> spacing between sections-->
//clue 1:// $a[When looking down into water, objects in the water can appear closer than what they are in reality] }
|cl2>[clue 2]
|cl3)[clue 3]
|cl4)[clue 4]
{
(set: $timeLeft to $defaultTime)
(set: $answerComments to (array:
"Refractive index","Refractive index",
"Refractive","Refractive",
"Velocity","Velocity",
"Optical Mediums","Optical Mediums"
) )
(click-replace: ?cl2)[(set: $score to $score - ($clueTkn-5))(replace: ?decision)[$scoreStyle[Score: $score]]//clue 2:// $a[Bending of light depends on this quality](show: ?cl3)(click-replace: ?cl3)[(set: $score to $score - $clueTkn)(replace: ?decision)[$scoreStyle[Score: $score]]//clue 3:// $a[Diamond has a very high value](show: ?cl4)(click-replace: ?cl4)[(set: $score to $score - $clueTkn)(replace: ?decision)[$scoreStyle[Score: $score]]//clue 4:// $a[An optical medium can be defined by it.] ]]]
}{
<!--Display question and any images, get inputs $answerComments, $timeLeft -->
(display: $qusOrder's $quCount)
<!--Multichoice -->
(set: $correctAns to $answerComments's 1st)
(set: $correctComm to $answerComments's 2nd)
(set: $answerOrder to (shuffled: 1,3,5,7) )
(set: $ans to $answerOrder's 1) (set: $comm to $ans +1)
(set: $answer1 to $answerComments's $ans)
(set: $comment1 to $answerComments's $comm)
(set: $ans to $answerOrder's 2) (set: $comm to $ans +1)
(set: $answer2 to $answerComments's $ans)
(set: $comment2 to $answerComments's $comm)
(set: $ans to $answerOrder's 3) (set: $comm to $ans +1)
(set: $answer3 to $answerComments's $ans)
(set: $comment3 to $answerComments's $comm)
(set: $ans to $answerOrder's 4) (set: $comm to $ans +1)
(set: $answer4 to $answerComments's $ans)
(set: $comment4 to $answerComments's $comm)
}{<!--Display Multichoice links -->
<p style="font-size:10%;"></p> <!--reduce <p> spacing between sections-->
Choose your answer:}
{(if: $answer1 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer1)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]] $errorStyle[$comment1] ] ] }
{(if: $answer2 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer2)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]] $errorStyle[$comment2] ] ] }
{(if: $answer3 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer3)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]]$errorStyle[$comment3] ] ] }
{(if: $answer4 is $correctAns)[[$correctAns]<correctAnswer|]
(else:) [(link: $answer4)[(set: $score to $score - 10)(replace: ?decision)[$scoreStyle[Score: $score]]$errorStyle[$comment4] ] ] }
{
<!--timer -->
<!--Timer sets -->
(if: $timeLeft is 0)[(set: $timer to false)](else:)[(set:$timer to true)]
(set: $decisionMade to false)
(if: $timer)[
(live: 1250ms)[
(if: $decisionMade is true)[(stop:)]
(else:)[
(set: $timeLeft to $timeLeft - 1)
(replace: ?warningmessage)[You have $timeLeft seconds left to make your choice.]
]
(if: $timeLeft <= 0)[(goto: "outoftime")]
]
]
}{
<br> <!--reduce <p> spacing between sections-->
(if: $timer)[[You have $timeLeft seconds left to make your choice.]<warningmessage| ]
(else:)[ []<warningmessage| ]
<br>
[$scoreStyle[Score: $score]]<decision|
}{
<!-- correct answer is clicked -->
(click: ?correctAnswer)[
(set: $decisionMade to true)
(set: $score to $score + 20)
(replace: ?correctAnswer)[ $correctStyle[$correctComm]]
(replace: ?decision)[$scoreStyle[Score: $score ]]
(replace: ?warningmessage)[$correctStyle[(display: "correct fdbk")]
]
(live:2.0s)[
(set: $quCount to $quCount + 1)
(set: $timeLeft to 0)
(if: $quCount > $quTotal-1)[(goto: $quizEnd)]
(else:)[(goto: $quizTimer)]
]
]
<!-- -->
}Congratulations - You completed the Guess quiz!
$scoreStyle[Final Score: $score]
(link-goto: "Return to menu", "Menu")Double-click this passage to edit it.(text-style: "underline")[diagram] , Vs is $spStyle[_____] than in the //italics//
''bold''{(if: $test is true)[8]
<!--diffraction formula approx -->
<!-- Display question Q: and any image -->
//View the formula below//
<figure><img src="images/approx-formula.jpg" alt="diffraction approx. formula" style="width:165px;height:114px">
</figure>
Q: The (text-style: "underline")[(either:"maximum", "largest")] ''x'' suitable for a (either: "50cm wide screen", "0.5m wide screen", "//screen// that has a midpoint 0.25m from it's edges") is?}{
<!-- -->
(set: $answerComments to (array:
"0.25m",
"0.25m",
"0.25cm",
"0.25cm",
"0.50m",
"0.50m",
"90 degrees",
"90 degrees - x is a distance"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[9]
<!--diffraction formula approx -->
<!-- Display question Q: and any image -->
<figure><img src="images/diffraction-sintheta.jpg" alt="diffraction " style="width:400px;height:301px">
</figure>
//Complete the sentence://<br>
To calculate the (either: "maximum", "ultimate") number of (either: "bright spots", "spectra orders") (either: "able", "possible") to be seen in front of a diffraction grating, the angle θ is set to $spStyle[_____].}{
<!-- -->
(set: $answerComments to (array:
"90 degrees",
"90 degrees",
"45 degrees",
"45 degrees",
"180 degrees",
"180 degrees - would give results behind the diffraction grating!",
"*This depends on the distance to the screen",
"*This depends on the distance to the screen"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[10]
<!--diffraction formula approx -->
<!-- Display question Q: and any image -->
<figure><img src="images/doppler formula.jpg" alt="doppler formula" style="width:250px;height:101px">
</figure>
Q: The ''formula'' above does (text-style: "underline")[not] apply when the (either: "source of the waves", "wave source", "object creating the sound") is ...}{
<!-- -->
(set: $answerComments to (array:
"accelerating",
"accelerating - the doppler effect applies to constant velocities",
"moving very slowly",
"moving very slowly",
"very close to the observer",
"very close to the observer",
"moving extremely fast",
"moving extremely fast"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[11]
<!-- Display question Q: and any image -->
(if: $randPic is 1)[
<figure>
<img src="images/standing-wave-1.jpg" alt="standing wave" style="width:283px;height:128px" >
</figure>
](else-if: $randPic is 2)[
<figure>
<img src="images/standing-wave-2.jpg" alt="standing wave" style="width:407px;height:159px" >
</figure>
](else:)[
<figure>
<img src="images/standing-wave-3.jpg" alt="standing wave" style="width:304px;height:150px" >
</figure>
]
Q: When solving (text-style: "underline")[standing wave] questions you (either: "usually", "almost always", "very often") need to know the ?}{
<!-- -->
(set: $answerComments to (array:
"wavelength in relation to L",
"wavelength in relation to L",
"velocity of sound",
"velocity of sound - this will be given to you",
"beat frequency",
"beat frequency",
"density of the wave medium",
"density of the wave medium"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[9]
<!-- Display question Q: and any image -->
Q: //What physics (text-style: "underline")[idea] do you need (either: "to know about", "be aware of", "to understand") to answer questions (a) and (b) ?//<br>
<figure>
<img src="images/q3_wb2010.jpg" alt="2010 nbts" style="width:746px;height:348px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"Path difference in wave interference",
"Path difference in wave interference",
"The Doppler effect",
"The Doppler effect",
"Beat conditions",
"Beat conditions",
"Diffraction spectra",
"Diffraction spectra"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[12]
<!-- Display question Q: and any image -->
Q: To calculate (either: "the apparent frequency", "f '") when (either: "a wave source is //moving towards// a stationary observer", "a stationary observer is //being approached// by a wave source")...
<figure>
<img src="images/doppler formula.jpg" alt="doppler formula" style="width:250px;height:101px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"Vs is subtracted from Vw in the formula",
"Vs is subtracted from Vw in the formula",
"Vs is added to Vw in the formula",
"Vs is added to Vw in the formula",
"you can expect f' to be less than f",
"you can expect f' to be less than f",
"Vw must be less than Vs",
"Vw must be less than Vs - is not relevant"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
} {(if: $test is true)[13]
<!-- Display question Q: and any image -->
Q: To calculate (either: "the apparent frequency", "f '") when (either: "a wave source is //moving away from// a stationary observer", "a stationary observer is //being passed// by a wave source")...
<figure>
<img src="images/doppler formula.jpg" alt="doppler formula" style="width:250px;height:101px" >
</figure>
<!-- -->
(set: $answerComments to (array:
"Vs is added to Vw in the formula",
"Vs is added to Vw in the formula",
"Vs is subtracted from Vw in the formula",
"Vs is subtracted from Vw in the formula",
"you can expect f' to be more than f",
"you can expect f' to be more than f",
"Vs must be less than Vw",
"Vs must be less than Vw - is not relevant"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
} {(if: $test is true)[29]
<!-- Display question Q: and any image -->
//Read the question below://
<figure>
<img src="images/q3d_tk2017.jpg" alt="diffraction" style="width:567px;height:308px" >
</figure>
//Complete the sentence://<br> Q: When a (either: "blue", "violet", "green") laser is used instead of the red laser the distance between the five central bright bands will be $spStyle[_____] than 1.96m.
<!-- -->
(set: $answerComments to (array:
"less",
"less ",
"more",
"more",
"significantly greater",
"significantly greater",
"*the answer depends upon the slit seperation",
"*slit seperation is assumed to be constant"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime +20)
}{(if: $test is true)[30]
<!-- Display question Q: and any image -->
//Read the question and equations below://
<figure>
<img src="images/q3d_tk2017-equs.jpg" alt="diffraction" style="width:567px;height:385px" >
</figure>
Q: Which equation can be used to calculate ''d'' (text-style: "underline")[accurately] ?
<!-- -->
(set: $answerComments to (array:
"equation 1 or 2",
"equation 1 or 2 - the approximation 2 is also valid here ",
"only equation 1",
"only equation 1",
"only equation 2",
"only equation 2",
"neither equation",
"neither equation"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime+20)
}{(if: $test is true)[31]
<!-- Display question Q: and any image -->
//Read the question and equations below://
<figure>
<img src="images/q3d_tk2017-equs.jpg" alt="diffraction" style="width:567px;height:385px">
</figure>
Q: The answer to ''(d)'' the (text-style: "underline")[slit seperation] is given by ?
<!-- -->
(set: $answerComments to (array:
"1 / d",
"1 / d - lines per distance - <small>convert to mm</small>",
"d",
"d",
"x",
"x",
"L",
"L"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime+20)
}{(if: $test is true)[32]
<!-- Display question Q: and any image -->
//View the image below://
<figure>
<img src="images/spectra.jpg" alt="diffraction" style="width:350px;height:252px">
</figure>
//Complete the sentence://<br>
Q: The (either: "spectra", "diffraction pattern") shown appear when $spStyle[_____] light is shone on the diffraction grating ?
<!-- -->
(set: $answerComments to (array:
"white",
"white",
"monochromatic",
"monochromatic = one colour",
"laser",
"laser",
"rainbow coloured",
"rainbow coloured"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[33]
<!-- Display question Q: and any image -->
//View the image below://
<figure>
<img src="images/spectra-words.jpg" alt="diffraction" style="width:350px;height:252px">
</figure>
//Complete the sentence://<br>
Q: A central white band and (either: "spectra", "bands of colour") are observed on a screen. In each (text-style: "underline")[(either: "spectra", "band of colours")], the $spStyle[_____] wavelengths are diffracted further than the $spStyle[_____] ?
<!-- -->
(set: $answerComments to (array:
"red, blue",
"red, blue",
"blue, red",
"blue, red",
"white, black",
"white, black",
"shorter, longer",
"shorter, longer"
)
)
<!-- Outputs $qu, $answerComments, $timeLeft -->
(set: $timeLeft to $defaultTime)
}{(if: $test is true)[34]
<!-- Display question Q: and any image -->
//A wave is (either: "indicted", "diagrammed") below://
(if: $randPic is 1)[
<figure>
<img src="images/p-wave.jpg" alt="wave type" style="width:475px;height:223px" >
</figure>
](else:)[
<figure>
<img src="images/s-wave.jpg" alt="wave type" style="width:475px;height:238px" >
</figure>
]
<!-- 2 pictures have their own answers -->
Q: What ''type'' of wave is shown ?
<!-- -->
(set: $answerComments to (array:
"longitudinal wave",
"longitudinal wave - particles vibrate in the direction of wave travel",
"transverse wave",
"transverse wave - particles vibrate at right angles to wave direction",
"square wave",
"square wave",
"standing wave",
"standing wave"
)
)
<!-- sets correct answer position based on randPic value being 2 or 3, image order follows the answer order-->
(if: $randPic is not 1)[(set: $answerComments to (rotated: -2, ...$answerComments))]
<!-- Outputs $qu, $answerComments, $timeLeft -->
<!-- time = easy question -->
(set: $timeLeft to $defaultTime - $adjustTime)
} {(if: $test is true)[3]
<!-- Display question Q: and any image -->
//A magnetic field is (either: "indicted", "diagrammed") below://
(if: $randPic is 1)[
<figure>
<img src="images/mag field I.jpg" alt="magnetic field" style="width:334px;height:319px" >
</figure>
](else-if: $randPic is 2)[
<figure>
<img src="images/mag field O.jpg" alt="magnetic field" style="width:240px;height:258px" >
</figure>
](else:)[
<figure>
<img src="images/mag field T.jpg" alt="magnetic field" style="width:350px;height:169px" >
</figure>
]
<!-- 3 pictures have their own answers -->
Q: What is the direction of the magnetic field?
<!-- -->
(set: $answerComments to (array:
"into the screen",
"into the screen/page - indicated by x's",
"out of the screen",
"out of the screen/page - indicated by the dots",
"to the top of the screen",
"to the top of the screen - indicated by the arrows",
"left to right",
"left to right - would be indicated using arrows"
)
)
<!-- sets correct answer position based on randPic value being 2 or 3, image order follows the answer order-->
(if: $randPic is not 1)[(set: $answerComments to (rotated: -2*($randPic-1), ...$answerComments))]
<!-- Outputs $qu, $answerComments, $timeLeft -->
<!-- time = easy question -->
(set: $timeLeft to $defaultTime - $adjustTime)
}