STEPS TO CREATE YOUR OWN
CUSTOMIZED QUIZ
There are two
files that you will need to rename and edit to make your interactive quiz. This is so that people cannot see the answers
in the source code of your .html file.
Please follow the directions below.
One of the files contains the questions “your-topic-quiz.html” and the other file contains the answers and
score comments. This file is “your-topic.js” file.
(b)
Select "Format," then
"Page Colors and Properties"
to change the title of your page.
(c)
Change the "test your knowledge about” section to match your WebQuest.
(d)
Do not delete any of the yellow tags that you see.
(e)
Highlight and type over the questions and responses for each of the five
questions.
Your
quiz file will not work properly until you edit your "quiz.js” file.
You have completed
the first part of your interactive quiz. This is tedious work, but you will enjoy
the fruits of your labor. Always ask for help, even if you just want to verify
that you are doing the right thing.
The
next thing we will do is edit your reamed “quiz.js” file. See instructions below.
Using a text
editor program such as Simple Text (Mac OS) or Notepad (Windows), open your
reanamed “quiz.js.” This file has three
parts. You only have to change two
parts.
Part 1 contains the
correct answers for each of the five questions.
Example:
var
score = 0;
ans[1]
= "b";
ans[2]
= "c";
ans[3]
= "a";
ans[4]
= "c";
ans[5]
= "b";
Carefully
change the correct letters for each question.
Do not delete or change anything
except the letters a, b, c, or d.
Part 2: Give an explanation
for the correct answer. Keep answers
short, even though some questions will lead to interesting class discussions.
explainAnswer[1]="Albert
Einstein was a famous scientist";
explainAnswer[2]="An
asteroid hit the earth changing the earth's climate";
explainAnswer[3]="Plutonium
is a heavy metal";
explainAnswer[4]="The
earth rotates on its axis";
explainAnswer[5]="Astronauts
are in a state of free fall";
Save your work.
Part 3: Optional. You do not have to change the comments for
each score from 0 to 5.
answerText=answerText+"\nComment
: ";
if(score<=0){
answerText=answerText+"Come
on! Give me a break!";
}
if(score>=1
&& score <=2){
answerText=answerText+"Take
the quiz again";
}
if(score>=3
&& score <=3){
answerText=answerText+"You
have signs of intelligence";
}
if(score>=4
&& score <=4){
answerText=answerText+"Very
good";
}
if(score>=5
&& score <=5){
answerText=answerText+"You
are a genius!";