CN102982032A - Test question answer quick storage and loading method based on traversal tree technology - Google Patents

Test question answer quick storage and loading method based on traversal tree technology Download PDF

Info

Publication number
CN102982032A
CN102982032A CN2011102600798A CN201110260079A CN102982032A CN 102982032 A CN102982032 A CN 102982032A CN 2011102600798 A CN2011102600798 A CN 2011102600798A CN 201110260079 A CN201110260079 A CN 201110260079A CN 102982032 A CN102982032 A CN 102982032A
Authority
CN
China
Prior art keywords
tree
answer
script
traversal
test question
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.)
Pending
Application number
CN2011102600798A
Other languages
Chinese (zh)
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.)
SHENZHEN KUAIYIDIAN EDUCATION SCIENCE & TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN KUAIYIDIAN EDUCATION SCIENCE & 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 SHENZHEN KUAIYIDIAN EDUCATION SCIENCE & TECHNOLOGY Co Ltd filed Critical SHENZHEN KUAIYIDIAN EDUCATION SCIENCE & TECHNOLOGY Co Ltd
Priority to CN2011102600798A priority Critical patent/CN102982032A/en
Publication of CN102982032A publication Critical patent/CN102982032A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a test question answer quick storage and loading method based on traversal tree technology. Firstly, data of a test paper file is organized in a tree structure, read and analyzed, and meanwhile an answer tree is established. Secondly, joints in the answer tree are operated so as to increase, modify and delete test question answers. Thirdly, the answers are stored, the answer tree is traversed, and the test question answers in all tree joints in the answer tree are written into a test question answer data base file in sequence. Finally, the answers are loaded, the answer tree is established, and meanwhile, data in the test question answer data base file is read in sequence and test question answers are sequentially stored into the corresponding answer tree joints in order. The test question answer quick storage and loading method based on the traversal tree technology can automatically adapt to test papers of different types and test questions of different quantity, the answers can be stored quickly, and high reliability is achieved.

Description

A kind of script rapid saving and stowage based on the traversal of tree technology
Technical field
The present invention relates to computer realm, relate in particular to a kind of script rapid saving and stowage based on the traversal of tree technology.
Background technology
Existing electronic version mock examination examination question is used more and more extensive in the daily learning life of people, the method of the answer storage of examination question that the examinee does generally is that one group of variable of definition is realized the interim demonstration of script and preserved, and write once was in file after examination question was done and finished.In the situation many in examination question topic type, that examination question quantity is large, the method realizes that storage is loaded down with trivial details, and logic is unintelligible.
Summary of the invention
The object of the invention is to for overcoming the defective of prior art, and a kind of script rapid saving and stowage based on the traversal of tree technology is provided.
For achieving the above object, the present invention is by the following technical solutions: a kind of script rapid saving and stowage based on the traversal of tree technology may further comprise the steps:
S1) the paper data are read and resolved to the paper file of tree organising data, create simultaneously the answer tree;
S2) the described answer tree node of operation steps S1 is to increase, to revise and the deletion script;
S3) preserve answer, traversal answer tree is simultaneously S2) the described answer of step set in script in each tree node write into successively the script database file;
S4) load answer, when creating the answer tree, order reads the data in the script database file, and script successively order is saved in the corresponding answer tree node.
The method that creates the answer tree in the described S1 step is recursion method.
The answer tree tree structure that creates in the described S1 step is consistent with the tree structure of paper file, and per one examination question in the paper file is corresponding with a node of the same structure position of answer tree.
Utilize the method traversing operation answer tree of preorder traversal in the described S2 step.
The method of traversal answer tree is recursion method in the described S3 step.
The present invention's beneficial effect compared with prior art is: can automatically adapt to dissimilar papers and the examination question of varying number, the storage answer is quick, and has high reliability.
Description of drawings
The invention will be further described below in conjunction with the drawings and specific embodiments.
Fig. 1 is a kind of script rapid saving based on the traversal of tree technology and the process flow diagram of stowage.
Embodiment
In order to more fully understand technology contents of the present invention, below in conjunction with specific embodiment technical scheme of the present invention is further introduced and explanation.
As shown in Figure 1, in the present invention, a kind of script rapid saving and stowage based on the traversal of tree technology may further comprise the steps: at first, the paper file of tree organising data is read and resolve the paper data, create simultaneously the answer tree.Secondly, the node of the tree that checks on one's answers operates, to increase, to revise and the deletion script; Again, preserve answer, traversal answer tree is write into the script database file successively with the script in each tree node in the answer tree; Finally, load answer, when creating the answer tree, order reads the data in the script database file, and script successively order is saved in the corresponding answer tree node.
In the present invention, the paper file of tree organising data is read and resolve the paper data, create simultaneously the answer tree, the method that adopts is recursion method.
In the present invention, paper file to the tree organising data reads and resolves the paper data, the answer tree tree structure that creates simultaneously is consistent with the tree structure of paper file, and per one examination question in the paper file is corresponding with a node of the same structure position of answer tree.
Further, in the present invention, utilize the method traversing operation answer tree of preorder traversal, to increase, to revise and the deletion script, can guarantee that like this order of traverse tree node is identical with the order that creates each tree node.
In the present invention, traversal answer tree simultaneously the script in each tree node of answer tree to be write into successively the method that the script database file adopts be recursion method.
The above only further specifies technology contents of the present invention with embodiment, so that the reader is more readily understood, does not only limit to this but do not represent embodiments of the present invention, and any technology of doing according to the present invention is extended or recreation, all is subjected to protection of the present invention.

