Method and system for dynamically adding, deleting and customizing test paper content

By defining the basic information objects of the test questions, dynamically binding the interface input boxes, using the test question ID to determine repetition, dynamically calculating the total score of the test paper, and using a folding panel to display the test questions, the problems of high resource investment and high cost in test paper compilation are solved, and the efficiency, ease of operation and uniqueness of customized test paper content are achieved.

CN116579306BActive Publication Date: 2025-09-19INSPUR ZHUOSHU BIG DATA IND DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310549207.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-16
Publication Date
2025-09-19
Estimated Expiration
2043-05-16

AI Technical Summary

Technical Problem

In the existing technology, the work of compiling examination papers requires a lot of resources, high costs, heavy workload, incomplete coverage of knowledge points and a long time. Customized examination papers are inefficient and the workload of teachers is high.

Method used

By defining the basic information object of the test questions, dynamically binding the interface input box, using the test question ID to determine the repeatability, dynamically calculating the total score of the test paper, and using the folding panel to display the test questions, dynamic addition, deletion and customization of test questions can be achieved.

Benefits of technology

It improves the efficiency of test paper compilation, reduces the workload of teachers, realizes the ease of operation and uniqueness of customized test paper content, and improves the versatility of test paper content coverage and work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116579306B_ABST
    Figure CN116579306B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for dynamically adding, deleting and customizing test paper content, belonging to the field of computer software application technology. The technical problem to be solved by the present invention is how to realize customizing basic test paper information, major test questions and test question content, and improve test paper assembling efficiency. The technical solution is as follows: the method is specifically as follows: a test paper basic information object paperBasicData is defined by default; wherein the test paper basic information object paperBasicData includes three fields: test paper name paperName, test paper total score paperTotalCount and answer time paperTime; a group of arrays is defined for each test question type, and different array names are defined for different test question types, and the array stores information of all test questions selected under the corresponding test question type; each test question is regarded as an object, and each test question object includes test question name, test question content, test question score and test question ID fields. When selecting from a test question library, the selected test question is compared with all test questions under the current test question type, and duplicate test questions are removed by comparing the test question IDs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer software application, in particular to a method and system for dynamically adding, deleting and customizing test paper contents. Background Art

[0002] Currently, the compilation of various exam papers is largely done manually. Typically, when preparing a formal exam, the relevant exam organizer invites teachers from various fields to analyze student profiles and exam objectives, and then centrally formulate the questions. Then, they select the required chapters, knowledge points, and question types based on actual needs, completing the entire process manually. However, this process involves significant resource investment, high costs, a heavy workload, incomplete knowledge coverage, and a lengthy production process.

[0003] With the rapid development of internet technology, people's work is increasingly inseparable from information technology. In daily work, how to customize basic test information, key questions, and content, improve test preparation efficiency, and reduce teachers' workload is a technical challenge that needs to be solved urgently. Summary of the Invention

[0004] The technical task of the present invention is to provide a method and system that can dynamically add, delete and customize the content of the test paper, so as to solve the problem of how to customize the basic information of the test paper, the main questions and the content of the test paper, improve the efficiency of test paper compilation and reduce the workload of teachers.

[0005] The technical task of the present invention is achieved in the following way: a method for dynamically adding, deleting and customizing test paper content, the method is as follows:

[0006] A test question basic information object paperBasicData is defined by default; the test question basic information object paperBasicData includes three fields: test paper name paperName, test paper total score paperTotalCount, and answer time paperTime. Three input boxes are defined on the interface to dynamically bind to the test paper name field paperName, test paper total score paperTotalCount, and answer time paperTime.

[0007] Each question type defines a set of arrays. Different array names are defined for different question types. The arrays store information of all selected questions under the corresponding question type. Among them, the divisor arrays are all empty arrays.

[0008] Each question is regarded as an object. Each question object includes the question name, question content, question score and question ID field (this field is a non-repeating unique identifier dynamically generated when adding a new question). When selecting from the question library, the selected question will be compared with all questions under the current question type, and duplicate questions will be removed by comparing the question IDs.

[0009] As a preference, the test paper name paperName and the answer time paperTime are dynamically bound to the input boxes in the interface, and the variable values ​​of the fields are customized in the input boxes.

[0010] As a preference, the total score of the test paper paperTotalCount is formed by adding the total scores of each test question type. After each test question changes, the total score of each test question type is triggered to be recalculated, and then the total scores of each test question type are added together to obtain the total score of the test paper and displayed on the interface;

