Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5842787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:03:51+00:00 2026-05-22T12:03:51+00:00

I am preparing a Test or Quiz in Django. The quiz needs to be

  • 0

I am preparing a Test or Quiz in Django. The quiz needs to be completed in certain time frame. Say 30 minutes for 40 questions.I can always initiate a clock at start of the test, and then calculate time by the time the Quiz is completed. However it’s likely that during the attempt, there may be issues such as internet connection drops, or system crashes/power outages etc.

I need a strategy to figure out when such an accident happened, and stop the clock, then let the user take the test again from where it stopped, and start the clock again.

What is the right strategy? Any help including sample code/examples/ideas are most welcome

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:03:51+00:00Added an answer on May 22, 2026 at 12:03 pm

    Your strategy should depend on importance of the test and ability to retake whole test.

    1. Is test/quiz for fun or competence/knowledge checking?
    2. Are you dealing with logged users?
    3. Are tests generated randomly from large poll of available questions?

    these are the questions you need to answer yourself first.

    Remember that:

    • malicious user CAN simulate connection outage / power failure,
    • only clock you can trust is one on server side,
    • everything on browser side can be manipulated (think firebug/console js injection)

    My approach would be:

    1. Inform users that TIME is important factor and connection issues may not be taken into account when grade will be given…,
    2. Serve only one question, wait for answer, serve another one,
    3. Whole test time should be calculated as SUM of each answer time:
      • save each “question send” / “answer received” timestamps and calculate answer time from it,
      • time between questions wouldn’t count,
      • you’d get extra scope on which questions was harder / took longer to answer.
    4. Add some kind of heartbeat to your question page (like ajax request every X seconds), when heartbeat stops you can (depending on options you have):
      1. invalidate question and notify user via dialog that he has connection issues and have to refresh to get new question instead if you have larger poll of questions to use,
      2. pause time on server side (and for example dim question page so user cannot answer until his connection is restored) IMO only for games/fun quiz/tests
      3. save information on server side on each interruption which would later ease decision to allow retake whole test e.g. he was fine until 20th question and then on 3-4 easy questions in a row he was dropping…
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am preparing for an interview and I came across these questions. Can some
I have following code: //preparing DAO objects FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(test-context.xml); surveyDao =
I'm preparing a test environment to connect to Websphere MQ 7.0 through SSL, so
I'm preparing for performance tests and creating new test cases. So I was just
I'm preparing my self for a test tomorrow morning. I am struggling with the
So, I was looking over my standard cache utility when preparing to unit test
I want to test my application on actual device, so how can I go
I have an @Test method with invocationCount=3. Each time this method is run, there
I am preparing to use continuous integration for the first time. I will be
In preparing to a OOP exam, I enjoyed seeing g++ compile the following code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.