Quizzes

Quizzes

A lesson may contain quizzes to test you on the knowledge you've gained throughout that lesson. Quizzes come in a variety of flavours that can be subdivided into Coding Quizzes and Multiple Choice and Short Answer. You may challenge yourself on any of these quizzes at any point you want!

In order to be awarded the Digital Badges badge for a module you must complete all the available quiz content for each lesson in a module. In order to be awarded the advanced badge you must complete both the basic and the advanced quiz content for each lesson in a module.


Coding Quizzes

The coding quizzes will test the practical skills you've gained in the lesson. These coding quizzes may come in the form of writing a class, writing a method or function or a set of simple statements. We will run some unit tests to make sure your code compiles and works as it should.



Coding Quiz



Depending on the specific type of coding exercise, you will be given either a problem or a prompt to write code. You can choose to write the quiz in any of the available languages. Unfortunately not all languages have compilers yet. Simply do your best to complete the exercise and click submit to check if your code is correct!


Using the code editor

The box where you type your code is a full-featured editor designed to help you as you write. It offers:

  • Syntax highlighting: keywords, strings, and comments are coloured so your code is easier to read.
  • Autocomplete suggestions: as you type, a small pop-up suggests keywords, common names, and (for Java and C++) handy snippets such as sysout, cout, main, and a counted for loop. In Python you also get the language's built-in functions. Press Ctrl + Space at any time to open the suggestions manually, use the ↑ / ↓ arrows to choose one, and Enter or Tab to insert it. Snippets drop in a template with blanks you can jump between using Tab.
  • Automatic brackets and quotes: typing (, [, {, " or ' inserts the matching closing character for you.
  • Code folding: click the small arrow in the left margin next to a block (a class, method, or loop) to collapse or expand it, so you can hide the parts you aren't working on.
  • Undo / redo: Ctrl + Z and Ctrl + Y (or Ctrl + Shift + Z) work as usual, and Tab indents your code.

Tip: the suggestions are there to speed you up, not to solve the exercise for you; they don't know the answer, they just save you typing. The editor never sends your code anywhere until you click Submit.

When your code doesn't compile

If your code doesn't compile, or stops before any test runs, the quiz says "Your code didn't compile or run, so no tests ran" and shows the error message from the compiler right below it. The message names the problem and where it was found: "Your code, line 3" is line 3 of the code in your editor. Your code runs together with the quiz's hidden setup and tests, so a problem can also be found there; the message then says "Quiz setup" or "Quiz tests" instead of a line number. That usually means the tests could not use your code, for example because a class or method has a different name than the starter code gave you. Hide Detailed Output closes the message.

Keep the class or function names the starter code gives you, because the tests call your code by those names. In Java, also leave your class without public: the tests are the only public class, and a second one stops the program from compiling.

Sample files in coding quizzes

Some coding quizzes come with data files your code can read, for example a CSV to total up. They are listed under the code editor in a box called Sample files. Click View next to a file to read it, then open it in your code by its exact name (capital letters included), for example open("sample.csv").

  • Run (shown on quizzes with a limited number of attempts) runs your code on the sample files you can see. It does not use up an attempt, and it does not use the quiz's tests.
  • Submit runs the quiz's tests. The tests may use more files than the ones you can see. When some files are not shown, the box says how many ("1 more file is used by the tests and is not shown"). Write your code to read the sample files by name and work for any data of the same shape, not for one particular set of numbers.
  • The same files are used whichever programming language you choose.


MCQ and Short Answer

The other form of quizzes will test the theoretical knowledge you've gained in a lesson. No surprises here, these are the same old multiple choice and short answer questions you've gotten to know and love! If your instructor wrote instructions for the quiz, they appear above the first question, in the language you have selected.

After you submit a multiple choice quiz, the result line counts points, because a question can be worth more than one. For example: "Passed. You scored 2/2 points (1 of 1 question correct). You need 1 point to pass."



MC Quiz

Due dates and late work

When a quiz has a schedule banner, it explains its grade consequence. An unscheduled practice quiz also says it does not count. Titles help you tell quizzes apart when a page holds more than one, and links straight to a quiz keep its title and notice below the fixed page headers. When the credit window closes in points grading, the notice says new attempts are practice and keeps your best score. A section using dates only as a schedule says you can still solve the quiz.

The full guide, with worked examples and answers to common questions, is Due Dates and Late Work.

Some sections give their quizzes a due date and a points value. When yours does, you will see it in four places, all saying the same thing:

  • On the quiz itself. A line above the quiz says when it is due, in your section's timezone, and what it is worth. Inside the last day it turns amber and counts down. Hover the date to see it in your own local time.
  • The Assignments & Grades tab of your section, with each quiz listed under its lesson, with your status and points on it and a link straight to it. A late quiz's status names the deduction (for example LATE -25%).
  • Your dashboard at "My sections", where an Upcoming deadlines card lists what is due across every current section, by date or by section, and each section card shows its next one.
  • Your course home, where an Upcoming deadlines card (the same card as on My sections, for this one section) separates overdue work that still earns credit from upcoming work and links to missing work. Lesson chips distinguish Overdue, still earns credit from MISSING, using the same credit rule as Assignments & Grades. A waived late submission in points grading says LATE, no penalty.

Late work is always accepted. You can always open and submit a quiz, even long after its deadline. What changes is the credit. A typical section takes 25% off for the first day late and 50% for the second, after which the quiz still works but earns nothing; your section's exact rule is printed on the quiz and at the top of your Assignments & Grades tab. Before you submit late, the quiz tells you the exact cost ("Submitting now deducts 25% of the points (5 of 20). This rises to 50% in 18 hours."), so it is never a surprise afterwards.

Your best attempt counts, after its own late deduction. So a late resubmission only helps if it beats what you already have once the deduction is applied, and the quiz says so when that is the case. If your section grades several programming languages, the quiz also tells you how many of them you have finished, since a perfect score in one language is not the whole mark.

Some quizzes limit attempts. When yours does, the coding quiz shows two buttons instead of one: Run, which runs your code without the hidden tests and never uses an attempt, and Submit, which is graded and shows "Attempt 2 of 3". Run uses only your own code, so if the quiz gives you classes to use (ones your instructor wrote, described in the instructions), Run reports an error such as "cannot find symbol" or "not declared"; Submit includes them. The count is per programming language. Once your attempts are used the quiz still runs, for practice, and says plainly that it no longer counts.

Your instructor can give you a different deadline. If they do, the quiz shows yours rather than the section's ("Your due date: Oct 6, 11:59 PM (extended)"), you are not warned about a late deduction before your own date passes, and the quiz is not counted as missing until then. You do not have to ask for this to be visible: if you have one, the quiz simply shows it.

You can also be excused from a quiz. When you are, the quiz says so and it leaves your total entirely. That is not a zero: if you were excused from a 20-point quiz, your grade reads "18 of 20" rather than "18 of 40". You can still open the quiz and solve it for practice.

If you joined the section after some work was already due, your instructor can extend all of it at once. You will see the new dates on your Assignments & Grades tab the moment they do.

Sections that grade by lessons passed rather than by points still show you these dates as a schedule, and say so: late work is marked late there, but nothing is deducted from your score.


Your Grades

Passing and failing a quiz shows up immediately in the player, but you can also see your results laid out as a real grade: open a section from "My sections" and click its Assignments & Grades tab, or use the My grades rail item to see every section you are in at once, each linking into that section's own Assignments & Grades tab. (Until October 2026 a section had separate Quizzes and Grades tabs; an old Grades link now opens Assignments & Grades.) Your number there is read straight from the same gradebook your instructor sees, never a separate calculation just for you.

Each Open link there opens that quiz inside its lesson, and a screen reader reads it with the quiz's title ("Open Practice midterm") so several rows are not all just "Open". The page scrolls to the quiz and leaves its title and its Graded or Ungraded notice visible below the lesson's sticky header.

The tab is one card per lesson, in course order, with that lesson's quizzes as rows, and a column of cards on the right. In a section scored in points, each quiz shows the points you earned out of what it is worth, and the Graded work card shows your current grade as a percentage, with the points you have earned so far. In a section graded by lessons passed, each lesson card shows your result in that lesson, per language, and the Graded work card shows that grade instead of a percentage. Quizzes that do not count toward your grade are marked Ungraded inside their own lesson, with your own result in grey; they never change your grade. All work, To do and Graded narrow the list, and the search box and the list / grid buttons work as on the section's Home tab.

Some sections are being moved from lesson points to per-quiz points. A section is only moved when doing so leaves every student's total exactly as it was, so your score does not change when the layout does. N/A means a quiz was never offered to you in a language your section counts, which is not the same as scoring zero.

Your quiz results belong to the specific section you earned them in, not to the course as a whole. If you join a different section of the same course later (for example, retaking it in a new term), that new section starts fresh: its quiz results are separate from any earlier section you were in. This is stated again on the join confirmation page before you commit to a new section, so it is never a surprise after the fact.


Trying quizzes on public lessons without an account

A lesson in an open (OER) course can be tried, including its quizzes, without signing in first: your submission is graded the same way a logged-in attempt is, but nothing is saved to a gradebook since there is no account to attach it to. Any other lesson (one in a Registered Only course, or not yet published) still requires you to sign in and be enrolled in a section of that course, same as viewing the lesson itself does.