Skip to content

Taking a quiz

How to find a quiz on LCOJ, take it, submit it, and read your result and the ranking.

⏱ ~10 min · 👤 Students and learners · 🔑 A signed-in LCOJ account

Before you start

Attempt lifecycle

Each time you press start you create an attempt. It is graded automatically the moment it is submitted, and your best score is used for the ranking.

Find a quiz

  1. Click Quizzes in the top menu (on luyencode.net the menu item is labelled Trắc nghiệm), or open https://luyencode.net/quizzes/ directly.
  2. Pick a status tab: All, Upcoming, Ongoing or Past. A tab only appears when it has quizzes in it.
  3. To search by name or code, type in Search quizzes... and click Go (or press Enter).
  4. Tick Hide attempted to hide quizzes you have already submitted at least once.
  5. Click a quiz code or name to open its page.

The list has these columns:

ColumnMeaning
CodeThe quiz code, also part of the URL: /quizzes/<code>
QuizQuiz name, open/close times (or Always open) and a countdown
QuestionsNumber of questions
ParticipantsNumber of people with at least one submitted attempt
Your bestYour best score, or if you have not submitted yet

TIP

The list shows 50 quizzes per page. You only see quizzes you are allowed to open. Organization-private quizzes for organizations you have not joined are hidden.

Read the quiz page

The page at /quizzes/<code> shows:

ItemMeaning
QuestionsNumber of questions
PointsMaximum total score
Time limitMinutes per attempt. means unlimited
Max attemptsHow many attempts you may submit. means unlimited
Start: / End:The window in which the quiz is open. Not set — opens immediately and Not set — never closes mean no limit on that side
BannerStarting in … (not open yet), Ends in … (open), or a notice that the quiz has closed
Your attemptsYour previous attempts with their score, or in progress

The action bar changes with the situation:

You seeMeaning
Start quiz (with "N attempt(s) remaining")You can start a new attempt
Resume attemptYou have an unfinished attempt. Click to return to it
Quiz not started yet.The quiz has not opened yet
Quiz is closed.The end time has passed
No attempts remaining.You have used all your attempts

INFO

The quiz page does not tell you in advance how results are shown (score only, correctness, or full answers). You find out after your first submission. See Read your result.

Start an attempt

  1. On the quiz page, click Start quiz.
  2. If integrity monitoring is on, the Academic Integrity Notice dialog appears. Read the rules and click I understand, start →. Click Cancel if you are not ready; no attempt is created yet.
  3. The quiz page opens. On a timed quiz the countdown is already running.

The clock never stops

Time counts from the moment you start. Closing the tab, shutting down the computer or losing the connection does not pause it.

Questions and answer choices may be shuffled, depending on the teacher's settings. The order is fixed for your attempt, so reloading the page keeps it.

Integrity monitoring

When the teacher enables integrity monitoring, the quiz page:

  • Overlays a watermark repeating your username and the attempt start time.
  • Blocks copying and disables right-click.
  • Shows a short message for about 4 seconds whenever it records an event (for example ⚠ Tab switch detected. This has been recorded.).

Recorded events:

Event (as the teacher sees it)Recorded when
Tab switchThe quiz tab becomes hidden: switching tabs, minimizing the browser
Window blurThe browser window loses focus: clicking another app, Alt+Tab
DevTools openedThe page viewport is more than 160 px smaller than the window (a sign of open DevTools)
PrintScreen keyPressing the PrintScreen key
Copy attemptTrying to copy (Ctrl+C…)

The teacher sees the event type and time. Nothing is screenshotted, and nothing you do outside the tab is recorded.

Events do not change your score

As the dialog says, these events do not affect your score. They are information for the teacher to review.

Why was "DevTools opened" recorded when I never opened DevTools?

Detection compares the window size with the page viewport. An open browser side panel, some extensions or an unusual zoom level can create the same gap. Close side panels before starting. Each event type is recorded at most once every 5 seconds.

Answer each question type

Use Previous / Next to move between questions, or click a question number in the Questions box in the sidebar. Answered questions are highlighted on that map, and the progress bar at the top shows how far you are.

Type (UI name)How to answerGrading
Multiple ChoicePick one radio buttonThe right choice earns full points; anything else earns 0
Multiple AnswerTick one or more checkboxesDepends on the teacher's strategy: either all-or-nothing or partial credit
True/FalsePick True or FalseFull points or 0
Short AnswerType in Type your answer...Full points if it matches an accepted answer, otherwise 0

Keyboard shortcuts (when you are not typing in a short-answer box):

KeyAction
/ Previous / next question
19Select (or toggle, for multiple-answer questions) choice N

How are short answers matched?

  • Spaces at the start and end of your answer are ignored. Spaces in the middle count.
  • Your whole answer must match one of the teacher's accepted answers; containing it is not enough. For example, an accepted 42 does not accept x = 42.
  • Whether upper/lower case matters is decided by the teacher for each question. Type exactly what the question asks for.
  • An empty box counts as unanswered and scores 0.