[0011] The paperTotalCount property of the test paper is set to read-only.

[0012] Preferably, each test question type has a set of arrays with unique names, and a folding panel is set for each test question type in the interface, and all question types of the corresponding test question type are displayed in a table under the folding panel, and each row of the table content is dynamically bound to the test question object;

[0013] Each time you operate a question in the table, only modify the array content in the question type array to which the question belongs, and ensure that it does not affect the arrays corresponding to other question types.

[0014] More preferably, when adding a new question, save the question object and all the variables contained therein in the array of the question type. When selecting a question from the question bank, traverse all the question objects stored in the array of the current question type and compare the question ID field of the object with the question ID field in the selected question object to see if they are consistent:

[0015] If the two are equal, the interface will display the addition failure and exit the traversal method;

[0016] If no equal situation occurs after traversing once, the interface will display that the addition is successful, and the selected test question object will be stored in the array of the current test question type.

[0017] A system capable of dynamically adding, deleting and customizing test paper content, the system comprising:

[0018] Definition unit 1 is used to define a test question basic information object paperBasicData by default; wherein the test question basic information object paperBasicData includes three fields: test paper name paperName, test paper total score paperTotalCount, and answer time paperTime, and defines three input boxes on the interface to dynamically bind to the test paper name field paperName, test paper total score paperTotalCount, and answer time paperTime;

[0019] Definition unit 2 is used to define a set of arrays for each test question type. Different array names are defined for different test question types. The arrays store information of all selected test questions under the corresponding test question type.

[0020] Definition unit three is used to treat each test question as an object. Each test question object includes the test question name, test question content, test question score and test question ID field (this field is a non-repeating unique identifier dynamically generated when adding a new test question). When selecting from the test question library, the selected test question will be compared with all test questions under the current test question type, and duplicate test questions will be removed by comparing the test question ID.

[0021] As a preference, the test paper name paperName and the answer time paperTime are dynamically bound to the input boxes in the interface, and the variable values ​​of the fields are customized in the input boxes;

[0022] The total score of the test paper, paperTotalCount, is calculated by adding up the total scores of each test question type. After each test question changes, the total score of each test question type is recalculated. The total score of each test question type is then added together to get the total score of the test paper and displayed on the interface.

[0023] The paperTotalCount property of the test paper is set to read-only.

[0024] More preferably, the second definition unit includes:

[0025] The binding module is used to set up a folding panel for each test question type in the interface, and display all the question types of the corresponding test question type in the table under the folding panel. Each row of the table content is dynamically bound to the test question object. Among them, each time a test question is operated in the table, only the array content in the test question type array to which the test question belongs is changed, and it is ensured that the arrays corresponding to other test question types are not affected.

[0026] The definition unit three includes:

[0027] The new and duplicate judgment module is used to save the question object and all the variables contained therein in the array of the question type when adding a new question. When selecting a question from the question library, it traverses all the question objects stored in the array of the current question type and compares the question ID field of the object with the question ID field in the selected question object to see if they are consistent:

[0028] If the two are equal, the interface will display the addition failure and exit the traversal method;

[0029] If no equal situation occurs after traversing once, the interface will display that the addition is successful, and the selected test question object will be stored in the array of the current test question type.

[0030] An electronic device comprising: a memory and at least one processor;

[0031] Wherein, the memory stores a computer program;

[0032] The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the above-mentioned method for dynamically adding, deleting and customizing the test paper content.

[0033] A computer-readable storage medium stores a computer program, which can be executed by a processor to implement the above-mentioned method for dynamically adding, deleting and customizing test paper content.

[0034] The method and system of the present invention for dynamically adding, deleting and customizing test paper content have the following advantages:

[0035] (1) The method of dynamically processing test question types and test questions through buttons in the present invention has good versatility, improves work efficiency, and solves problems in work very well;

[0036] (2) The present invention has good versatility and ease of operation in response to the demand for dynamic addition, deletion and customization of test paper content;

[0037] (3) The present invention sets five test question types by default, namely single-choice questions, multiple-choice questions, true-or-false questions, fill-in-the-blank questions, and short-answer questions. Each test question type is defined with a dedicated folding panel for differentiation and classification. After adding or deleting a test question of a certain test question type, the present invention will dynamically display all modified test questions in the list under the folding panel of the current test question type.

