Tests/Quiz

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Tests/Quiz.

[QIZ001TAS] : Testing Quiz


  1. Click the Turn editing on button on the top right corner window.
  2. And go to the Quiz topic, click the Add an activity… dropdown box and choose Quiz
  3. Type Test Quiz as the name of the quiz and type anything in the Introduction text-box. Leave the other options as their default values. Click Save Changes and Edit Questions.
  4. If you have installed Moodle Test Course, then you should have couple of questions ready to be chosen. Otherwise, get the course backup files here (https://docs.moodle.org/Tests)
    1. Choose these three following questions from the list by clicking the << sign, right on the left of the question:
      1. What’s in a name?
      2. Phone Home
      3. Life, the universe and everything
    2. You can see each question added in the quiz (from the left column) each time you click the << button. Play around with the question ordering as well.Tests-quiz1.jpg
  5. Click the preview button on the tab bar at the top you should see the preview of the quiz. The question order should be exactly as what you have just set.

[QIZ002TAS] : Testing Quiz Timer


  1. From the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. Set Time limit to 1 Minutes and click Save Changes
  3. Click the Preview tab-bar and you can see there is timer counting down on the top left corner which shows how much time left to finish the quiz. Tests-quiz2.jpg
  4. When it reaches 00:00 you should be redirected to the result page.

[QIZ003S] : Testing Quiz


  1. From the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. Change the following settings:
    1. Questions per page: 1. There will be only one question per page
    2. Shuffle questions: Yes. Questions will be shuffled.
    3. Shuffle answers: Yes. Multiple choice answers will be shuffled.
    4. Attempts allowed: 2 attempts. Click Save Changes. Tests-quiz3.jpg
  3. Click the preview tab and you should notice couple of differences with the previous quiz.
    1. You should only see one question per page
    2. The order of questions will be randomized
    3. Multiple choice answers will be randomized Tests-quiz4.jpg
  4. Now, switch to the student’s browser view and attempt the quiz. We would test the number of maximum attempt. This should be your second attempt, if you have attempted more than twice, then change the value of Attempts allowed so that this attempt will be your last attempt.
  5. Attempt the quiz and submit the page. When you see the result page, you should get a message saying “No more attempts are allowed”Tests-quiz5.jpg

[QIZ004S] : Testing Quiz (Each attempt builds on the last)


  1. From the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. Change the Each attempt builds on the last: from No to Yes. And also change Attempts allowed back to Unlimited attempts.
  3. Now switch to student’s browser and re-attempt the test (the questions appear randomly):
    1. Steven Spielberg directed E.T: True
    2. According to Douglas Adams, what was the meaning of life? 42
    3. What is the name of the Course Management Software you are currently using? Moodle
  4. Click Submit all and finish. You should be redirected to the result page. Click continue.
  5. On the grade page, click the Re-attempt quiz button to take the test again.
  6. You should be able to see all the same three questions along with the answers that you gave from the attempt before. As shown in the screenshot below:Tests-quiz6.jpg

[QIZ005S] : Testing Quiz (Grading Method)


  1. From the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. Change the Grading method from Highest grade to Average grade.
  3. Now, switch to student’s browser and view the result page. You should see that the the final grade is now changed to the average grading method. Depend on the grade that you had from the quizzes before, calculate the average and the number should be the same as what appear on the screen. Tests-quiz7.jpg
  4. Repeat step 2 and 3 twice, by changing the grading method to first attempt as well as last attempt.

[QIZ006S]: Testing Quiz (Adaptive Mode and Apply Penalties)


  1. From the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. Change the Adaptive Mode to Yes and Apply Penalties to Yes. Change Each attempt builds on the last option back to No.
  3. Now switch back to student’s browser and re-attempt the quiz.
    1. Take the Multiple choice question: According to Douglas Adams, what was the meaning of life?
    2. Pick 21 as your answer and click submit. You should get a message in the bottom saying: Incorrect Marks for this submission: 0/1. This submission attracted a penalty of 0.1. Tests-quiz8.jpg
    3. Answer the other two questions with the correct answer. And click Submit all and finish.
  4. You should get a raw final score of 2.9 out of 3, since the wrong answer attracted 0.1 penalty. The final grade should be 9.67 out of 10.

[QIZ007TAS]: Testing Quiz (Decimal Points)


  1. This should be a quick one, from the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. Change the Decimal Points to 0.
  3. Switch to student’s browser and view the result page (quiz page). You should see that the Final Mark (whatever type you set either Average, or Final, or Last Attempt) comes with no decimal point. Tests-quiz9.jpg

[QIZ008TAS]: Testing Quiz (Student’s review – Immediately after the attempt)


  1. From the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. Now we are testing one of the main feature of quiz, the student’s review.
  3. We want students to be able to review the quiz Responses, Scores, Feedback and Answers immediately after the attempt. So make sure all the four checkboxes on Answers immediately after the attempt are ticked.Tests-quiz10.jpg
  4. Now go to student’s browser and attempt the quiz. Take the multiple choice questions again. Pick a wrong answer, say choose 41. You should get the following screen: Tests-quiz11.jpg
    1. You can see the feedback and score immediately after you answer the question. Now click Submit All and Finish.
    2. A message box should appear saying, You are about to close this attempt you will no longer be able to change your answers. Click OK.
    3. Since you have ticked the Response, then you should be able to view the Feedback page, which looks like the following: Tests-quiz12.jpg

[QIZ090TAS]: Testing Quiz (Student’s review – Later, while the quiz is still open)


  1. From the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. We want students to be able to review the quiz Responses, Scores, Feedback and Answers, Later while the quiz is still open. So make sure all the four checkboxes on Later while the quiz is still open are ticked. Tests-quiz13.jpg
  3. Now, switch to student’s browser and re-attempt the quiz. Give wrong answers to all the questions. The correct answers are (make sure you answer other than these):
    1. Multiple Choice question: 42
    2. Short Answer question: Moodle
    3. True False question: True
  4. After answering all the questions, Submit All and Finish. A message box should appear saying, You are about to close this attempt you will no longer be able to change your answers. Click OK.
  5. You will be redirected directly to the result page, and will not be able to see the review page straight away. However, you can click the link that shows number of attempt. Tests-quiz14.jpg
  6. Click the link for the last attempt and you will get the review page where you can see the correct Answers, Feedbacks and score for each page.

[QIZ010TAS]: Testing Quiz (Student’s review – After the quiz is closed)


  1. From the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. We want students to be able to review the quiz Responses, Scores, Feedback and Answers only After the quiz is closed. So make sure all the four checkboxes on After the quiz is closed are ticked. Tests-quiz15.jpg
  3. Switch to student’s browser and attempt the test. Give wrong answers to all the questions (you should know all the right answers by now :-) ), so then we could see the feedback and answers at the end.
  4. After answering all the questions, Submit All and Finish. A message box should appear saying, You are about to close this attempt you will no longer be able to change your answers. Click OK. You will be redirected directly to the result page, and will not be able to see the review page.
  5. Switch back to the admin’s browser, and update the quiz setting. Now change the closing date to a date that has passed. When I did this test, the date was 15 March 2006, I changed it to 9 March 2006. Tests-quiz16.jpg
  6. Now, go back to the student’s browser and refresh the page. You should not be able to see the Re-attempt the quiz button again. Instead, you will see links on each of number of quiz attempt.
  7. Click on the last quiz attempt that you have made and you will be redirected to the review page that shows your answers, the correct answers, feedbacks and also the scores for each question. The page looks like the following: Tests-quiz17.jpg

