Each question is an object with common properties. The questions are packed into an array and those are sent to the Quizzler.
Only include explanation, imgSrc, and imgLink if you're putting something
there.
The format for the Quizzler code (v3) is as follows:
case "topicname":
return [
{
q: "What is the question?",
a: "This is the correct answer.",
b: "This is a distractor.",
c: "This is a distractor.",
d: "This is a distractor.",
explanation: "Optional: explain why the answer is correct.",
imgSrc: "http://__________",
imgLink: "text to click on" },
//add more questions here
];
To help, create a question set starting with the code snippet above. Choice a: must always have the correct answer for the Quizzler to score correctly. It won't always show as Choice A in the applet though. Also, you must always include four possible choices. Please use correct grammar and spelling.
To add a second question, copy the code from brace { to brace }, including the comma. Paste it in before the ending bracket ]. There's a sample below.
Please keep questions grouped by category. Make a second "case" for a second topic, and so on.
You can use HTML tags to format text or include images.
You can do all this in a regular text file or Google Doc. Then email me the file and I'll check it out.
case "atomicstructure":
return [
{
q: "Which subatomic particle has a positive charge?",
a: "proton",
b: "neutron",
c: "electron",
d: "beta radiation",
explanation: "By definition, protons are positively charged. Neutrons are neutral. Electrons are beta radiation
and they are negatively charged."
}, //this ends the first question
{ //this starts the second question
q: "Which subatomic particle is neutral and therefore has no charge?",
a: "neutron",
b: "proton",
c: "electron",
d: "alpha particle",
explanation: "By definition, neutrons are neutral. Protons are positively charged. Alpha particles are helium
nuclei and have two protons (positive) and two neutrons (neutral) and so have an overall positive charge of 2+.
Electrons are negatively charged."
}, //this ends the second question
//add more questions here
];
Use this applet to make questions and then send them to Dr. Wolf. You will need an email address to send them.
Type or select a topic name. Then add your question and answer choices. Each question you create will be formatted as code and shown in the result window. You can copy and paste this into an email.
Click the CREATE button to convert your input to code. This will also clear out all the input fields except TOPIC.
The code appears below the buttons. Highlight all the code and copy/paste it into an email to Dr. Wolf.
You can also SAVE and LOAD your questions to your local computer's browser. If you use a different machine, you won't have access to the same storage file. You can also DELETE the storage file if you want to start fresh.
Created questions appear below the buttons.
| TOPIC: | |
| Question: | |
| Correct Answer: | |
| Distractor 1: | |
| Distractor 2: | |
| Distractor 3: | |
| Explanation: |