[0038] (4) There are two ways to add new test questions in the present invention. One is to click the Add button in the foldable panel of test question types; the other is to click the Select Test Question Bank button in the foldable panel to select a test question from the test question bank. When selecting from the test question bank, the present invention can determine whether the test question is repeated to ensure the uniqueness of the test question; clicking the Edit button in the table can change the test question name, test question content, test question score, etc.

[0039] (5) After each change of the test questions, the present invention adds up the scores of each test question in each test question type to obtain the total score of each test question type, and then adds up the scores of each test question type to obtain the total score of the test paper, which is recorded in the basic information of the test paper; the number of test questions, total score of each major question in the current test paper, and the total score of the test paper are displayed below the list of selected test questions. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The present invention will be further described below with reference to the accompanying drawings.

[0041] Attachment Figure 1 The present invention is a flowchart of a method for dynamically adding, deleting and customizing test paper content. DETAILED DESCRIPTION

[0042] The following is a detailed description of the method and system for dynamically adding, deleting and customizing test paper content of the present invention with reference to the accompanying drawings and specific embodiments.

[0043] Example 1:

[0044] As attached Figure 1 As shown, this embodiment provides a method for dynamically adding, deleting and customizing test paper content, and the method is specifically as follows:

[0045] S1. Define a test question basic information object paperBasicData by default; the test question basic information object paperBasicData includes three fields: test paper name paperName, test paper total score paperTotalCount, and answer time paperTime. Define three input boxes on the interface and dynamically bind them to the test paper name field paperName, test paper total score paperTotalCount, and answer time paperTime.

[0046] S2. Define a set of arrays for each question type. Different array names are defined for different question types. The arrays store information of all selected questions under the corresponding question type. Among them, the divisor array is always an empty array.

[0047] S3. Each test question is regarded as an object. Each test question object includes the test question name, test question content, test question score and test question ID field (this field is a non-repeating unique identifier dynamically generated when adding a new test question). When selecting from the test question library, the selected test question will be compared with all test questions under the current test question type, and duplicate test questions will be removed by comparing the test question ID.

[0048] In step S1 of this embodiment, the test paper name paperName and the answer time paperTime are dynamically bound to the input boxes in the interface, and the variable values ​​of the fields are customized in the input boxes.

[0049] In step S1 of this embodiment, the total score of the test paper, paperTotalCount, is obtained by adding the total scores of each test question type. After each test question changes, the total score of each test question type is triggered to be recalculated, and then the total scores of each test question type are added together to obtain the total score of the test paper and displayed on the interface.

[0050] The paperTotalCount property of the test paper is set to read-only.

[0051] In step S2 of this embodiment, each test question type has a uniquely named array. A foldable panel is provided for each test question type in the interface. All question types of the corresponding test question type are displayed in a table under the foldable panel. Each row of the table content is dynamically bound to a test question object.

[0052] Each time you operate a question in the table, only modify the array content in the question type array to which the question belongs, and ensure that it does not affect the arrays corresponding to other question types.

[0053] The initial arrays are all empty arrays. A folding panel is defined for each test question type on the interface. The folding panel has buttons for adding new questions and selecting from the test question library. The table in the folding panel is dynamically bound to the array to display all test questions under this test question type. The test question object corresponding to the row can be obtained in the operation bar.

[0054] When clicking the Add button on the accordion panel or the Get button from the Question Library, the question type array corresponding to the current accordion panel is retrieved and the newly added question object is stored in the array. When clicking the Edit Question button in the table, the question type array and the question object for that row are retrieved, and the modified question object is saved in the question type array. After the modification, this method adds the scores for each question and updates the total score field. The table interface is refreshed every time the array or its objects change.

[0055] In this embodiment, when adding a new question, the question object and all the variables contained therein are saved in the array of the question type. When selecting a question from the question library, all the question objects stored in the array of the current question type are traversed, and the question ID field of the object is compared with the question ID field in the selected question object to see if they are consistent:

[0056] If the two are equal, the interface will display the addition failure and exit the traversal method;

[0057] If no equal situation occurs after traversing once, the interface will display that the addition is successful, and the selected test question object will be stored in the array of the current test question type.

[0058] Example 2:

[0059] This embodiment provides a system that can dynamically add, delete and customize test paper content, the system includes:

[0060] Definition unit 1 is used to define a test question basic information object paperBasicData by default; wherein the test question basic information object paperBasicData includes three fields: test paper name paperName, test paper total score paperTotalCount, and answer time paperTime, and defines three input boxes on the interface to dynamically bind to the test paper name field paperName, test paper total score paperTotalCount, and answer time paperTime;

