JavaScript Examples
These are preliminary examples of using JavaScript to evaluate student answers and to provide feedback.
NOTE: Netscape Navigator 2.0 is required for display of these demo pages.
- No-brainer Quiz (English)
Short answer quiz. Please don't feel your intelligence is being insulted -- this is just a demonstration of some functionality available in JavaScript.
- No-brainer Quiz using "Cookies"
Same as above, but answers, instead of being encoded into the JavaScript (where they could be seen using "View source"), are sent from the server, encoded as "magic cookies".
- No-brainer Quiz using "Cookies" and limited tries
Same as above, but limits answer attempts to three tries, after which correct answer -- and nasty feedback -- are given.
-
Baseball Quiz using limited tries and hints
After second wrong try you will get a (not very helpful) hint. To answer the questions correctly, you'll need to call on your knowledge of classic comedy routines.
- German Quiz 1
Based on
Max und Moritz, same format as English quiz
- German Quiz 2
Same as above, but the correct answers can be anywhere in the response, so single word answers or phrases can be found in a longer response (i.e., parses the input to find correct answers).
-
Create your own sample quiz
Form which will allow you to create a simple three question short answer quiz using JavaScript. Allows maximum of three tries.
Language Interactive --> Scripting Guide / Scripts / Program Linking / Index
VCU - Foreign Language Department - >International Trail Guide
© 1996 Robert Godwin-Jones