TIP

If the question says nothing about format, keep your answer minimal: just the number or keyword, with no units or punctuation.

Autosave

  • Multiple choice, multiple answer and true/false answers are saved as soon as you click.
  • Short answers are saved about 0.8 seconds after you stop typing.
  • If a save fails (connection lost), the sidebar shows Save failed — retrying… and the browser retries every 3 seconds. Do not close the tab while you see this.
  • Clearing all choices of a question is saved too, and the question becomes unanswered again.

Because answers live on the server, you can reload the page or reopen it on another device without losing work: click Resume attempt on the quiz page.

Time limits, time-outs and closed tabs

SituationWhat happens
The quiz has a time limitThe Time box turns amber under 5 minutes and red under 1 minute. At 0 the browser submits automatically
Your connection is slow right at the deadlineThe server still accepts answers that arrive within 30 seconds after the deadline
You close the tab with time leftThe attempt keeps running. Reopen the quiz page and click Resume attempt
You close the tab and time runs outAfter the deadline + 30 seconds the attempt is closed: the answers you saved are still graded. Closing happens when you next open the quiz page
The quiz has both an end time and a time limitYou get your full time limit, even if the end time passes meanwhile
The quiz has an end time but no time limitThe attempt closes exactly at the end time, with no 30-second grace and no automatic submit in the browser
No time limit and no end timeThe attempt stays open until you submit it

WARNING

An abandoned attempt is only closed when you come back to the quiz page. Until then it has no score and is not on the ranking. If you closed the tab by accident, reopen the quiz page as soon as you can.

Submit

  1. On the last question click Review & Submit, or click Submit quiz in the sidebar at any time.
  2. The browser asks Submit the quiz now?. If some questions are blank, it first says "You have N unanswered question(s)." Confirm to submit, or cancel to keep working.
  3. The attempt is graded immediately and you are taken to the result page.

DANGER

A submitted attempt cannot be changed. To improve your score, start a new attempt (if you have any left).

Read your result

The result page (/quizzes/<code>/attempt/<attempt id>/result) always shows Score: X / Y. The rest depends on the mode the teacher chose:

ModeWhat you see
Score onlyTotal score, each question and Your answer. No right/wrong marks, no answer key
Show correctness (no answer key)Adds green/red colouring and per-question points (for example (0.5 / 1)), but no correct answers
Show correct answers and explanationsEvery choice: ✓ marks correct choices, ✗ marks wrong choices you picked, a Your answer tag, a Missed tag on correct choices you did not pick, a Why? toggle with per-choice explanations, the Correct answer (or Accepted patterns) for true/false and short-answer questions, and the question's overall explanation

Blank questions show (no answer).

You can always review old attempts: on the quiz page, in Your attempts, click view.

Ranking

Click Ranking on the quiz page or the result page (/quizzes/<code>/ranking). The rules:

  1. Each person has one row: their best attempt.
  2. Higher score ranks first.
  3. On equal scores, the faster attempt (time from start to submission) ranks first.
  4. If still tied, the earlier submission ranks first.

Only submitted attempts count. Your own row is highlighted in yellow. The Time column is the duration of the attempt used for ranking.

Attempt limits

  • Max attempts counts submitted attempts only. An unfinished attempt does not use up a new one.
  • You can have only one unfinished attempt at a time. Pressing start while one exists takes you back to it.
  • When you run out, the start button disappears and you see No attempts remaining.

Organization-private quizzes

Some quizzes are only for members of one or more organizations. If you are not a member, the quiz is missing from the list and opening its link directly shows 404. Join the organization (see Organizations on LCOJ) or ask your teacher.

Verify

After submitting, check that:

FAQ

SituationWhat to do
You see Save failed — retrying…Your connection is unstable. Keep the tab open; the browser retries every 3 seconds. Answers saved earlier are safe
You closed the tab or the computer shut downReopen the quiz page. With time left, click Resume attempt. With time up, the attempt is closed with your saved answers
Time ran out while answeringThe quiz submits itself. All saved answers (including those arriving within the 30-second grace) are graded
No correct answers after submittingThe teacher chose Score only or Show correctness. This is a setting, not a bug
No start buttonCheck that you are signed in, the quiz has opened (Quiz not started yet.), it has not closed (Quiz is closed.), and you have attempts left
The quiz link shows 404The quiz is hidden, or private to an organization you are not in
The ranking does not show my latest scoreThe ranking uses your best attempt, not your latest
A correct short answer was marked wrongCheck case, spaces in the middle and extra units. If you are still sure, tell the teacher: they can fix the answer key and regrade
An event was recorded unfairlyEvents do not change your score. Explain to the teacher if needed
The end time has passed. Can I keep going?Only if you already have an unfinished attempt and the quiz has a time limit that your attempt has not used up. You cannot start a new attempt after the end time

Next steps