Method and apparatus for evaluating visual programming work
By automating the evaluation of programming works using preset evaluation rules, the problems of human resource consumption and subjective influence caused by manual evaluation are solved, thus improving the efficiency and accuracy of evaluation.
Patent Information
- Application Number
- CN202110786500.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-12
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2041-07-12
AI Technical Summary
In the current technology, the evaluation of programming works relies on manual review, which leads to serious manpower consumption, and the evaluation results are easily affected by the subjectivity of teachers.
The evaluation results of programming works are obtained by acquiring preset evaluation rules. The programming works are then evaluated automatically using the preset rules. The programming works are matched with preset answers based on at least one dimension category using the preset evaluation rules, thereby achieving automated evaluation.
It achieves automated evaluation without human intervention, improving evaluation efficiency and accuracy, solving the problems of low efficiency and subjective influence of manual evaluation, and ensuring the accuracy of evaluation results.
Smart Images

Figure CN113608977B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of programming, and particularly relates to a visual programming work evaluation method and device. BACKGROUND
[0002] With the development of technology, programming technology has gradually improved. At present, more and more people realize the importance of programming thinking, and gradually begin to learn programming. For teenagers, especially children, it is difficult to adapt to the dull code statements. For this reason, programming platforms such as the Scratch platform have gradually developed. In the Scratch platform, users can generate instruction codes by assembling pre-compiled programming blocks, that is, users can directly use programming blocks to complete programming works.
[0003] Generally, after the user completes the work, a teacher needs to manually review, that is, the teacher end needs to manually evaluate the programming work after receiving the work sent by the user end, to obtain an evaluation result, so that the user can know whether the work is correct based on the evaluation result of the teacher. However, in actual application, the manual evaluation by the teacher needs the teacher to analyze whether the work is correct and whether the content of the examination is implemented, thereby causing the problem of human consumption. SUMMARY
[0004] In view of the above problems, the present application provides a visual programming work evaluation method and device, and the main purpose is to solve the problem of human consumption caused by the current conventional manual evaluation method.
[0005] To solve the above technical problems, in a first aspect, the present application provides a visual programming work evaluation method, which comprises:
[0006] obtaining a programming work, wherein the programming work comprises programming blocks combined with an execution order;
[0007] evaluating the programming work according to a preset evaluation rule to obtain an evaluation result, wherein the preset evaluation rule is used to match the programming work with a preset answer based on at least one dimension category to obtain the evaluation result.
[0008] Optionally, the dimension category comprises a scene, a role, a block string, a block branch, and a programming block, the scene corresponds to at least one role, each role corresponds to at least one block string, each block string comprises at least one block branch, and each block branch comprises at least one programming block.
[0009] Optionally, the evaluation of the programming work according to the preset evaluation rule to obtain the evaluation result comprises:
[0010] When the preset evaluation rule is the first matching rule, a dimension category of the programming work is obtained, the first matching rule is used to judge the programming work in accordance with the dimension category, and the programming work is consistent with a preset answer in all the dimension categories;
[0011] According to the number of dimension parameters contained in each dimension category, a matching order of the dimension category is determined;
[0012] According to the matching order, the dimension category is selected in sequence to match the programming work with the preset answer, and a judgment result is obtained.
[0013] Optionally, according to the matching order, the dimension category is selected in sequence to match the programming work with the preset answer, and a judgment result is obtained, including:
[0014] The dimension parameter corresponding to the dimension category is selected from the programming work;
[0015] When the dimension parameter fails to match the preset answer, it is determined that the judgment result is failed to evaluate;
[0016] When the dimension parameter corresponding to each dimension category and the preset answer are all matched successfully, it is determined that the judgment result is passed evaluation.
[0017] Optionally, the building branch is divided according to a target programming building block in the building string, and the target programming building block includes a logic function building block.
[0018] Before the programming work is judged in accordance with the preset evaluation rule to obtain a judgment result, the method further includes:
[0019] The building string is obtained in the programming work;
[0020] It is judged whether the logic function building block exists in the building string;
[0021] If it exists, the building branch is obtained in the building string according to the logic function building block.
[0022] Optionally, the programming work is judged in accordance with the preset evaluation rule to obtain a judgment result, including:
[0023] When the preset evaluation rule is the third matching rule, a target event is obtained, the third matching rule is used to judge whether the programming work triggers the target event when the programming work is running;
[0024] The programming work is executed, and it is judged whether the programming work triggers the target event when the programming work is running.
[0025] If the evaluation result exists, determining that the evaluation result is passed.
[0026] Optionally, the judging the programming work according to the preset judging rule to obtain the evaluation result comprises:
[0027] When the preset judging rule is the second matching rule, a preset matching point is obtained, wherein the second matching rule is used to match the target parameter in the programming work with a preset answer when judging the programming work according to the dimension category, and the target parameter is a specific parameter corresponding to the dimension category;
[0028] The preset matching point is set in at least one dimension category in advance, and each preset matching point corresponds to a preset answer;
[0029] The target parameter in the programming work is obtained according to the preset matching point;
[0030] The target parameter is compared with the preset answer to obtain the evaluation result.
[0031] Optionally, the comparing the target parameter with the preset answer to obtain the matching result comprises:
[0032] When the preset matching point is multiple, the target parameter of each preset matching point is obtained;
[0033] The corresponding target parameter is compared with the preset answer according to each preset matching point to obtain a matching result corresponding to each preset matching point;
[0034] The evaluation weight of each matching result is obtained;
[0035] The evaluation result is determined according to each matching result and the corresponding evaluation weight.
[0036] In a second aspect, an embodiment of the present application further provides a visual programming work judging device, comprising:
[0037] An obtaining unit is configured to obtain a programming work, wherein the programming work comprises programming blocks combined to have an execution order;
[0038] A judging unit is configured to judge the programming work according to a preset judging rule to obtain an evaluation result, wherein the preset judging rule is used to match the programming work with a preset answer based on at least one dimension category to obtain the evaluation result.
[0039] In order to achieve the above object, according to a third aspect of the present application, there is provided a storage medium comprising a stored program, wherein the storage medium controls a device in which the storage medium is located to execute the visual programming work evaluation method according to any one of the first aspect when the program is run.
[0040] In order to achieve the above object, according to a fourth aspect of the present application, there is provided a device comprising at least one processor and at least one memory connected with the processor, wherein the processor and the memory communicate with each other through a bus; the processor is configured to invoke program instructions in the memory to execute the visual programming work evaluation method according to any one of the first aspect.
[0041] By the above technical solution, the visual programming work evaluation method and device provided by the present application can solve the problem of human consumption caused by the conventional manual evaluation method. The present application obtains a programming work, and then evaluates the programming work according to a preset evaluation rule to obtain an evaluation result, thereby realizing the evaluation function of the visual programming work based on the analysis result. In the above solution, the programming work comprises programming blocks combined with an execution sequence, and the preset evaluation rule is used to match the programming work with a preset answer based on at least one dimension category to obtain the evaluation result. In this way, when a user compiles a programming work from programming blocks, the automatic evaluation function of the programming work can be realized based on at least one dimension according to the preset evaluation rule, thereby eliminating the need for manual evaluation and solving the problem of human consumption caused by the manual evaluation of the programming work. In addition, the matching between the programming work and the preset answer is realized in the evaluation process of the present application, and the preset answer has a unified standard. Therefore, the evaluation process is not affected by the subjectivity of the evaluation teacher during the manual evaluation, thereby making the evaluation result more accurate.
[0042] The above description is only a summary of the technical solution of the present application. In order to more clearly understand the technical means of the present application, the present application can be implemented according to the content of the specification, and in order to make the above and other objects, features and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS
[0043] Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The accompanying drawings are included to provide a description of the preferred embodiments and are not meant to limit the present application. Moreover, the same reference numerals in the attached drawings indicate the same or similar components. In the drawings:
[0044] Figure 1A flow chart of a visual programming work evaluation method provided by an embodiment of the present application is shown;
[0045] Figure 2 A schematic diagram of a programming work and a preset answer in the execution process of a visual programming work evaluation method provided by an embodiment of the present application is shown;
[0046] Figure 3 A composition block diagram of a visual programming work evaluation device provided by an embodiment of the present application is shown;
[0047] Figure 4 A composition block diagram of a device for visual programming work evaluation provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0048] Exemplary embodiments of the present application will be described in detail with reference to the drawings. Although exemplary embodiments of the present application are shown in the drawings, it is understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present application can be more thoroughly understood and the scope of the present application can be accurately conveyed to those skilled in the art.
[0049] To solve the problem of human consumption caused by the current conventional manual evaluation method, an embodiment of the present application provides a visual programming work evaluation method, as shown in the figure, which comprises: Figure 1 As shown in the figure, the method comprises:
[0050] 101, obtaining a programming work.
[0051] The programming work comprises programming blocks combined with execution sequences.
[0052] In the embodiment of the present application, the programming work is actually a code set formed by programming blocks in a programming platform such as Scratch platform. The programming block can be understood as a code block that can control a pre-set character to perform a certain function or behavior, for example, the programming block can include a code block to control the robot to move forward. Based on the fact that each programming block has a relatively complete behavior or function, the programming work can be understood as a complete instruction obtained by combining multiple different behaviors or functions according to a certain execution sequence. Meanwhile, the programming work can also involve other contents such as the character controlled by the running of the complete instruction and the scene of the character running, which are not limited here and can be determined based on the specific situation of user programming.
[0053] 102, evaluating the programming work according to a preset evaluation rule to obtain an evaluation result.
[0054] The preset evaluation rule is used to match the programming work with a preset answer based on at least one dimension category to obtain the evaluation result.
[0055] In actual application, the programming work completed by the user is a building block combination, which can at least control at least one character to perform certain behaviors or actions in at least one scene. Since the evaluation process of the embodiment is determined based on the dimension category, for example, when the dimension category is a building block string, the building block string of the programming work and the preset answer can be matched as shown in the following table. Figure 2
[0056] That is, whether the programming work meets the examination requirements of the teacher needs to ensure that these "elements" meet the requirements of the teacher. That is, the scene, the character, and the function or behavior performed by the character all meet the requirements of the teacher examination, so as to determine the evaluation result. In the embodiment, these "elements" such as the scene, the character, and the function or behavior performed by the character can be understood as dimension categories, and the specific content contained in each dimension category is different. In the evaluation process, it is actually determined whether the programming work is consistent with the preset answer based on a certain dimension category. For example, under the dimension category named scene, the scene A involved in the programming work can be matched with the preset answer (scene X). In the embodiment, the preset answer is the specific data corresponding to each dimension category required in the evaluation process. For example, when the dimension category is scene, the preset answer can be a certain scene, and when the dimension category is character, the preset answer is a certain character corresponding to the dimension category. When the two are consistent, it means that the specific scene involved in the programming work is the scene required by the teacher examination, and then the evaluation result is that the programming work passes the evaluation. In this way, in the matching process, the programming building blocks can be directly compared to determine whether they are consistent, and the corresponding evaluation result can be obtained.
[0057] It should be noted that the above examples of the present step are only exemplary, and in actual application, the number, type, and content of the specific dimensions involved can be set based on actual application requirements, and are not limited herein. For example, in actual application, the dimension category can include three types of scene, character, and building block.
[0058] In this way, in the above scheme, by obtaining the programming work, and then judging the programming work according to the preset judgment rule to obtain the judgment result, the visual programming work judgment function is realized based on the analysis result. In the above scheme, since the programming work includes the programming blocks combined with execution order, the preset judgment rule is used to match the programming work with the preset answer based on at least one dimension category to obtain the judgment result. In this way, when the user compiles the programming work from the programming blocks, the automatic judgment function of the programming work can be realized based on the preset judgment rule through at least one dimension, so that manual judgment is not required, and the problem of human consumption caused by manual judgment of the programming work is solved. In addition, since the matching between the programming work and the preset answer is realized in the judgment process of the application, and the preset answer has a unified standard, the influence of the subjectivity of the judgment teacher during the manual judgment in the entire evaluation process is avoided, so that the judgment result is more accurate.
[0059] In an optional embodiment, the dimension category includes a scene, a role, a block string, a block branch, and a block. The scene corresponds to at least one role. Each role corresponds to at least one block string. Each block string includes at least one block branch. Each block branch includes at least one block. The block is the programming block.
[0060] In the method of the embodiment, the executed scene can be understood as a programming process in which instructions formed by programming blocks control one or more roles to perform some functions or behaviors in a certain scene under the condition of multiple specific scenes and multiple specific roles. In this way, in the method of the foregoing embodiment, it can be understood that after the programming work is compiled, it is necessary to determine what specific scene is involved in the programming work, which role or roles are controlled, and what behavior or function is performed, and then match the scene, the role, and the behavior or function involved in the preset answer respectively to determine whether they are consistent, so as to obtain the corresponding judgment result.
[0061] In addition, in actual application, the preset judgment rule includes a first matching rule, a second matching rule, and a third matching rule. The first matching rule is used to match the programming work with the preset answer in all dimension categories when the programming work is judged according to the dimension category.
[0062] The second matching rule is used to match the target parameter in the programming work with the preset answer when the programming work is judged according to the dimension category. The target parameter is a specific parameter corresponding to the dimension category.
[0063] The third matching rule is used to determine whether the target event is triggered when the program is running.
[0064] Since the judgment process is based on different teacher examinations, the judgment rules can be different, and can specifically include three different rules: one of which is the first matching rule. According to the rule, when the program is compared with the preset answer according to the dimension, the matching results of all dimensions must be consistent, and the program can be determined to pass the evaluation. This rule can be understood as the full matching rule. When the program and the preset answer are different in any dimension, it can be determined that the student's compiled program fails.
[0065] Another is the second matching rule, which does not require the program to be consistent with the answer in all dimensions. The standard for this rule is to determine whether a certain parameter, i.e., the target parameter, in the program is consistent with the answer parameter in the preset answer. Of course, under this rule, the preset answer can be a code instruction composed of multiple programming blocks as described in the previous embodiment, or it can be only a certain programming block corresponding to the target parameter. The type of preset answer can be selected and determined according to actual needs, which is not limited here.
[0066] In addition, there is also a third matching rule, which actually requires the program to be run to determine whether the program meets the needs of the examination, that is, to trigger certain events, i.e., target events.
[0067] It should be noted that in this embodiment, the block string can be understood as a piece of instruction compiled by the user based on the programming block, which contains at least one action or behavior. When there are multiple roles, it can correspond to a certain role required by the user. Generally, each role corresponds to at least one block string. In addition, the block branch can be understood as a certain branch in the instruction formed by the block string. As we all know, the code instruction execution process involves some branching functions, for example, the two branches formed after the judgment statement respectively corresponding to "yes" and "no". Therefore, the block string may also involve block branches. It should be noted that in some cases, there is no branching in the block string, so there is no block branch, of course, it can also be understood that the block branch is this block string. The specific situation can be selected based on the user's needs.
[0068] Since the dimension categories in the method executed in the embodiment respectively include scene, role, block string, block branch and block, it can be ensured that the programming work and the preset answer are matched based on the specific scene, role, block string, block branch and block in the judgment, so that the judgment can be combined with the specific dimensions in the judgment process, so that the judgment result meets the needs of the specific application scene, and the judgment result is more accurate.
[0069] In an optional embodiment, step 102 in the foregoing embodiment judges the programming work according to the preset judgment rule to obtain a judgment result, including:
[0070] When the preset judgment rule is the first matching rule, the dimension categories of the programming work are obtained;
[0071] According to the number of dimension parameters contained in each dimension category, the matching order of the dimension category is determined;
[0072] According to the matching order, the dimension categories are selected in turn to match the programming work with the preset answer to obtain a judgment result.
[0073] Since the actual evaluation process needs to match the programming work with the preset answer, since the first matching rule requires that the programming work and the preset answer are consistent under each dimension category, when there is inconsistency under a certain dimension category, the matching process can be exited and the evaluation result of the programming work compilation failure can be directly obtained. That is, the more the number of dimension parameters contained in the dimension category, the lower the matching efficiency under the dimension category. For example, when the scene in the programming work involves scene 1 and scene 2, and the role involves role 1 to role 10, the number of dimension parameters under the scene dimension category is 2, and the number of dimension parameters under the role dimension category is 10. That is, when judging according to the dimension category, it is obviously beneficial to the role judgment to prioritize the scene judgment. For example, when matching the programming work with the preset answer based on the scene, if scene 2 in the scene is inconsistent with the preset answer, the matching can be exited directly, and the evaluation result is not passed. In this way, the process of selecting role 1 to role 10 in the role dimension category and matching with the preset answer is saved. Therefore, in the embodiment, the matching order of the dimension category can be determined based on the number of dimension parameters contained in each dimension category. Generally, matching can start from the dimension category with a smaller number. For example, generally, the number of roles involved in the category dimension "role" is much smaller than that of the category dimension "block". In this case, the matching of the role dimension category is performed first, and then the matching of the block dimension category is performed. It is very likely that the inconsistency between the programming work and the preset answer is found in the role dimension, and the overall evaluation result is obtained, thereby improving the overall evaluation result.
[0074] Of course, there is a certain association relationship between the scene, the role, and the block string. The matching order can also be directly determined as "scene-role-block string" based on the association relationship according to the user's demand.
[0075] In an optional embodiment, since the matching order is selected to match the programming work and the preset answer in the dimension category in the foregoing embodiment, in the actual execution process, the steps are selected according to the matching order to match the programming work with the preset answer in the dimension category, and the evaluation result is obtained. When executed, it can be specifically:
[0076] First, the dimension parameter corresponding to the dimension category is selected from the programming work. In this embodiment, the dimension parameter can be understood as the specific data corresponding to the dimension category in the programming work. For example, when the dimension category is role, the dimension parameter can be a specific role A in the programming work.
[0077] When the dimension parameter fails to match the preset answer, it is determined that the evaluation result is failed. In this case, it is indicated that the parameters involved in the programming work are different from the parameters in the preset answer. Based on the comprehensive matching rule, all dimensions need to be matched to determine that the evaluation result of the user work is passed. At this time, the matching operation can be exited, and the evaluation result of failed evaluation is directly obtained.
[0078] When the dimension parameter corresponding to each dimension category matches the preset answer, it is determined that the evaluation result is passed. When the first dimension parameter and the second dimension parameter obtained under each dimension category are matched, it is indicated that the programming work and the preset answer are consistent under each dimension category. Therefore, the comprehensive matching rule is met, and it is determined that the evaluation result is passed.
[0079] In an optional embodiment, it is necessary to determine whether there is a branch in a specific block string in some cases, and the block string is constructed by programming blocks. That is, for the case where there is a branch, a corresponding function block is needed. Therefore, when the method of the embodiment is executed, whether there is a block branch can be determined based on a specific block.
[0080] Based on this, the block branch is divided according to a target programming block in the block string, and the target programming block includes a logic function block;
[0081] The method of the embodiment can further include the following when executed:
[0082] The block string is obtained in the programming work;
[0083] It is judged whether the logic function block exists in the block string;
[0084] If the logic function block exists, the block branch is obtained in the block string according to the logic function block.
[0085] For example, when the block string contains a logic function block A representing a selection function, and the logic function block is followed by programming block B and programming block C for different options, respectively, because the subsequent code corresponding to the selection function is divided into different options and corresponding execution actions. At this time, it can be determined based on the logic function block A that the block string contains a branch. Then, the corresponding programming block B is obtained based on the position of the logic function block A, and the programming block B and the remaining programming blocks connected thereto are determined as block branch a. At the same time, the programming block C is obtained, and the programming block C and the remaining programming blocks connected thereto are determined as block branch b.
[0086] By recognizing the target programming block, the block branch in the block string can be ensured to be recognized, so as to determine the block branch. Since the block string is essentially a code combination forming an instruction, by obtaining the block branch, the block string can be split, which helps to ensure the implementation of the matching function in the dimension category based on the block branch, and helps to improve the accuracy of the evaluation process.
[0087] In an optional embodiment, in some cases, the teacher only needs to evaluate some parts of the programming work, and does not need to evaluate the entire work. At this time, the first matching rule is not applicable. In some cases, the teacher may only need to investigate whether a certain function or effect exists in the programming work. Therefore, in the foregoing embodiment, the step 102 evaluates the programming work according to the preset evaluation rule to obtain an evaluation result, including:
[0088] First, when the preset evaluation rule is the third matching rule, a target event is obtained.
[0089] Then, the programming work is executed, and it is determined whether the target event is triggered when the programming work is running.
[0090] If the target event exists, it is determined that the evaluation result is passed.
[0091] In this embodiment, since the third matching rule needs to be matched and judged in the process of running the programming work, and based on the characteristics of the Scratch platform, the platform internally records the effect and event after the programming block runs during the running process of the programming work. Therefore, in this embodiment, the teacher can be provided with a self-defined block at the teacher end, that is, a detection block. The teacher can compile corresponding detection instructions based on the needs of the examination, for example, detecting whether there is a collision, detecting the position of the character, and the like. In this way, when it is determined that the preset evaluation rule is the third matching rule, the detection block compiled by the teacher can be obtained from the teacher end, and the target event required by the teacher to be detected can be determined according to the instructions contained in the detection block. Then, when the programming work is running, it can be determined whether the target event is triggered when the programming work is running. When it is found that the target event exists, it can be determined that the programming work meets the needs of the teacher's examination when running, and then the corresponding evaluation result can be obtained.
[0092] By the method in this embodiment, it can be determined whether the target event is triggered when the programming work is running, so as to ensure that the evaluation based on the execution of the programming work can be performed in the process of the third matching rule, thereby realizing the evaluation function of the dynamic running effect of the programming work.
[0093] In an alternative embodiment, when the second matching rule needs to be performed, that is, the preset answer needs to be compared and judged with the programmed work only in part of the dimension categories, in this case, the step of judging the programmed work according to the preset judgment rule to obtain a judgment result includes:
[0094] When the preset judgment rule is the second matching rule, a preset matching point is obtained, wherein the preset matching point is set by the teacher in at least one of the dimension categories in advance, and each preset matching point corresponds to a preset answer;
[0095] The target parameter in the programmed work is obtained according to the preset matching point;
[0096] The target parameter is compared with the preset answer to obtain a judgment result.
[0097] In this embodiment, the process of setting the preset matching point by the teacher is also based on the selection of the dimension category, for example, the preset matching point can be a role, so that only the role needs to be extracted from the programmed work and compared and matched with the role in the preset answer in the judgment process, thereby obtaining the judgment result. Since the second matching rule process only needs the teacher to select one or several dimensions as the preset matching point, the problem of system resource consumption caused by full matching is avoided, and it is beneficial to the targeted assessment and evaluation of the programmed work, avoiding unnecessary judgment process and saving judgment time.
[0098] In an alternative embodiment, since the judgment process may involve multiple preset matching points, and the importance of different preset matching points is different, the importance needs to be distinguished, so as to realize more accurate determination of the judgment result. Based on this, the step of comparing the target parameter with the preset answer to obtain a matching result includes:
[0099] When the preset matching point is multiple, the target parameter of each preset matching point is obtained;
[0100] The corresponding target parameter is compared with the preset answer according to each preset matching point to obtain a matching result corresponding to each preset matching point;
[0101] The judgment weight of each matching result is obtained;
[0102] The judgment result is determined according to each matching result and the judgment weight corresponding to the matching result.
[0103] When the above steps are executed, each matching result corresponds to a preset matching point respectively, and different preset matching points actually correspond to different importance levels, that is, the importance levels of each matching result are different. In the embodiment, the judgment is performed by means of the judgment weight, and therefore, after the multiple matching results are obtained, the final judgment result can be determined by combining each matching result, the interference of the matching result of some unimportant preset matching point on the overall judgment result is avoided, and the overall judgment result is more accurate.
[0104] Further, as the implementation of the method shown in the above Figure 1 , the embodiment of the present application also provides a visual programming work judging device for implementing the method shown in the above Figure 1 . The device embodiment corresponds to the foregoing method embodiment, for the convenience of reading, the details in the foregoing method embodiment will not be described one by one, but it should be clear that the device in the embodiment can correspondingly implement all the contents in the foregoing method embodiment. As shown in the above Figure 3 , the device comprises:
[0105] The acquisition unit 21 can be used for acquiring a programming work, wherein the programming work comprises programming blocks combined with execution sequences;
[0106] The judging unit 22 can be used for judging the programming work according to a preset judging rule to obtain a judgment result, wherein the preset judging rule can be used for matching the programming work with a preset answer based on at least one dimension category to obtain the judgment result.
[0107] Through the above technical solution, the embodiment of the present application provides a visual programming work judging method and device. For the problem of human consumption caused by the current conventional manual judging mode, the present application acquires a programming work, then judges the programming work according to a preset judging rule to obtain a judgment result, and thus realizes the visual programming work judging function based on the analysis result. In the above solution, since the programming work comprises programming blocks combined with execution sequences, the preset judging rule is used for matching the programming work with a preset answer based on at least one dimension category to obtain the judgment result, so that when the user compiles the programming work from the programming blocks, the automatic judging function of the programming work can be realized based on the preset judging rule through at least one dimension, so that manual judgment is not needed, and the problem of human consumption caused by the current manual programming work judging is solved. In addition, since the matching of the programming work with the preset answer is realized in the judging process of the present application, and the preset answer has a unified standard, the evaluation process will not be affected by the subjectivity of the manual judging teacher, so that the judgment result is more accurate.
[0108] The processor comprises a core, and the core calls corresponding program units in the memory. The core can be one or more, and the problem of human consumption caused by the current conventional artificial evaluation mode can be solved by adjusting the core parameters.
[0109] The embodiment of the present application provides a storage medium, which stores a program, and the program is executed by a processor to realize the visual programming work evaluation method.
[0110] The embodiment of the present application provides a processor, which is used for running a program, wherein the program is executed to perform the visual programming work evaluation method.
[0111] The embodiment of the present application provides a device 40, as shown in the figure, the device comprises at least one processor 401 and at least one memory 402 connected with the processor, and a bus 403; wherein the processor 401 and the memory 402 complete mutual communication through the bus 403; the processor 401 is used for calling program instructions in the memory to execute the visual programming work evaluation method. Figure 4
[0112] The device in the present application can be a server, a PC, a PAD, a mobile phone and the like.
[0113] The present application also provides a computer program product, when executed on a process management device, is suitable for executing the program initialized with the following method steps: obtaining a programming work, wherein the programming work comprises programming blocks combined with execution order; judging the programming work according to a preset evaluation rule to obtain an evaluation result, wherein the preset evaluation rule is used for matching the programming work with a preset answer based on at least one dimension category to obtain the evaluation result.
[0114] Further, the dimension category comprises a scene, a role, a block string, a block branch and a block, the scene corresponds to at least one role, each role corresponds to at least one block string, each block string comprises at least one block branch, each block branch comprises at least one block, and the block is the programming block;
[0115] The preset evaluation rule comprises a first matching rule, a second matching rule and a third matching rule, wherein the first matching rule is used for matching the programming work with the preset answer in all dimension categories when the programming work is judged according to the dimension category;
[0116] The second matching rule is used to determine whether a target parameter in the programming work is consistent with the preset answer when the programming work is evaluated according to the dimension category, and the target parameter is a specific parameter corresponding to the dimension category;
[0117] The third matching rule is used to determine whether a target event is triggered when the programming work is run
[0118] Further, the programming work is evaluated according to the preset evaluation rule to obtain an evaluation result, including:
[0119] When the preset evaluation rule is the first matching rule, the dimension category of the programming work is obtained;
[0120] According to the number of dimension parameters included in each dimension category, the matching order of the dimension category is determined;
[0121] According to the matching order, the dimension categories are selected in sequence to match the programming work with the preset answer to obtain the evaluation result.
[0122] Further, according to the matching order, the dimension categories are selected in sequence to match the programming work with the preset answer to obtain the evaluation result, including:
[0123] The dimension parameter corresponding to the dimension category is selected from the programming work;
[0124] When the dimension parameter fails to match the preset answer, it is determined that the evaluation result is failed to evaluate;
[0125] When the dimension parameter corresponding to each dimension category matches the preset answer successfully, it is determined that the evaluation result is passed.
[0126] Further, the building branch is divided according to a target programming building block in the building string, and the target programming building block includes a logic function building block;
[0127] The method further includes:
[0128] The building string is obtained in the programming work;
[0129] It is determined whether the logic function building block exists in the building string;
[0130] If so, the building branch is obtained in the building string according to the logic function building block.
[0131] Further, the programming work is evaluated according to the preset evaluation rule to obtain an evaluation result, including:
[0132] When the preset evaluation rule is the third matching rule, a target event is acquired, wherein the detection target is determined based on a preset detection block;
[0133] The programmed work is executed, and it is determined whether the target event is triggered when the programmed work is running;
[0134] If the target event exists, it is determined that the evaluation result is passed.
[0135] Further, the programmed work is evaluated according to the preset evaluation rule to obtain an evaluation result, including:
[0136] When the preset evaluation rule is the second matching rule, a preset matching point is acquired, wherein the preset matching point is set by the teacher end in at least one dimension category in advance, and each preset matching point corresponds to a preset answer;
[0137] The target parameter in the programmed work is acquired according to the preset matching point;
[0138] The target parameter is compared with the preset answer to obtain an evaluation result.
[0139] Further, the target parameter is compared with the preset answer to obtain a matching result, including:
[0140] When the preset matching point is multiple, the target parameter of each preset matching point is acquired;
[0141] The target parameter corresponding to each preset matching point is compared with the preset answer respectively to obtain a matching result corresponding to each preset matching point;
[0142] An evaluation weight of each matching result is acquired, wherein the evaluation weight is set by the teacher end in advance and is used to distinguish the importance of different preset matching points;
[0143] The evaluation result is determined according to each matching result and the evaluation weight corresponding to the matching result.
[0144] The present application is described with reference to flowcharts and / or block diagrams according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable processing devices to produce a machine, so that the instructions executed by the computer or other programmable processing devices produce a device that implements the functions described in the flowcharts and / or block diagrams.Figure 1 one or more processes and / or means for carrying out any one of the Figure 1 one or more blocks or any combination thereof.
[0145] In one typical arrangement, the device includes one or more processors (CPUs), memory, and buses. The device can also include input / output interfaces, network interfaces, and the like.
[0146] The memory can include non-persistent memory and / or other volatile memory, representing applications instructions stored in the memory of one or more processors, such as random access memory (RAM), read only memory (ROM) or flash memory, and the like, comprising at least one memory chip. The memory is an example of computer readable media.
[0147] Computer readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile discs (DVDs) or other optical storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to computing devices. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.
[0148] It should also be noted that the terms "comprising," "including," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements recited, but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without limitation, an element preceded by "comprises a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0149] Those skilled in the art will appreciate that embodiments of the present application can be devised for a method, a system, or a computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer-readable program code thereon for use by or in connection with an instruction execution system. For the purposes of this description, a computer-usable or computer readable storage medium can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
[0150] The foregoing is merely illustrative of the embodiments of this application, and is not intended to limit the application. Numerous variations and modifications can be possible to the embodiments without departing from the spirit and scope of the application. Any equivalent modifications or variations, made within the spirit and scope of the application, should be considered within the scope of the application.
Claims
1. A method of visualizing programming work evaluation, characterized by, The method comprises the following steps: acquiring a program work, wherein the program work comprises program blocks combined with execution sequences; judging the program work according to a preset judging rule to obtain a judging result, wherein the preset judging rule is used to match the program work with a preset answer based on at least one dimension category to obtain the judging result; the dimension category comprises a scene, a role, a block string, a block branch and a program block, and the judging the program work according to the preset judging rule to obtain the judging result comprises: when the preset judging rule is a first matching rule, acquiring dimension categories of the program work, wherein the first matching rule is used to match the program work with the preset answer according to the dimension categories, and the program work is consistent with the preset answer in all the dimension categories; determining a matching order of the dimension categories according to the number of dimension parameters contained in each dimension category; selecting the dimension categories in sequence according to the matching order to match the program work with the preset answer, and determining that the judging result is failed to be evaluated when the matching fails, so as to obtain the judging result, wherein the block branch is obtained according to the logic function block in the block string; the judging the program work according to the preset judging rule to obtain the judging result comprises: when the preset judging rule is a third matching rule, acquiring a target event, wherein the third matching rule is used to judge whether the target event is triggered when the program work is run; running the program work and judging whether the target event determined by a detection block predicted by a teacher terminal is triggered when the program work is run; if yes, determining that the judging result is passed.
2. The method of claim 1, wherein, the scene corresponds to at least one role, each role corresponds to at least one block string, each block string comprises at least one block branch, and each block branch comprises at least one program block.
3. The method of claim 2, wherein, the selecting the dimension categories in sequence according to the matching order to match the program work with the preset answer to obtain the judging result comprises: selecting the dimension parameters corresponding to the dimension categories from the program work; when the dimension parameters fail to match the preset answer, determining that the judging result is failed to be evaluated; when the dimension parameters corresponding to each dimension category all match the preset answer, determining that the judging result is passed.
4. The method according to claim 3, wherein before the judging the program work according to the preset judging rule to obtain the judging result, the method further comprises: acquiring the block string in the program work; judging whether the logic function block exists in the block string; if yes, acquiring the block branch in the block string according to the logic function block.
5. The method of claim 2, wherein, the judging the program work according to the preset judging rule to obtain the judging result comprises: When the preset evaluation rule is a second matching rule, a preset matching point is obtained, wherein the second matching rule is used to match a target parameter in the programming work with a preset answer when the programming work is evaluated according to the dimension category, and the target parameter is a specific parameter corresponding to the dimension category; The preset matching point is set in at least one dimension category in advance, and each preset matching point corresponds to a preset answer; The target parameter in the programming work is obtained according to the preset matching point; The evaluation result is obtained by comparing the target parameter with the preset answer.
6. The method of claim 5, wherein, The comparison of the target parameter with the preset answer to obtain the matching result includes: When the preset matching point is multiple, the target parameter of each preset matching point is obtained; The corresponding target parameter is compared with the preset answer according to each preset matching point to obtain a matching result corresponding to each preset matching point; The evaluation weight of each matching result is obtained; The evaluation result is determined according to each matching result and the corresponding evaluation weight.
7. A visual programming work evaluation device, characterized by, The method of any one of claims 1 to 6 is adopted, and the device includes: An obtaining unit is configured to obtain a programming work, wherein the programming work includes programming blocks combined to have an execution sequence; An evaluation unit is configured to evaluate the programming work according to a preset evaluation rule to obtain an evaluation result, wherein the preset evaluation rule is used to match the programming work with a preset answer based on at least one dimension category to obtain the evaluation result.
8. A storage medium, characterized by The storage medium includes a stored program, wherein the program controls the device where the storage medium is located to execute the visual programming work evaluation method of any one of claims 1 to 6 when the program is running.
9. An apparatus, comprising: The device includes at least one processor and at least one memory connected to the processor, and the processor and the memory complete mutual communication through a bus; the processor is configured to call program instructions in the memory to execute the visual programming work evaluation method of any one of claims 1 to 6.
Citation Information
Patent Citations
Graphical programming work inspection method, device and system, equipment and storage medium
CN111930636A