CN111640342B - Online examination method and device, computing device and storage medium - Google Patents

Online examination method and device, computing device and storage medium Download PDF

Info

Publication number
CN111640342B
CN111640342B CN202010486266.7A CN202010486266A CN111640342B CN 111640342 B CN111640342 B CN 111640342B CN 202010486266 A CN202010486266 A CN 202010486266A CN 111640342 B CN111640342 B CN 111640342B
Authority
CN
China
Prior art keywords
examination
test
task
report
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010486266.7A
Other languages
Chinese (zh)
Other versions
CN111640342A (en
Inventor
邱瑞
莫碧峰
唐巧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ape Power Technology Co.,Ltd.
Original Assignee
Beijing Ape Force Education Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ape Force Education Technology Co ltd filed Critical Beijing Ape Force Education Technology Co ltd
Priority to CN202010486266.7A priority Critical patent/CN111640342B/en
Publication of CN111640342A publication Critical patent/CN111640342A/en
Application granted granted Critical
Publication of CN111640342B publication Critical patent/CN111640342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B7/00Electrically-operated teaching apparatus or devices working with questions and answers
    • G09B7/02Electrically-operated teaching apparatus or devices working with questions and answers of the type wherein the student is expected to construct an answer to the question which is presented or wherein the machine gives an answer to the question presented by a student

Abstract

The present specification provides an online examination method and apparatus, a computing device, and a storage medium, wherein the online examination method includes: monitoring an examination task issued by a background through an examination loading object, and adding a monitored first examination task message to a message queue when the examination loading object monitors that the background issues the first examination task; circularly processing the messages in the message queue through the coordinator object, and establishing a report object used for maintaining the test report state of the first test task aiming at the first test task message; monitoring whether the examination metadata of the first examination task changes or not through an examination loading object, and adding a change message of the examination metadata of the first examination task to a message queue when the examination metadata of the first examination task is monitored to change; notifying, by the coordinator subject, the reporting subject to re-maintain the test report state of the first test task for the change message of the test metadata of the first test task.

Description

Online examination method and device, computing device and storage medium
The application is a divisional application of an invention patent application with application date of 2018, 9, and 4, application number of 201811025545.2 and invention name of 'online examination method and device, computing equipment and storage medium'.
Technical Field
The present disclosure relates to the field of online examination technologies, and in particular, to an online examination method and apparatus, a computing device, and a storage medium.
Background
In the current life, the network is developed, the examination can be taken through the online examination system, and whether the large-scale examinees can be supported or not is an important index for judging whether the system supports high concurrency or not. In a common online examination system, hardware cost is increased by adopting a server cluster and adding machines or accessing corresponding servers according to the region where a test taker is located. The server has high pressure, the client is used as an independent system to mainly complete some display functions, resources are not effectively utilized, a passive caching strategy is adopted when the client caches test data and answer data, the test data cannot be requested to the server in time, and a large number of test takers submit the answer data at the same time at the end of an examination, so that network congestion is easily caused, the pressure of the server is increased, and the rolling success rate is reduced. Therefore, the success rate of the server for receiving all test papers is influenced to a great extent, and the experience of the testee is poor.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide an online examination method and apparatus, a computing device, and a storage medium, so as to solve technical defects in the prior art.
According to a first aspect of the embodiments of the present specification, there is provided an online examination method, applied to a server side, including:
monitoring an examination task issued by a background through an examination loading object, and adding a monitored first examination task message to a message queue when the examination loading object monitors that the background issues a first examination task;
performing loop processing on the messages in the message queue through the coordinator object, and creating a report object used for maintaining the test report state of the first test task aiming at the first test task message;
monitoring whether the test metadata of the first test task is changed or not through the test loading object, and adding a change message of the test metadata of the first test task to the message queue when the change of the test metadata of the first test task is monitored;
notifying, by the coordinator subject, the reporting subject to re-maintain the test report state of the first test task for the change message of the test metadata of the first test task.
Optionally, the method further comprises:
and when the examination loading object monitors that the examination of the first examination task is finished, deleting the first examination task from the examination loading object.
Optionally, the test report status of each test taker in the first test task comprises:
the examination is not started;
an examination has been entered, but not completed;
waiting for an examination report;
generating an examination report;
saving the examination report;
and/or issuing test reports.
Optionally, the test report status of each test taker in the first test task further comprises:
and (5) correcting the test paper.
According to a second aspect of the embodiments of the present specification, there is provided an online examination apparatus configured on a server side, including:
a monitoring module: the system comprises a message queue, a message queue and a monitoring module, wherein the message queue is configured to monitor an examination task issued by a background through an examination loading object, and when the examination loading object monitors that the background issues a first examination task, the monitored first examination task message is added to the message queue;
a creation module: configured to loop through the coordinator object messages in the message queue, create a report object for the first test task message to maintain an test report state for the first test task;
adding a module: configured to monitor whether test metadata of the first test task is changed or not through the test loading object, and when it is monitored that the test metadata of the first test task is changed, add a change message of the test metadata of the first test task to the message queue;
a maintenance module: configured to notify the reporting subject, via the coordinator subject, to re-maintain an examination report state of the first examination task for a change message of the test metadata of the first examination task.
Optionally, the creating module is further configured to:
and when the examination loading object monitors that the examination of the first examination task is finished, deleting the first examination task from the examination loading object.
Optionally, the test report status of each test taker in the first test task comprises:
the examination is not started;
an examination has been entered, but not completed;
waiting for an examination report;
generating an examination report;
saving the examination report;
and/or issuing test reports.
Optionally, the creating module is further configured to:
and (5) correcting the test paper.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the online test method when executing the instructions.
According to a fourth aspect of embodiments herein, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the online test method.
In the embodiment of the specification, an examination task issued by a background is monitored through an examination loading object, and when the examination loading object monitors that the background issues a first examination task, a monitored first examination task message is added to a message queue; performing loop processing on the messages in the message queue through the coordinator object, and creating a report object used for maintaining the test report state of the first test task aiming at the first test task message; monitoring whether the test metadata of the first test task is changed or not through the test loading object, and adding a change message of the test metadata of the first test task to the message queue when the change of the test metadata of the first test task is monitored; aiming at the change information of the examination metadata of the first examination task, the coordinator object informs the report object to maintain the examination report state of the first examination task again, and the online examination system of the specification can support simultaneous online examination of large-scale users, ensure stable and smooth operation of the system and support quick rolling.
Drawings
FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;
FIG. 2 is a flow chart of an online examination method provided by an embodiment of the present application;
FIG. 3 is a flow chart of an online examination method provided by an embodiment of the present application;
FIG. 4 is a flow chart of an online examination method provided by an embodiment of the present application;
FIG. 5 is a flow chart of an online examination method provided by an embodiment of the present application;
fig. 6 is a block diagram of modules of an online testing device provided by an embodiment of the present application;
fig. 7 is a block diagram of modules of an online testing device provided in an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present description. This description may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, as those skilled in the art will be able to make and use the present disclosure without departing from the spirit and scope of the present disclosure.
Fig. 1 is a block diagram illustrating a configuration of a computing device 100 according to an embodiment of the present specification. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and the database 150 is used to store user data.
Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present description, the other components of the computing device 100 described above and not shown in FIG. 1 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the description. Those skilled in the art may add or replace other components as desired.
Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.
Wherein the processor 120 may perform the steps of the online test method shown in figure 2. Fig. 2 is a flowchart illustrating an online test method according to an embodiment of the present description, including steps 202 through 212.
Step 202: and acquiring the structural data information of the test paper to be opened.
In an embodiment of this specification, the structure data information includes:
the structure data information divided according to the topic serial number or the structure data information divided according to the page number or the structure data information divided according to the topic type.
For example, in an embodiment of the present specification, in an online examination system, there is a 4-page mathematical test paper and 30 questions, and before the examination is not started, the server divides the structure data information, and may divide the structure data information by 10 questions, or may divide the structure data information by 1 page, or may divide the structure data information by filling-in questions, selecting questions, and calculating question types.
Step 204: and acquiring first test question data of the test paper according to the structural data information, caching the first test question data and displaying the first test question data according to a preset display strategy.
In an embodiment of this specification, the first test question data includes:
one test question of the test paper to be opened or all test questions of one question type of the test paper to be opened or one test question of one test paper to be opened.
In an embodiment of the present specification, the preset display policy includes:
and extracting a set number of questions from the cached test question data and displaying the questions to the testees or displaying the questions to the testees in a paging display mode.
For example, in an embodiment of the present specification, a mathematical test is performed in the online test system, and the examinee obtains the first test question data through the structural data information, and displays a page of test questions or a single test question or all test questions of blank questions on the page.
And acquiring first test question data through the structural data information, caching the first test question data at the client in advance, and reducing the working pressure of the server.
Step 206: and acquiring the answer data of the examinee and the answer progress information, and caching the answer data.
In an embodiment of this specification, the answer progress information is obtained by:
and obtaining the answer progress information according to the proportion of the current answer position in the first test question data by obtaining the current answer position of the first test question data.
In an embodiment of this specification, the caching the answer data includes:
and caching the answer data according to the incidence relation between the answer data and the corresponding test question.
By acquiring the answer progress information of the test taker and combining the answer progress information with the structural data information, other test question data of the test paper can be predicted at the client, and the predicted answer progress information is cached at the client in advance, so that the waiting of the test taker for the next test question data is reduced, the answer data of the test taker is acquired at the same time, the answer data is cached at the client, the client resources are fully utilized, and the working pressure of a server is reduced.
Step 208: and requesting second test question data from a server according to the answer progress information and the structural data information, and receiving and caching the second test question data.
In an embodiment of this specification, the requesting, from the server, the second test question data according to the answer progress information and the structural data information includes:
judging whether the proportion corresponding to the answer progress information of the first test question data reaches a set threshold value or not;
when the judgment result is that the preset threshold value is reached, acquiring information of next test question data of the first test question data in the structural data information;
and requesting second test question data from the server according to the information of the next test question data.
For example, in one embodiment of the specification, a mathematical examination is performed in an online examination system, a subject answers first test question data extracted by a client, the first test question data includes 10 questions, a threshold value set for an answer schedule is 90%, after the subject answers the 9 th question, the client compares the answer schedule information of the subject with the set threshold value, the answer schedule information of the subject reaches the set threshold value, the client predicts information of next test question data of the subject by combining with the structural data information, and the client actively requests second test question data from a server according to the information of the next test question data.
Step 210: and displaying the second test question data according to the preset display strategy, receiving and caching the answer data of the testee.
In an embodiment of this specification, the method further includes:
and when receiving that a person to be tested clicks a button on the upper page or the next page of the page, loading and displaying the test question data and the answer data of the corresponding page according to the association relationship between the cached answer data and the corresponding test question.
In an embodiment of this specification, the method further includes:
and when the answer data of the current page is detected to be input again by the examinee, updating the cached answer data according to the modified or newly-added answer data of the current page and the corresponding test question serial number.
In an embodiment of this specification, when it is detected that the subject re-inputs the answer data of the current page, after updating the cached answer data according to the modified or newly-added answer data of the current page and the corresponding test question serial number, the method further includes:
and if the modified or newly-added answer data of the current page and the cached answer data of the corresponding test question serial number are uploaded to the server before, only uploading the modified or newly-added answer data of the current page and the corresponding test question serial number to the server.
Step 212: and uploading the cached answer data to a server in an incremental transmission mode according to a preset uploading strategy.
In an embodiment of this specification, the preset uploading policy includes:
uploading the answer data of a set number of test questions in batches, or uploading the answer data in batches according to a set byte number or uploading the answer data in batches according to the page number of the test questions.
For example, in an embodiment of the present specification, the online examination system performs a mathematical examination, and submits answer data in an incremental transmission manner, and when a test taker finishes answering 10 questions, the client automatically uploads the answer data of 10 questions that have already been answered to the server, and the server determines and caches the answer data corresponding to the 10 questions according to an association relationship between the answer data and corresponding test questions.
According to the online examination method provided by the embodiment of the invention, the preloading of the test question data is realized by combining the caching of the test question data, the structural data information and the answer progress information, the response time of the next test question data requested by a test taker in the examination process is reduced, the request amount of a server is reduced by caching the test question data and the answer data at the client, the answer data is submitted by the increment of the test taker, the condition that the server load is too high due to the fact that a large number of users submit test papers at the same time is avoided, and the stability of the online examination system is integrally improved.
Fig. 3 is a flowchart illustrating an online examination method, which is described by taking a mathematical examination as an example, according to one embodiment of the present specification, the online examination method including:
step 302: and acquiring the structural data information of the math test paper.
In an embodiment of the present specification, the structural data information includes:
the structure data information divided according to the topic serial number or the structure data information divided according to the page number or the structure data information divided according to the topic type.
For example, in the present mathematical examination, there are 30 questions, and the client acquires test question data in which 10 questions are grouped when acquiring the structural data information according to the structural data information divided for each 10 questions.
Step 304: and acquiring first test question data according to the structural data information.
In an embodiment of the present specification, the first test question data includes:
one test question of the test paper to be opened or all test questions of one question type of the test paper to be opened or one test question of one test paper to be opened.
Step 306: caching the first test question data, and displaying the first test question data according to a preset display strategy.
In an embodiment of the present specification, the preset display policy includes:
and extracting a set number of questions from the cached test question data and displaying the questions to the testees or displaying the questions to the testees in a paging display mode.
For example, in an online examination system, a mathematical examination is performed, and an examinee acquires first test question data through the structural data information, and displays a page of test questions or a single test question or all test questions of a blank filling question on a page.
Step 308: and acquiring answer data of the testee and caching the answer data to the client.
Step 310: and acquiring second test question data information according to the answering progress information and the structural data information.
In an embodiment of the present specification, the answer progress information is obtained by:
and obtaining the answer progress information according to the proportion of the current answer position in the first test question data by obtaining the current answer position of the first test question data.
In an embodiment of this specification, the caching answer data includes:
and caching the answer data according to the incidence relation between the answer data and the corresponding test question.
In an embodiment of the present specification, the requesting, from the server, the second test question data according to the answer progress information and the structural data information includes:
judging whether the proportion corresponding to the answer progress information of the first test question data reaches a set threshold value or not;
when the judgment result is that the preset threshold value is reached, acquiring information of next test question data of the first test question data in the structural data information;
and requesting second test question data from the server according to the information of the next test question data.
Step 312: the answer data is changed by the examinee, the association relation between the cached answer data and the corresponding test question is loaded and the answer data of the corresponding page are displayed, the examinee outputs the answer data of the current page again, and the cached answer data is updated according to the modified or newly added answer data of the current page and the corresponding test question serial number.
In an embodiment of the present specification, when it is received that a test taker clicks a button on a previous page or a next page in a page, test question data and answer data of the corresponding page are loaded and displayed according to an association relationship between the cached answer data and the corresponding test question.
In an embodiment of the present specification, the method further includes:
and when the answer data of the current page is detected to be input again by the examinee, updating the cached answer data according to the modified or newly-added answer data of the current page and the corresponding test question serial number.
In an embodiment of this specification, when it is detected that the subject re-inputs the answer data of the current page, after updating the cached answer data according to the modified or newly-added answer data of the current page and the corresponding test question serial number, the method further includes:
and if the modified or newly-added answer data of the current page and the cached answer data of the corresponding test question serial number are uploaded to the server before, only uploading the modified or newly-added answer data of the current page and the corresponding test question serial number to the server.
Step 314: and uploading the answer data to the server side according to the incremental transmission mode.
Step 316: and caching the answer data of the server.
Step 318: and submitting the test paper to a server.
In an embodiment of the present specification, the answer data of a set number of test questions is uploaded in batches, or the answer data is uploaded in batches according to a set number of bytes, or the answer data is uploaded in batches according to a test question page number.
For example, in an embodiment of the present specification, the online examination system performs a mathematical examination, and submits answer data in an incremental transmission manner, and when a test taker finishes answering 10 questions, the client automatically uploads the answer data of 10 questions that have already been answered to the server, and the server determines and caches the answer data corresponding to the 10 questions according to an association relationship between the answer data and corresponding test questions.
In an embodiment of the present specification, by combining the structural data information and the answer progress information, the examination data is obtained in advance, the waiting time for the examinee to request the next examination data in the examination process is reduced, and the answer data is submitted in increments, so that the data volume of the answer data to be uploaded in a unified manner is reduced by uploading the answer data of the examination in batches, the load condition of a server for submitting the answer data in a unified manner at the moment of ending the examination is avoided, and the stability of the online examination software is improved.
Fig. 4 is a flowchart illustrating an online test method according to an embodiment of the present description, including steps 402 to 408.
Step 402: monitoring an examination task issued by a background through an examination loading object, and adding a monitored first examination task message to a message queue when the examination loading object monitors that the background issues the first examination task.
In one implementation, after step 402, the method further includes:
according to the request of the client, sending the structural data information of the examination paper to be opened (the examination paper of the first examination task) to the client;
sending the first test question data to the client according to a request of the client for acquiring the first test question data of the test paper, which is generated based on the structural data information;
sending second test question data to the client according to a request of the second test question data generated based on the answering progress information and the structural data information of the testee sent by the client;
and receiving the answer data uploaded by the client in an incremental transmission mode based on a preset uploading strategy.
According to the embodiment, corresponding test question data are sent to the client according to the batch requests of the client for the test question data, and the answer data uploaded by the client in batches are stored.
Step 404: and circularly processing the messages in the message queue through the coordinator object, and creating a report object used for maintaining the test report state of the first test task aiming at the first test task message.
Step 406: monitoring whether the test metadata of the first test task is changed or not through the test loading object, and adding a change message of the test metadata of the first test task to the message queue when the change of the test metadata of the first test task is monitored.
Step 408: notifying, by the coordinator subject, the reporting subject to re-maintain the test report state of the first test task for the change message of the test metadata of the first test task.
In an embodiment of this specification, the method further includes:
and when the examination loading object monitors that the examination of the first examination task is finished, deleting the first examination task from the examination loading object.
In an embodiment of the present specification, the test report status of each test taker in the first test task comprises:
the examination is not started;
an examination has been entered, but not completed;
waiting for an examination report;
generating an examination report;
saving the examination report;
and/or issuing test reports.
In an embodiment of the present specification, the examination report status of each examinee in the first examination task further includes:
and (5) correcting the test paper.
In an embodiment of the present specification, a coordinator subject performs cyclic processing on a first examination task and creates a report subject for maintaining an examination report state of the first examination task, where the examination report is used to record an examination score of each examinee and a rolling rate of the examination, and the examination loading subject monitors whether examination metadata of the first examination task changes or not, and adds a change message of the examination metadata of the first examination task to the message queue when it is monitored that the examination metadata of the first examination task changes; the examination report of each test taker can be generated by monitoring the examination task by an examination loading object and circularly processing the information in the information queue by a coordination object, so that the rapid rolling processing can be realized, the rolling success rate is improved, and meanwhile, the report object is informed to maintain the examination report state of the first examination task again aiming at the change information of the examination metadata of the first examination task by the coordination object, so that the test taker can visually know the score condition of the test.
Fig. 5 is a flowchart illustrating an online examination method, which is described by taking a mathematical examination as an example, according to one embodiment of the present specification, the online examination method including:
step 502: the test loading object monitors a first test task issued by the background.
Step 504: the test loading object is updated.
In one embodiment of the present specification, an examination loading object monitors a background to issue an examination task;
the system monitors the test loading object through a coordinator object, maintains the state of whether the coordinator object is a leader or not, and maintains the creation and destruction of the report object for generating the related tasks of the test report.
Step 506: the first test task message that was heard is added to a message queue.
For example, in an embodiment of the present specification, an examination loading object performs polling to check whether there is a newly created examination task through a timed task, and if there is a newly created examination task, the examination loading object sends a message after monitoring the new examination task, and adds the message to a message queue;
step 508: and the coordinator object carries out cyclic processing on the messages in the message queue and creates a report object used for maintaining the test report state of the first test task aiming at the first test task message.
Step 510: monitoring whether the test metadata of the first test task is changed or not through the test loading object, and adding a change message of the test metadata of the first test task to the message queue when the change of the test metadata of the first test task is monitored.
Step 512: notifying, by the coordinator subject, the reporting subject to re-maintain the test report state of the first test task for the change message of the test metadata of the first test task.
For example, in one embodiment of the present specification, the worker thread of the coordinator object circularly processes messages in the queue:
messages of a queue are to perform two types of tasks: one is to traverse the test tasks which are not completed yet, check the creation and destruction of report object instances, the report object maintains a series of state machines of distributed rolling, and the other is to check whether the metadata of the model test is changed, such as the starting time and the ending time of the model test, and then inform the report object to maintain the state of the test tasks again;
the report object maintains the state of the rolling process in an Actor mode;
and when the examination loading object monitors that the examination of the first examination task is finished, deleting the first examination task from the examination loading object.
Step 514: an examination report is generated.
In one embodiment of the present specification, the test report status of each test taker in the first test task comprises:
the examination is not started;
an examination has been entered, but not completed;
waiting for an examination report;
generating an examination report;
saving the examination report;
and/or issuing test reports.
In an embodiment of the present specification, the test report status of each test taker in the first test task further comprises:
and (5) correcting the test paper.
For example, in one embodiment of the present specification, the test report status in the test task includes:
NOT STARTED: the examination is not started and is before the start of the examination;
EXAMING: after the examination is entered, entering a WAITING FOR REPORT after the examination is ended;
in the WAITING FOR REPORT: initializing a java Userreport;
SETTING JAM USER REPORT: initializing a user examination report (jamId, urerId, exerciseId), wherein the score and the ranking are not generated;
the examination needs to be corrected, the examination enters GRADING JAM, correction completion information is received after correction is completed, and a CREATING JAM REPORT flow is entered;
the examination does not need to be modified, and the examination directly enters a CREATING JAM REPORT flow;
CREATING JAM REPORT: rolling, generating an exerciseReport, a jamReport, a jamUserReport, a saveExperieReport and releasing;
state PUBLISHING EXERCISE SUBMITTED MESSAG: separating the saveExercisReport from the release exercieSubmitted, and reducing the release pressure;
STATE FINISH: and (5) deleting the jamstat in zk after the examination is finished.
In an embodiment of the present specification, the rolling process is performed by distributed rolling based on an Actor mode.
In one embodiment of the present specification, the Actor mode is a conceptual model for processing concurrent computation, and all objects in the system are abstracted into an Actor:
the input of the Actor is the received message;
the Actor receives the task defined in the message post-processing message;
an Actor may send a message to other actors after processing a complete task.
The Actors only transmit messages in a communication mode, and the Actors communicate through asynchronous messages, wherein messages are stored in the Mailbox before the messages are processed, and the messages are decoupled among the Actors. An important feature of Actors is that the Actors are isolated from each other and do not share memory, i.e., one Actor can maintain a private state and this state cannot be changed by another Actor. The state inside the Actor model is maintained by own behavior, an external thread cannot directly call the behavior of an object, and the behavior can be triggered only through a message, so that the fact that the data inside the Actor is only modified by the Actor is ensured.
In an embodiment of the present specification, a coordinator subject performs cyclic processing on a first examination task and creates a report subject for maintaining an examination report state of the first examination task, where the examination report is used to record an examination score of each examinee and a rolling rate of the examination, and the examination loading subject monitors whether examination metadata of the first examination task changes or not, and adds a change message of the examination metadata of the first examination task to the message queue when it is monitored that the examination metadata of the first examination task changes; the examination report of each test taker can be generated, so that the test taker can visually know the score condition of the test, and based on the rolling processing of the Actor mode, the test paper score of the test taker can be calculated in the rolling process, the test score is issued uniformly, the test report of each test taker is generated, and the waiting time of the test taker is shortened.
In correspondence with the above-described method embodiments, the present specification also provides an online examination apparatus embodiment, and fig. 6 shows a block diagram of an online examination apparatus according to an embodiment of the present specification. As shown in fig. 6, the apparatus 600 includes:
the obtaining module 602: configured to obtain structural data information of a test paper to be opened;
the display module 604: the test paper display device is configured to obtain first test question data of a test paper according to the structural data information, cache the first test question data and display the first test question data according to a preset display strategy;
answer module 606: the answer data and the answer progress information of the examinees are obtained, and the answer data are cached;
the acquisition module is also configured to request second test question data from a server according to the answer progress information and the structural data information, and receive and cache the second test question data;
the display module is further configured to display the second test question data according to the preset display strategy;
the answer module is also configured to receive and cache answer data of a subject;
the upload module 608: and uploading the cached answer data to the server in an incremental transmission mode according to a preset uploading strategy.
In an optional embodiment, the structure data information includes:
the structure data information divided according to the topic serial number or the structure data information divided according to the page number or the structure data information divided according to the topic type.
In an optional embodiment, the first test question data includes:
one test question of the test paper to be opened or all test questions of one question type of the test paper to be opened or one test question of one test paper to be opened.
In an optional embodiment, the preset display policy includes:
and extracting a set number of questions from the cached test question data and displaying the questions to the testees or displaying the questions to the testees in a paging display mode.
In an optional embodiment, the answering module is further configured to:
and acquiring the current answer position of the first test question data, and obtaining the answer progress information according to the proportion of the current answer position in the first test question data.
In an optional embodiment, the answering module is further configured to:
and caching the answer data according to the incidence relation between the answer data and the corresponding test question.
In an optional embodiment, the obtaining module includes:
a judging unit: the answer progress information of the first test question data is configured to be judged whether the proportion corresponding to the answer progress information of the first test question data reaches a set threshold value;
a configuration information acquisition unit: the information acquisition unit is configured to acquire information of next test question data of the first test question data in the structural data information when the judgment result is that a set threshold value is reached;
a request unit: is configured to request second test question data from the server according to the information of the next test question data.
In an optional embodiment, the presentation module is further configured to:
and when receiving that a person to be tested clicks a button on the upper page or the next page of the page, loading and displaying the test question data and the answer data of the corresponding page according to the association relationship between the cached answer data and the corresponding test question.
In an optional embodiment, the answering module is further configured to:
and when the answer data of the current page is detected to be input again by the examinee, updating the cached answer data according to the modified or newly-added answer data of the current page and the corresponding test question serial number.
In an optional embodiment, the upload module is further configured to:
and if the modified or newly-added answer data of the current page and the cached answer data of the corresponding test question serial number are uploaded to the server before, only uploading the modified or newly-added answer data of the current page and the corresponding test question serial number to the server.
In an optional embodiment, the preset uploading policy includes:
uploading the answer data of a set number of test questions in batches, or uploading the answer data in batches according to a set byte number or uploading the answer data in batches according to the page number of the test questions.
In correspondence with the above-described method embodiments, the present specification also provides an online examination apparatus embodiment, and fig. 7 shows a block diagram of the online examination apparatus of one embodiment of the present specification. As shown in fig. 7, the apparatus 700 includes:
the listening module 702: the system comprises a message queue, a message queue and a monitoring module, wherein the message queue is configured to monitor an examination task issued by a background through an examination loading object, and when the examination loading object monitors that the background issues a first examination task, the monitored first examination task message is added to the message queue;
the creation module 704: configured to loop through the coordinator object messages in the message queue, create a report object for the first test task message to maintain an test report state for the first test task;
the add module 706: configured to monitor whether test metadata of the first test task is changed or not through the test loading object, and when it is monitored that the test metadata of the first test task is changed, add a change message of the test metadata of the first test task to the message queue;
the maintenance module 708: configured to notify the reporting subject, via the coordinator subject, to re-maintain an examination report state of the first examination task for a change message of the test metadata of the first examination task.
In an optional embodiment, the creation module is further configured to:
and when the examination loading object monitors that the examination of the first examination task is finished, deleting the first examination task from the examination loading object.
In an alternative embodiment, the test report status for each test taker in the first test task comprises:
the examination is not started;
an examination has been entered, but not completed;
waiting for an examination report;
generating an examination report;
saving the examination report;
and/or issuing test reports.
In an optional embodiment, the creation module is further configured to:
and (5) correcting the test paper.
There is also provided in an embodiment of the present specification a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the online test method when executing the instructions.
An embodiment of the present specification also provides a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the online examination method.
It should be noted that the technical solution of the storage medium is the same as that of the online examination method, and details of the technical solution of the storage medium, which are not described in detail, can be referred to the description of the technical solution of the online examination method.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present disclosure is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present disclosure. Further, those skilled in the art should also appreciate that the embodiments described in this specification are preferred embodiments and that acts and modules referred to are not necessarily required for this description.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present specification disclosed above are intended only to aid in the description of the specification. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the specification and its practical application, to thereby enable others skilled in the art to best understand the specification and its practical application. The specification is limited only by the claims and their full scope and equivalents.

Claims (10)

1. An online examination method is applied to a server side, and is characterized by comprising the following steps:
monitoring an examination task issued by a background through an examination loading object, and adding a monitored first examination task message to a message queue when the examination loading object monitors that the background issues a first examination task;
circularly processing the messages in the message queue through a coordinator object, and creating a report object used for maintaining the test report state of the first test task aiming at the first test task message;
monitoring whether the examination metadata of the first examination task changes or not through the examination loading object, adding a change message of the examination metadata of the first examination task to the message queue when the examination metadata of the first examination task changes, and uploading answer data related to the first examination task to the server side in an incremental transmission mode;
notifying, by the coordinator subject, the reporting subject to re-maintain the test report state of the first test task for the change message of the test metadata of the first test task.
2. The method of claim 1, further comprising:
and when the examination loading object monitors that the examination of the first examination task is finished, deleting the first examination task from the examination loading object.
3. The method of claim 1, wherein the test report status of each test taker in the first test task comprises:
the examination is not started;
an examination has been entered, but not completed;
waiting for an examination report;
generating an examination report;
saving the examination report;
and/or issuing test reports.
4. The method of claim 3, wherein the test report status of each test taker in the first test task further comprises:
and (5) correcting the test paper.
5. An online examination device provided on a server side, comprising:
a monitoring module: the system comprises a message queue, a message queue and a monitoring module, wherein the message queue is configured to monitor an examination task issued by a background through an examination loading object, and when the examination loading object monitors that the background issues a first examination task, the monitored first examination task message is added to the message queue;
a creation module: configured to loop through a coordinator object messages in the message queue, create a report object for the first test task message to maintain an test report state for the first test task;
adding a module: the examination loading object is configured to monitor whether examination metadata of the first examination task changes or not, when the change of the examination metadata of the first examination task is monitored, a change message of the examination metadata of the first examination task is added to the message queue, and answer data related to the first examination task is uploaded to the server side in an incremental transmission mode;
a maintenance module: configured to notify the reporting subject, via the coordinator subject, to re-maintain an examination report state of the first examination task for a change message of the test metadata of the first examination task.
6. The apparatus of claim 5, wherein the creation module is further configured to:
and when the examination loading object monitors that the examination of the first examination task is finished, deleting the first examination task from the examination loading object.
7. The apparatus of claim 5, wherein the test report status of each test taker in the first test task comprises:
the examination is not started;
an examination has been entered, but not completed;
waiting for an examination report;
generating an examination report;
saving the examination report;
and/or issuing test reports.
8. The apparatus of claim 7, wherein the creation module is further configured to:
and (5) correcting the test paper.
9. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-4 when executing the instructions.
10. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 4.
CN202010486266.7A 2018-09-04 2018-09-04 Online examination method and device, computing device and storage medium Active CN111640342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010486266.7A CN111640342B (en) 2018-09-04 2018-09-04 Online examination method and device, computing device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010486266.7A CN111640342B (en) 2018-09-04 2018-09-04 Online examination method and device, computing device and storage medium
CN201811025545.2A CN109064815B (en) 2018-09-04 2018-09-04 Online examination method and device, computing device and storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201811025545.2A Division CN109064815B (en) 2018-09-04 2018-09-04 Online examination method and device, computing device and storage medium

Publications (2)

Publication Number Publication Date
CN111640342A CN111640342A (en) 2020-09-08
CN111640342B true CN111640342B (en) 2022-03-25

Family

ID=64759595

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201811025545.2A Active CN109064815B (en) 2018-09-04 2018-09-04 Online examination method and device, computing device and storage medium
CN202010486266.7A Active CN111640342B (en) 2018-09-04 2018-09-04 Online examination method and device, computing device and storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201811025545.2A Active CN109064815B (en) 2018-09-04 2018-09-04 Online examination method and device, computing device and storage medium

Country Status (1)

Country Link
CN (2) CN109064815B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112150333A (en) * 2020-11-10 2020-12-29 国网新疆电力有限公司喀什供电公司 Generation method of Weak skill improvement system
CN113204634B (en) * 2021-06-04 2022-03-22 腾讯科技(深圳)有限公司 Test paper processing method and device, electronic equipment and storage medium
CN114024980A (en) * 2021-10-26 2022-02-08 南京元贝信息技术有限公司 Data multi-terminal synchronous processing method, device and equipment based on network request

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542491A (en) * 2011-12-30 2012-07-04 深圳市英尔科技有限公司 Premium investigation system with accurate advertisement dissemination effect
CN102682640A (en) * 2012-05-17 2012-09-19 江苏中科梦兰电子科技有限公司 Electronic lesson test system and test method
CN102880781B (en) * 2012-06-15 2015-04-22 北京理工大学 On-line examination intelligent monitoring system
KR20140048415A (en) * 2012-10-12 2014-04-24 삼성전자주식회사 Device and method for providing download service of electronic letter paper in terminal
CN103118093A (en) * 2013-01-24 2013-05-22 广州南方宜信信息科技有限公司 Large-scale distributed network examination method based on multi-level cache
CN103390357A (en) * 2013-07-24 2013-11-13 天津开发区先特网络系统有限公司 Training and study service device, training system and training information management method
CN104581398B (en) * 2013-10-15 2019-03-15 富泰华工业(深圳)有限公司 Data cached management system and method
CN103685555B (en) * 2013-12-25 2017-02-15 北京中电普华信息技术有限公司 Online examination system and information processing method applied to online examination system
CN103763354B (en) * 2014-01-06 2017-07-28 北京奇安信科技有限公司 The method and device that a kind of data of upgrading are downloaded
WO2015112456A1 (en) * 2014-01-22 2015-07-30 AlvaEDU, Inc. On-line education system with synchronous lectures
US9710186B2 (en) * 2014-06-20 2017-07-18 Ca, Inc. Performing online data migration with concurrent active user access to the data
CN104572276B (en) * 2014-12-17 2018-04-17 湖南理工学院 A kind of concurrent data processing method based on cloud computing
CN104616546A (en) * 2015-02-17 2015-05-13 浙江工商大学 Mobile terminal based online teaching interactive system and implementation method thereof
CN104916283A (en) * 2015-06-11 2015-09-16 百度在线网络技术(北京)有限公司 Voice recognition method and device
CN105119763B (en) * 2015-09-24 2018-12-28 烽火通信科技股份有限公司 The quick deriving method of the big data of Web network management client based on RIA and system
CN105488171B (en) * 2015-11-26 2018-10-30 合肥康捷信息科技有限公司 A kind of examination question batch method for uploading of the online education website based on SSH
CN105719209B (en) * 2016-01-22 2019-08-27 广东小天才科技有限公司 A kind of virtual test examination hall method for building up and device
US10326855B2 (en) * 2016-07-28 2019-06-18 International Business Machines Corporation Trending topic driven cache eviction management
CN106971357A (en) * 2017-03-21 2017-07-21 广州网才信息技术有限公司 A kind of On-line Examining system and its examination data processing method
CN107169901B (en) * 2017-05-22 2020-08-25 互联天下科技发展(深圳)有限公司 Online examination data submitting method and device
CN107316638A (en) * 2017-06-28 2017-11-03 北京粉笔未来科技有限公司 A kind of poem recites evaluating method and system, a kind of terminal and storage medium
CN107977350A (en) * 2017-12-25 2018-05-01 重庆满荣网络技术有限公司 Intelligent examination system examination question generation method
CN108260014A (en) * 2018-04-12 2018-07-06 腾讯科技(上海)有限公司 A kind of video broadcasting method and terminal and storage medium
CN109002527B (en) * 2018-07-13 2020-12-01 江苏开放大学(江苏城市职业学院) Block chain-based network examination system and method for managing network examination

Also Published As

Publication number Publication date
CN109064815B (en) 2021-05-28
CN111640342A (en) 2020-09-08
CN109064815A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN111640342B (en) Online examination method and device, computing device and storage medium
CN110321273B (en) Service statistics method and device
AU2020201883B2 (en) Call center system having reduced communication latency
EP3617896A1 (en) Method and apparatus for intelligent response
WO2020119540A1 (en) Group profile picture generation method and device
US20140379399A1 (en) Method and System for Dynamically Determining Completion Status in a Human Intelligence System
US11443647B2 (en) Systems and methods for assessment item credit assignment based on predictive modelling
US20210014074A1 (en) Prioritize raise hand operation in a conference for efficient and time bound conference solution
CN111949324A (en) Distributed serial number generation method and device
CN110737655A (en) Method and device for reporting data
CN112069409B (en) Method and device based on to-be-done recommendation information, computer system and storage medium
US20180374025A1 (en) Methods and systems for determining persona of participants by the participant use of a software product
CN115297105B (en) File transmission method, device, computer equipment and storage medium
US9942287B2 (en) Information processing system, terminal device, and method
CN111145907A (en) Physical examination data processing method, physical examination data processing device, physical examination data processing medium and electronic equipment
CN112967145B (en) Group information generation method and device, electronic equipment and storage medium
CN112583667B (en) Content delivery network link evaluation method and device
CN116185782B (en) Service monitoring method and device for social software
CN113094131A (en) Prompt resource display method, device, terminal, server and storage medium
CN117150074B (en) Transaction flow video generation method, device, equipment and medium
CN109242109B (en) Management method of depth model and server
CN107463562A (en) A kind of information processing method, system and server
US10097668B2 (en) System and method of request processing in a distributed data processing network
CN116450920A (en) Data query method and device and electronic equipment
JP2023177933A (en) Member management support system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100102 unit F01, 5th floor, building 1, yard 8, Guangshun South Street, Chaoyang District, Beijing

Patentee after: Beijing Ape Power Technology Co.,Ltd.

Address before: 100102 unit F01, 5th floor, building 1, yard 8, Guangshun South Street, Chaoyang District, Beijing

Patentee before: Beijing ape force Education Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder