$title = "2.3.1. Add or Edit Questions";
require "../header.php";
?>
2.3.1. Add or Edit Questions
There are two different ways to add or edit questions to the database. The first way is to add or edit the question using the "Add" or "Edit" buttons shown on
the main GUI in figure 2.3.1. The other way to add or edit a question is to right click on an existing
question or an empty space in the database, and choose to either add a question above, or below the selected question or to edit the selected question. For these scenarios,
the user begins with the blank question bank pictured in figure 2.3.1.
Adding a question using a button
Once a user clicks the "add" button on the main question database GUI, they are presented with a question
addition dialog. This dialog is shown below in Figure 2.3.2.
Figure 2.3.2: Question Add Dialog
Adding a question using right-clicks
Figure 2.3.3: The right click dropdown
Figure 2.3.4: The expanded dialog for a Short Answer question
Once the question is expanded for short answer questions, the user then proceeds to fill in the question dialog as shown in Figure 2.3.5 below.
Figure 2.3.5: The completed dialog for a short answer question
Figure 2.3.6: The question bank after the initial question addition
Figure 2.3.7: The expanded dialog for the Essay Questions
The user then fills in the add essay question dialog, resulting in figure 2.3.8 below.
Figure 2.3.8: The completed dialog for the Essay Questions
Figure 2.3.9: The question bank after the second question addition
Figure 2.3.10: The expanded dialog for Fill in the Blank Questions
The user then proceeds to fill out the dialog, which results in figure 2.3.11 below:
Figure 2.3.11: The completed dialog for Fill in the Blank Questions
Figure 2.3.12: The question bank after the third question addition
Adding a True/False QuestionWhen the user selects "True/False" from the type dropdown menu in Figure 2.3.2 above, the expanded dialog with True/False specific options is displayed as shown in Figure 2.3.13 below:
image("2.3.13","Empty true/false question","images/questionbank-TrueFalseEmpty.png"); ?>The user then proceeds to fill out the dialog, which results in figure 2.3.14 below:
image("2.3.14","Completed true/false question","images/questionbank-TrueFalseFilled.png"); ?>
Figure 2.3.15: The question bank after the fourth question addition
Adding a Code QuestionWhen the user selects "Code" from the type dropdown menu in Figure 2.3.2 above, the expanded dialog with Code specific options is displayed as shown in Figure 2.3.16 below:
image("2.3.16","Empty code question","images/questionbank-CodeEmpty.png"); ?>The user then proceeds to fill out the dialog, which results in figure 2.3.17 below:
image("2.3.17","Completed code question","images/questionbank-CodeFilled.png"); ?>The format of the script and the way code grading works is discussed in section 2.6.
Figure 2.3.18: The question bank after the fifth question addition
Adding a Matching QuestionWhen the user selects "Matching" from the type dropdown menu in Figure 2.3.2 above, the expanded dialog with Matching specific options is displayed as shown in Figure 2.3.19 below:
image("2.3.19","Empty matching question","images/questionbank-MatchingEmpty.png"); ?>The user then proceeds to fill out the dialog, which results in figure 2.3.21 below:
image("2.3.20","Completed matching question","images/questionbank-MatchingFilled.png"); ?>The application will enforce that each key has a unique mapping to an answer upon saving the question.
Figure 2.3.21: The question bank after the sixth question addition
Adding a Multiple Choice QuestionWhen the user selects "Multiple Choice" from the type dropdown menu in Figure 2.3.2 above, the expanded dialog with Multiple Choice specific options is displayed as shown in Figure 2.3.22 below:
image("2.3.22","Empty multiple choice question","images/questionbank-MultipleChoiceEmpty.png"); ?>The user then proceeds to fill out the dialog, which results in figure 2.3.23 below:
image("2.3.23","Completed multiple choice question","images/questionbank-MultipleChoiceFilled.png"); ?>The user may select any number of correct answers. If the user selects only one correct answer, then the question on the test allows the student to select only one answer via radio buttons. If zero or many answers are selected then the question on the test allows the student to select multiple answers via checkboxes.
Once the user clicks "OK", the question is added to the question bank as shown below in figure 2.3.24.
Figure 2.3.24: The question bank after the seventh question addition
Figure 2.3.25: The completed formatted short answer question
Figure 2.3.26: The question bank after the eigth question addition
Figure 2.3.27: Example Edit Dialog with Pre-existing Information
Figure 2.3.28: Question Edit Dialog - In Progress
Figure 2.3.29: The edited question now appears in the question bank