FIT3084 : JavaScript Quiz

 

Develop a short quiz for web users to complete online.

Use JavaScript to validate a user's answers and to provide an automatically calculated score when they click a button labelled "submit".

Provide a "reset" button for the users.

Include in your quiz the following requests for information and the five questions below:

Enter your first name.

Enter your family name.

Enter your telephone number including international dialling code.

Enter your postal address.

  1. Who was the physician responsible for constructing the map of the cholera epidemic in London?

    (i) John Snow (ii) Harry Beck (iii) Napoleon Bonaparte (iv) Alan Turing (v) None of the above

  2. In which of the following languages is it possible to write a CGI script?

    (i) Perl (ii) JavaScript (iii) C++ (iv) Java

  3. What is the date right now?

  4. Enter a word that comes between elephant and giraffe when sorted into alphabetical order.

  5. Enter a number and the factorial of that number.


lecture notes

© Copyright Alan Dorin 2009