[QIZ011TAS]: Testing Quiz (Student’s review – After the quiz is closed)


  1. From the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. Change the option Show quiz in a “secure” window to Yes. The "secure" window tries to provide a little more security for quizzes (making copying and cheating more difficult) by restricting some of the things that students can do with their browsers.
  3. Now, switch to student’s browser and re-attempt the quiz. I tested it using three most popular browsers (and their current version at the time of writing this document): Mozilla Firefox 1.0.7, Microsoft Internet Explorer 6.0.2 , and Opera 8.5.1. The secure window works most effectively in Explorer, partially works in Firefox and does not work in Opera. The tests are:
    1. The quiz appears in a new full screen window (Only works in Explorer)
    2. Some mouse actions are prevented (eg. Right click): This works both in Explorer and Firefox, however Opera still allows right click.
    3. Some keyboard commands are prevented (eg. Ctrl-A – select all and Ctrl-C – copy in Windows), this is a common trick done by student to get a copy of the questions by selecting all the text on the browser and copy it to clipboard, and paste them in a text editor): By the time this text is written, it only works in Explorer. The other two browsers allow the keyboard shortcut

[QIZ012TAS]: Testing Quiz (Require password)


  1. From the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. You should see the require password textbox, put the word password as the password. Tests-quiz18.jpg
  3. Now switch to student’s browser again, and re-attempt the quiz. You should be prompted with a password prompt Tests-quiz19.jpg
  4. Type password as the password :-) and click OK.
  5. You should get the quiz questions presented on the screen.

[QIZ012TAS]: Testing Quiz (Require network address)


  1. From the admin’s browser, click Update this Quiz button on the top left corner. You should be presented with the quiz setting page.
  2. Look at the require network address option. You can restrict access for a quiz to particular subnets on the LAN or Internet by specifying a comma-separated list of partial or full IP address numbers. This is especially useful for a proctored quiz, where you want to be sure that only people in a certain room are able to access the quiz.
  3. What we will do here basically is to put IP number range which does not represent our own IP number so that we should not be able to attempt the test. In my case, my IP is 127.0.0.1 and so I put the following number (any number that doesn’t match my IP range) in the textbox. Tests-quiz20.jpg
  4. Now, switch to student’s browser and refresh the page. You should not see the re-attempt button on the result page anymore. That means as a student, you cant attempt the quiz since you are not coming from the allowed IP address range.
  5. Go to the admin’s browser again, and now change the value of require network address to your IP address. In my case it is started with 127.0.0. and so I put that value in and when I refresh the student’s browser. Surprise! I can see the re-attempt button again.