Claims (5)

1. script rapid saving and stowage based on a traversal of tree technology is characterized in that may further comprise the steps:
S1) the paper data are read and resolved to the paper file of tree organising data, create simultaneously the answer tree;
S2) the described answer tree node of operation steps S1 is to increase, to revise and the deletion script;
S3) preserve answer, traversal answer tree is simultaneously S2) the described answer of step set in script in each tree node write into successively the script database file;
S4) load answer, when creating the answer tree, order reads the data in the script database file, and script successively order is saved in the corresponding answer tree node.
2. script rapid saving and stowage based on the traversal of tree technology according to claim 1 is characterized in that described S1) method that creates the answer tree in the step is recursion method.
3. script rapid saving and stowage based on the traversal of tree technology according to claim 1, it is characterized in that described S1) the answer tree tree structure that creates in the step is consistent with the tree structure of paper file, and per one examination question in the paper file is corresponding with a node of the same structure position that answer is set.
4. script rapid saving and stowage based on the traversal of tree technology according to claim 1 is characterized in that described S2) utilize the method traversing operation answer tree of preorder traversal in the step.
5. script rapid saving and stowage based on the traversal of tree technology according to claim 1 is characterized in that described S3) method of traversal answer tree is recursion method in the step.
CN2011102600798A 2011-09-05 2011-09-05 Test question answer quick storage and loading method based on traversal tree technology Pending CN102982032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102600798A CN102982032A (en) 2011-09-05 2011-09-05 Test question answer quick storage and loading method based on traversal tree technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102600798A CN102982032A (en) 2011-09-05 2011-09-05 Test question answer quick storage and loading method based on traversal tree technology

Publications (1)

Publication Number Publication Date
CN102982032A true CN102982032A (en) 2013-03-20

Family

ID=47856070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102600798A Pending CN102982032A (en) 2011-09-05 2011-09-05 Test question answer quick storage and loading method based on traversal tree technology

Country Status (1)

Country Link
CN (1) CN102982032A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932795A (en) * 2006-10-10 2007-03-21 青岛中科恒信信息技术有限公司 Examination paper intelligent setting questions and organizing system
CN101122975A (en) * 2006-08-07 2008-02-13 侯星桥 Inventory management method
CN101261617A (en) * 2008-04-08 2008-09-10 黎章 Machine proposition method and system
US20090087826A1 (en) * 2007-09-27 2009-04-02 Hong Fu Jin Precision Industry (Shenzhen) Co. Ltd. System and method for generating an exam

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122975A (en) * 2006-08-07 2008-02-13 侯星桥 Inventory management method
CN1932795A (en) * 2006-10-10 2007-03-21 青岛中科恒信信息技术有限公司 Examination paper intelligent setting questions and organizing system
US20090087826A1 (en) * 2007-09-27 2009-04-02 Hong Fu Jin Precision Industry (Shenzhen) Co. Ltd. System and method for generating an exam
CN101261617A (en) * 2008-04-08 2008-09-10 黎章 Machine proposition method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
倪应华: "基于XML自动阅卷算法的设计与实现", 《仪器仪表学报》, vol. 26, no. 8, 31 August 2005 (2005-08-31), pages 704 - 705 *

Similar Documents

Publication Publication Date Title
US9256665B2 (en) Creation of inverted index system, and data processing method and apparatus
CN102682126B (en) The access method of a kind of form data and device
CN106599317A (en) Test data processing method and device for question-answering system and terminal
CN104298595A (en) Automatic testing method and testing system
CN102819547A (en) Method and device for configuring field attribute
CN103885966A (en) Question and answer interaction method and system of electronic commerce transaction platform
CN107870928A (en) File reading and device
CN106909470A (en) Distributed file system storage method and device based on correcting and eleting codes
CN108595416A (en) Character string processing method and equipment
CN103095726A (en) Processing method and device of protocol interpreter
CN106778278A (en) A kind of malice document detection method and device
CN102270238A (en) Method and device for establishing continuation of Chinese knowledge points
CN111931460A (en) Variable-row-supporting Excel file analysis method and system
CN106776779A (en) The method of the JSON data genaration entity files based on Mac platforms
US10614169B1 (en) Script unique prompts
CN105808748A (en) MIB (Management Information Base) version contrast method and device
CN107766230A (en) A kind of method and apparatus tested based on configuration file
CN108053034A (en) Model parameter processing method, device, electronic equipment and storage medium
CN107943881A (en) Test database generation method, server and computer-readable recording medium
CN102982032A (en) Test question answer quick storage and loading method based on traversal tree technology
CN107885644A (en) It is a kind of based on the method that BIOS default values are quickly checked under linux system
CN117033249A (en) Test case generation method and device, computer equipment and storage medium
CN105243020B (en) A kind of automated testing method suitable for wide-area distribution type real-time data base
CN106951531A (en) Data query method and device
CN109522921A (en) Statement similarity method of discrimination and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130320