Skip to main content
Social Sci LibreTexts

14.3: WebCT Types of Quiz Questions

  • Page ID
    88231
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    WebCT (4.X)

    In contrast to some of the other WebCT tools, such as the calendar or email, the WebCT Quiz Tool is more an environment than a single application. The WebCT Quiz Tool environment has four important parts, one is the question database, another is the quiz index, a third is the quiz editor and the fourth is the actual WebCT quiz (see Figure \(\PageIndex{1}\)).

    14.3.1.png
    Figure \(\PageIndex{1}\)

    The question database contains the questions used in a quiz, the quiz editor organizes the questions from the database into a WebCT quiz, and the quiz index (technically referred to as the Quizzes/Surveys page) provides a quick index/link to all the quizzes and their results/statistics contained in the course module. This logical structuring allows the same question database to be used in a variety of different quizzes. You can even export questions from the question database to self-tests.

    You access the Quiz Tool through the Control Panel. From the Control Panel you click on Quizzes/Surveys and that takes you to the Quizzes/Surveys page. Here you can create a new quiz or survey, edit an old quiz or survey, and modify the look of the Quizzes/Surveys homepage. From the Quizzes/Surveys page you can link to the question database. The Quizzes/Surveys page is the central hub of the Quiz Tool.

    As part of the content of a quiz, you can link to external sources, such as images or other file types (HTML, audio, video, PowerPoint, XLS, etc.). Though the student would not be aware, the code causing this linking can be contained either in the individual questions (in the question database) or in the quiz module (entered through quiz editor). I will discuss linking from individual questions to other files first, and then I will discuss linking from the quiz module to other files. JavaScript can be used in this linking process to significantly enhance quiz presentation.

    There are five different types of quizzes in WebCT, and one type, the short answer quiz, allows the student to enter either a single word or a more complex longer phrase as answer. The answers for these quizzes can be parsed using RegularExpression coding. This means that immaterial or trivial typing mistakes on the part of a student, such as an extra space between words, can be identified and will not be penalized. This reduces some of the anxiety often experienced with online testing. After discussing linking to files, I examine RegularExpression coding in some detail.

    The WebCT Question Database

    There are five different types of WebCT questions:

    • Multiple Choice: MC questions are of two types, students are allowed to select either you or multiple answers to a question. The following example only demonstrates the one answer type.
      14.3.2.png
      Figure \(\PageIndex{2}\)
    • Short Answer: Students enter a word, phrase or short sentence, which is then matched against possible answers. Short answer types of questions can use the RegularExpression feature for evaluating answers (more on this feature later).
      14.3.3.png
      Figure \(\PageIndex{3}\)
    • Matching: Students match items in relation to two columns. This type of question uses a pull-down menu.
      14.3.4.png
      Figure \(\PageIndex{4}\)
    • Paragraph: Students answer the question using a longer essay-type format. The instructor or the teaching assistant must grade this type of question manually.
      14.3.5.png
      Figure \(\PageIndex{5}\)
    • Calculated: Students answer a mathematical question, which requires the use of a formula. In creating the question, the designer specifies the mathematical formula and the set of variables it uses, along with a range of values for each variable. Up to 100 different sets of answers are generated from the set of variables specified (each value in the table below is a variable, which in principle varies from one student to the next).
      14.3.6.png
      Figure \(\PageIndex{6}\)

    In each type of question shown above, you can link either to content contained within a WebCT directory or to content external to the WebCT course module.

    Linking to Images From A WebCT Quiz Question

    Though it does vary slightly from question type to question type, the entry screen to create or edit a quiz question usually has seven sections: category, title, question, settings, answers, and general feedback.

    14.3.7.png
    Figure \(\PageIndex{7}\)
    14.3.8.png
    Figure \(\PageIndex{8}\): As well, you can also add other sections, for example, I always add a section for the level of difficulty of a question.

    Two easy methods of linking to images

    14.3.9.png
    Figure \(\PageIndex{9}\): In the question database section accessed with the question editor, WebCT provides a field to link to images.
    14.3.10.png
    Figure \(\PageIndex{10}\): This field is primarily useful when a common image is used to provide information for each possible answer in the question, as in this example.

    It is a simple matter to create the link to the image, click on the browse button to search the directory structure of WebCT for your graphic; you simply need to know where the image is located in your WebCT file structure.

    14.3.11.png
    Figure \(\PageIndex{11}\): If you want to be a little more creative in the use of images in your questions, each of the question field, the answer # field, the feedback # field, and the general feedback field can contain code to images, such as the HTML image tag, <IMG SRC=“”>, which is used to automatically display graphics in a HTML page. (These fields can also contain anchor links to other HTML pages or external web pages. More on this later.)
    14.3.12.png
    Figure \(\PageIndex{12}\): For example, suppose you wanted a graphic associated with each answer in a question. Simply enter the appropriate <IMG SRC=“”> tag in the answer field for each possible answer in your question.
    14.3.13.png
    Figure \(\PageIndex{13}\): I have created quizzes with up to seven possible answers (I do not know the limit)
    14.3.14.png
    Figure \(\PageIndex{14}\): An undocumented (though discussed on the WebCT listserv) variable in WebCT is the _COURSEID_ variable. This variable takes on the value of the course root name; you can use it to locate the path to the image.

    The value of using this variable is that it enables you to easily transfer a database of questions from you WebCT module to another, as long as the directory structure is logically the same. It also allows you to zip your course into a different WebCT root name.

    Even though I am using the multiple choice question as an example, these methods of linking to files to provide content for a quiz apply to all the question types. The WebCT quiz environment is quite versatile and rich. Beyond the scope of this article, there are many other options that can be set at the individual question level, such as randomization of the index, multiple choice questions can be configured to accept only one answer or a number of possible answers each with a different value, etc. In addition, the quiz module itself, as distinct from the questions in the quiz, has a variety of different settings, which allows the quiz to be managed in a variety of different ways. In the section on supervising quizzes, I will discuss in some detail the quiz module settings.

    In summary then, from within WebCT questions, there are two easy ways to link to images for display during a quiz, you is using the IMAGE FIELD in the question section and another is using the <IMG SRC=“”> tag within the question field, the answer # field, the feedback # field, and the general feedback field.

    Using JavaScript To Link To Files

    14.3.15.png
    Figure \(\PageIndex{15}\): Besides using HTML tags in the fields of a question, you can also use JavaScript to link to images, and this gives you the ability to create pop-up windows in your quizzes.
    14.3.16.png
    Figure \(\PageIndex{16}\): Besides linking to images, you can also link to other types of web documents, everything from standard HTML pages, to audio files, video files, PowerPoint files, etc. These links can be to files within your course or to files external to your course. For example, I frequently provide a link to the Merriam-Webster Online Dictionary for many of my quizzes.

    A simple JavaScript to generate a pop-up window is shown here. [The code in red is not part of the JavaScript required to create the pop-up window link.]

    14.3.17.png
    Figure \(\PageIndex{17}\): This script can be placed in the question field of a question template (only a portion of the JavaScript is shown in the following field).

    Links From The WebCT Quiz Module

    The quiz module is created/edited through the Quizzes/Surveys link. Go to the Quizzes/Surveys page and select the quiz. When you click on the quiz name you are automatically put into the quiz editor. The quiz editor assembles and connects the various parts of a quiz (which I am referring to as the quiz module). Most importantly, through the quiz editor you link the questions from the question database to a quiz. Here you can add questions, delete questions, modify the settings for a quiz, and preview the quiz, to name but a few of its functions. This is where you can program WebCT to randomly generate a set of questions from a database of questions.

    14.3.18.png
    Figure \(\PageIndex{18}\):The quiz editor allows you to modify the page style of the quiz. One of the modifiable style features is the upper textblock.
    14.3.19.png
    Figure \(\PageIndex{19}\):In the textblock you can place a variety of JavaScripts. (Just a note of caution at this juncture: You should always do a backup of your course before you try any JavaScript in textblocks. Some JavaScript can completely disable a page. So, it is handy to have a backup of your course in case your JavaScript crashes your system.) When I want a link to the same information for every question in a quiz, I place the JavaScript code that creates the pop-up window/link in the upper textblock of the quiz module.
    14.3.20.png
    Figure \(\PageIndex{20}\): When the JavaScript is placed in the textblock, it operates on every page of the quiz.
    14.3.21.png
    Figure \(\PageIndex{21}\): The JavaScript code used to generate the pop-up window for the quiz linked to this page is shown here.

    Advanced Features With HTML and JavaScript in WebCT Quizzes

    14.3.22.png
    Figure \(\PageIndex{22}\): In two of the quizzes created for this section on WebCT Quizzes, I used some relatively advanced coding features of HTML and JavaScript.

    Use of HTML in question field

    For example, in the calculated question example, I create the table for the quiz using the following HTML code.

    14.3.23.png
    Figure \(\PageIndex{23}\): Calculated questions allow the use of variables, and if you scan this code you will notice the variables by looking for braces, e.g., { }. Using the variable feature of calculated questions enables you to generate hundreds of examples from one question.
    14.3.24.png
    Figure \(\PageIndex{24}\): I created this code in the HTML editor Dreamweaver, which gives a WYSIWYG view of the variables.
    14.3.25.png
    Figure \(\PageIndex{25}\):… and then placed the code in the question field of the calculated question template (only the top part of the code is shown here).

    Use of JavaScript memory variables

    14.3.26.png
    Figure \(\PageIndex{26}\):In the multiple choice question on page 230 displaying a graphic for each possible answer, I use JavaScript memory variables to supply the category reference labels, as well as the standard form formulas. This enabled me to create one template to generate over 100 exercises; I only had to change the memory variable entry in one location rather than eight locations for each question (which is what I would have to do if I had entered the values as constants). The JavaScript code used to create the memory variables looks like this.
    14.3.27.png
    Figure \(\PageIndex{27}\):Similar to the first example, the code is placed in the question field of the multiple choice question (again only the top part of the code displays in this example).
    14.3.28.png
    Figure \(\PageIndex{28}\):Subsequently, each answer field has code similar to the following which makes use of the variables defined by the JavaScript in the question field./figcaption>

    Short Answer With Regular Expression

    14.3.29.png
    Figure \(\PageIndex{29}\):As is the case for the other quiz types, the entry screen for a short answer quiz generally has five sections: category, title, question, answers, and general feedback.
    14.3.30.png
    Figure \(\PageIndex{30}\):The answer section, however, is a little more complex than on the multiple choice question. In this question type, there is a pull down menu to select the grading option, and one grading option is Regular Expression. The regular expression option enables you to parse the input. This assists in reducing the number of simple data entry errors, such as the student entering an extra space between words, in a multiple word answer.;

    In the example shown above, the ^ tells the parser that the entry has to begin at the beginning of the line; the + tells the parser that it can match one or more occurrences of the character immediately to the left (in this case a space); the \ tells the parser that the character following is a period (not a meta character); the ? tells the parser that the character to the left (the period) may or may not be there, but if it is there it should only occur once; and the $ tells the parser this should be the end of the entry. As I do not want my quizzes to be a course about typing, regular expressions can reduce significantly the number of answers marked incorrect due to trivial typing errors. This mean all the following would be treated as correct by the regular expression parser:

    Some O are F.

    some o are f.

    some o ARE F

    SOME O ARE F

    The following are links to pages about Regular Expression:

    One of the links is to an applet, which tests your RegularExpression, another is to the Regex Coach, a program which can be downloaded. I have found both these tools invaluable when creating regular expressions. The other links are to online reference material about RegularExpression. Some of these links were created and are maintained by Henk Schotel. For those who have visited the WebCT Home Page and specifically the Dr. C support facility, you will recognize Henk as one of the experts who contributes to Dr. C.


    This page titled 14.3: WebCT Types of Quiz Questions is shared under a CC BY-SA license and was authored, remixed, and/or curated by Sandy Hirtz (BC Campus) .

    • Was this article helpful?