However, the equation can still hold if neither are zero and the terms cancel each other (one positive, one negative). Explicitly we have a = -"+n+" b / "+m+" or b = -"+m+" a / "+n+". Either way, a and b have opposite signs.
Note in ordinary English, the word or sometimes means that a and b cannot be zero at the same time, i.e. it is the exclusive or.
However, here a could equal 0, so then b would be zero too (and vice versa).
The mathematical definition of or includes this case, i.e. it is the inclusive or.";
for ( var i=5; i
"}
else
{document.forms[0].elements[item+3].value =
"Your answer "+document.forms[0].elements[item].value+" was correct.
"}
}
else
{
if (document.forms[0].elements[item].value==Distractor1%QUESTION.NUMBER%)
{document.forms[0].elements[item+3].value=
"1). Your answer "+document.forms[0].elements[item].value+" should have been "+COR+".
"+ANS+"
"+SHOW+"
" }
else
{
if (document.forms[0].elements[item].value==Distractor2%QUESTION.NUMBER%)
{document.forms[0].elements[item+3].value=
"2). Your answer "+document.forms[0].elements[item].value+" should have been "+COR+".
"+ANS+"
"+SHOW+"
" }
else
{
if (document.forms[0].elements[item].value==Distractor3%QUESTION.NUMBER%)
{document.forms[0].elements[item+3].value=
"3). Your answer "+document.forms[0].elements[item].value+" should have been "+COR+".
"+ANS+"
"+SHOW+"
" }
else
{
if (document.forms[0].elements[item].value==Distractor4%QUESTION.NUMBER%)
{document.forms[0].elements[item+3].value=
"4). Your answer "+document.forms[0].elements[item].value+" should have been "+COR+".
"+ANS+"
"+SHOW+"
" }
else
{
if (document.forms[0].elements[item].value=="None of these!")
{document.forms[0].elements[item+3].value=
"5). Your answer "+document.forms[0].elements[item].value+" should have been "+COR+".
"+ANS+"
"+SHOW+"
" }
else
{
if (document.forms[0].elements[item].value=="I don't know!")
{document.forms[0].elements[item+3].value=
"6). You did not know! The answer should have been "+COR+".
"+ANS+"
"+SHOW+"
" }
}
}
}
}
}
}
}
}
}
document.forms[0].elements[item+3].value = QT + ET + document.forms[0].elements[item+3].value
}
Choice%QUESTION.NUMBER% = new Array(4)
function question%QUESTION.NUMBER%()
{
QuestionText%QUESTION.NUMBER% = "Given the following equation, which statement is always true?
";
myNumArray = displayarray( 2, 2, 10, 0);
m = myNumArray[0];
n = myNumArray[1];
nwidth=getFontSize()/16*200
nheight=getFontSize()/16*60
m1="
"
NOT = Math.ceil(8*Math.random());
xxx = Math.ceil(4*Math.random());
if ( NOT==1 )
{
Answer%QUESTION.NUMBER% = Correct%QUESTION.NUMBER%
Correct%QUESTION.NUMBER% = "None of these!"
Choice%QUESTION.NUMBER%[xxx] = Distractor4%QUESTION.NUMBER%
}
else
{
Choice%QUESTION.NUMBER%[xxx] = Correct%QUESTION.NUMBER%
}
Choice%QUESTION.NUMBER%[xxx+1] = Distractor1%QUESTION.NUMBER%
Choice%QUESTION.NUMBER%[xxx+2] = Distractor2%QUESTION.NUMBER%
Choice%QUESTION.NUMBER%[xxx+3] = Distractor3%QUESTION.NUMBER%
for ( var yyy=xxx; yyy<=xxx+3; yyy++ )
{
if ( yyy>4 )
{
Choice%QUESTION.NUMBER%[yyy-4] = Choice%QUESTION.NUMBER%[yyy]
}
}
if ( NOT==1 )
{
Choice%QUESTION.NUMBER%[5] = Correct%QUESTION.NUMBER%
Choice%QUESTION.NUMBER%[6] = "I don't know!"
}
else
{
Choice%QUESTION.NUMBER%[5] = "None of these!"
Choice%QUESTION.NUMBER%[6] = "I don't know!"
}
radio = ""
for ( i=1; i<7; i++ )
{
if ( i==1 )
{document.write(QuestionText%QUESTION.NUMBER% + EquationText%QUESTION.NUMBER% + radio + Choice%QUESTION.NUMBER%[i] + "
")}
else
{document.write(radio + Choice%QUESTION.NUMBER%[i] + "
")}
}
document.write('')
document.write('')
}
if ( document.forms[0].name == "FEEDBACK" )
{}
else
{question%QUESTION.NUMBER%()}
]]>