The Economics Network

Improving economics teaching and learning for over 20 years

About our JavaScript Gap-Fill Question Generator

Up: HomeQuestion Bank

Create a Question | On-line tests in economics

This Question Generator has been created by the Economics Subject Centre as a service to economists or other academics who want an interactive element in their on-line teaching material. Once you enter the question text and the answer, the generator produces a web page. You can save it as HTML, edit it with any HTML editor and then make it available on an internet or intranet. The student sees a box into which they type an answer and a comment box which tells them if it is correct.

This is not for assessment, but rather to make the readers of your online text pause and think. There are two kinds of questions it can generate: Verbal and Numerical.

Verbal Questions

In this case the answer is a word or short phrase. The match is case-insensitive and ignores preceding or tailing spaces or punctuation. Hence, if you have specified the answer as "Keynes", the following answers by the student will all be rated as correct:

There are optional additional answer boxes, so that you could have "Keynes", "J Keynes", "J M Keynes" and "J Maynard-Keynes" as acceptable answers for the same question.

Verbal questions might test knowledge of terminology, basic factual knowledge, or, if you're careful with making the answer unambiguous, more analytical skills, without the disadvantages of multiple-choice questions, where you have to think of plausible "distractors".

Numercial Questions

In this case, you enter a correct answer and a numerical accuracy figure. The student's answer is marked correct if it is within the specified range. For example, if the answer is 4000 but you will accept anything from 3990 to 4010, enter an accuracy figure of 10. Accuracy figures can be as large or small as you like.

Important note on combining questions

All the functionality required for the question is contained in the HTML document itself. You can even have multiple questions on a single page. However, there should only be one update function: this means that if you combine questions onto a single page, you should erase duplicate copies of that function. The HTML source code makes it clear how to do this.

Including graphics

To quickly produce graphics for use in these questions, you can use the following online tools:

Of course, you can also use images created by your own image software.

Create a Gap-Fill Question