[0061] Definition unit 2 is used to define a set of arrays for each test question type. Different array names are defined for different test question types. The arrays store information of all selected test questions under the corresponding test question type.

[0062] Definition unit three is used to treat each test question as an object. Each test question object includes the test question name, test question content, test question score and test question ID field (this field is a non-repeating unique identifier dynamically generated when adding a new test question). When selecting from the test question library, the selected test question will be compared with all test questions under the current test question type, and duplicate test questions will be removed by comparing the test question ID.

[0063] In this embodiment, the test paper name paperName and the answer time paperTime are dynamically bound to the input box in the interface, and the variable value of the field is customized in the input box;

[0064] In this embodiment, the total score of the test paper, paperTotalCount, is formed by adding the total scores of each test question type. After each test question changes, the total score of each test question type is triggered to be recalculated, and then the total scores of each test question type are added together to obtain the total score of the test paper and displayed on the interface.

[0065] The paperTotalCount property of the test paper is set to read-only.

[0066] Definition unit 2 in this embodiment includes:

[0067] The binding module is used to set up a folding panel for each test question type in the interface, and display all the question types of the corresponding test question type in the table under the folding panel. Each row of the table content is dynamically bound to the test question object; each time a test question is operated in the table, only the array content in the test question type array to which the test question belongs is changed, and it is ensured that the arrays corresponding to other test question types are not affected.

[0068] Definition unit three in this embodiment includes:

[0069] The new and duplicate judgment module is used to save the question object and all the variables contained therein in the array of the question type when adding a new question. When selecting a question from the question library, it traverses all the question objects stored in the array of the current question type and compares the question ID field of the object with the question ID field in the selected question object to see if they are consistent:

[0070] If the two are equal, the interface will display the addition failure and exit the traversal method;

[0071] If no equal situation occurs after traversing once, the interface will display that the addition is successful, and the selected test question object will be stored in the array of the current test question type.

[0072] The working process of the system is as follows:

[0073] (1) Record the basic information of the test paper: the basic information object of the test paperBasicData, which contains three fields: the test paper name field paperName, the test paper total score paperTotalCount, and the answer time paperTime. Three input boxes are defined on the interface and dynamically bound to the three fields. The test paper total score is calculated and set to read-only;

[0074] (2) Test question type array: Due to different types of test question type arrays, different array names need to be defined, which are independent of each other. All test question objects of this type are stored in the array. The test question type array is dynamically bound to the table to display all test questions;

[0075] (3) Dynamically add and delete test questions: When clicking the Add, Select from Test Question Bank, or Edit button, the current test question type array and test question object are obtained, and the test question object in the array is dynamically changed. If the test question ID field of the test object in the same test question type array is repeated, a reminder will be given that the addition failed. After dynamically changing the test question array, the scores of all test questions are added to obtain the total test score and displayed on the interface.

[0076] Example 3:

[0077] This embodiment also provides an electronic device, including: a memory and at least one processor;

[0078] wherein the memory stores computer-executable instructions;

[0079] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for dynamically adding, deleting and customizing test paper content in any embodiment of the present invention.

[0080] Example 4:

[0081] An embodiment of the present invention further provides a computer-readable storage medium storing a plurality of instructions, which are loaded by a processor to cause the processor to execute the method for dynamically adding, deleting, and customizing test paper content according to any embodiment of the present invention. Specifically, a system or device equipped with a storage medium can be provided, wherein the storage medium stores software program code that implements the functions of any of the above-described embodiments, and a computer (or CPU or MPU) of the system or device can read and execute the program code stored in the storage medium.

[0082] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute part of the present invention.

[0083] Examples of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (e.g., CD-ROMs, CD-Rs, CD-RWs, DVD-ROMs, DVD-RYMs, DVD-RWs, DVD+RWs), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer via a communications network.

[0084] In addition, it should be clear that the functions of any of the above embodiments can be achieved not only by executing the program code read by the computer, but also by enabling the operating system operating on the computer to complete part or all of the actual operations based on the instructions of the program code.

[0085] In addition, it can be understood that the program code read from the storage medium is written into the memory provided in the expansion board inserted into the computer or into the memory provided in the expansion unit connected to the computer, and then based on the instructions of the program code, the CPU installed on the expansion board or expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above embodiments.

