locked
MVC5 with event listening RRS feed

  • Question

  • User1694748171 posted

    I have new requirement. I designed web application for exam, and we tried to trick the system by allowing student with unique id to have the exam. The scenario is what if the student tried to cheat in the exam and give his Id to other student to take the exam on behalf of him. How I can prevent other student with same ID to take the exam while the exam if live.  So, if student taking the exam and the exam is alive, I want to prevent other student from taking the exam with same student Id in same time. Any idea?

    Wednesday, January 27, 2021 2:31 PM

Answers

  • User197322208 posted

    Make the List<student_id> singleton ( Application / static variables )

    When start the exam, if the student_id is not in the list, put the id of the student into the list

    If there is already, it is fraudulent

    Remove at the end of the exam 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 27, 2021 3:40 PM