[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for dynamically adding, deleting and customizing test paper content, characterized in that: The method is as follows: A test question basic information object paperBasicData is defined by default; the test question basic information object paperBasicData includes three fields: test paper name paperName, test paper total score paperTotalCount, and answer time paperTime. Three input boxes are defined on the interface to dynamically bind to the test paper name field paperName, test paper total score paperTotalCount, and answer time paperTime. Each question type defines a set of arrays. Different question types have different array names. The arrays store information of all selected questions under the corresponding question type. Each question is considered as an object. Each question object includes question name, question content, question score and question ID fields. When selecting from the question bank, the selected question is compared with all questions under the current question type, and duplicate questions are removed by comparing the question IDs. Among them, the test paper name paperName and the answer time paperTime are dynamically bound to the input boxes in the interface, and the variable values ​​of the fields are customized in the input boxes; The total score of the test paper, paperTotalCount, is calculated by adding up the total scores of each test question type. After each test question changes, the total score of each test question type is recalculated. The total score of each test question type is then added together to get the total score of the test paper and displayed on the interface. The paperTotalCount property of the test paper is set to read-only; Each question type has a uniquely named array. A folding panel is set for each question type in the interface. All question types of the corresponding question type are displayed in a table under the folding panel. Each row of the table content is dynamically bound to the question object. Each time you operate a question in the table, only modify the array contents in the question type array to which the question belongs, and ensure that the arrays corresponding to other question types are not affected; When adding a new question, the question object and all the variables contained in it are saved in the question type array. When selecting a question from the question library, all question objects stored in the array of the current question type are traversed and the question ID field of the object is compared with the question ID field in the selected question object to see if they are consistent: If the two are equal, the interface will display the addition failure and exit the traversal method; If no equal situation occurs after traversing once, the interface will display that the addition is successful, and the selected test question object will be stored in the array of the current test question type.

2. A system that can dynamically add, delete and customize test paper content, characterized by: The system includes, Definition unit 1 is used to define a test question basic information object paperBasicData by default; wherein the test question basic information object paperBasicData includes three fields: test paper name paperName, test paper total score paperTotalCount, and answer time paperTime, and defines three input boxes on the interface to dynamically bind to the test paper name field paperName, test paper total score paperTotalCount, and answer time paperTime; Definition unit 2 is used to define a set of arrays for each test question type. Different array names are defined for different test question types. The arrays store information of all selected test questions under the corresponding test question type. Define unit three, which treats each question as an object. Each question object includes question name, question content, question score, and question ID fields. When selecting a question from the question bank, the selected question is compared with all questions under the current question type, and duplicate questions are removed by comparing the question IDs. Among them, the test paper name paperName and the answer time paperTime are dynamically bound to the input boxes in the interface, and the variable values ​​of the fields are customized in the input boxes; The total score of the test paper, paperTotalCount, is calculated by adding up the total scores of each test question type. After each test question changes, the total score of each test question type is recalculated. The total score of each test question type is then added together to get the total score of the test paper and displayed on the interface. The paperTotalCount property of the test paper is set to read-only; Definition Unit 2 includes, The binding module is used to set up a folding panel for each test question type in the interface, and display all the question types of the corresponding test question type in the table under the folding panel. Each row of the table content is dynamically bound to the test question object. Among them, each time a test question is operated in the table, only the array content in the test question type array to which the test question belongs is changed, and it is ensured that the arrays corresponding to other test question types are not affected. The definition unit three includes: The new and duplicate judgment module is used to save the question object and all the variables contained therein in the array of the question type when adding a new question. When selecting a question from the question library, it traverses all the question objects stored in the array of the current question type and compares the question ID field of the object with the question ID field in the selected question object to see if they are consistent: If the two are equal, the interface will display the addition failure and exit the traversal method; If no equal situation occurs after traversing once, the interface will display that the addition is successful, and the selected test question object will be stored in the array of the current test question type.

3. An electronic device, characterized in that: include: memory and at least one processor; Wherein, the memory stores a computer program; The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the method for dynamically adding, deleting and customizing test paper content as described in claim 1.

4. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which can be executed by a processor to implement the method for dynamically adding, deleting and customizing test paper content as described in claim 1.

Citation Information

Patent Citations

  • Automatic evolutionary test paper composition method and system based on test question bank

    CN112784023A

  • Method and device for performing test paper composition according to knowledge points and storage medium

    CN113934839A