CN112596725A - Grading method and grading device for programming works, terminal equipment and storage medium - Google Patents

Grading method and grading device for programming works, terminal equipment and storage medium Download PDF

Info

Publication number
CN112596725A
CN112596725A CN202011552204.8A CN202011552204A CN112596725A CN 112596725 A CN112596725 A CN 112596725A CN 202011552204 A CN202011552204 A CN 202011552204A CN 112596725 A CN112596725 A CN 112596725A
Authority
CN
China
Prior art keywords
programming
scored
scoring
work
items
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
CN202011552204.8A
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.)
Ubtech Robotics Corp
Original Assignee
Ubtech Robotics Corp
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 Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN202011552204.8A priority Critical patent/CN112596725A/en
Publication of CN112596725A publication Critical patent/CN112596725A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06393Score-carding, benchmarking or key performance indicator [KPI] analysis

Abstract

The application is suitable for the technical field of programming, and provides a scoring method, a scoring device, terminal equipment and a storage medium for programming works, wherein the scoring method comprises the following steps: acquiring a programming product to be evaluated; when the programming works to be scored are operated, at least two scoring items of the programming works to be scored are obtained; and determining the grade of the programming work to be graded according to the at least two grading items. The method and the device can improve the scoring efficiency and the scoring accuracy of the programming works.

Description

Grading method and grading device for programming works, terminal equipment and storage medium
Technical Field
The application belongs to the technical field of programming, and particularly relates to a scoring method, a scoring device, terminal equipment and a storage medium for programming works.
Background
The programming technique is a technique for achieving a certain purpose or solving a certain problem by means of a computer, and a program code is written using a certain programming language, and a result is finally obtained. In order to facilitate some users without programming experience to learn programming thinking, graphical programming comes along, and the graphical programming replaces obscure programming languages with functional building blocks which are easy to understand, and does not need to spend a great deal of time to learn one programming language.
In the related art, after writing the programming work, the related personnel (for example, a review clerk or a teacher) can collect the programming work and then manually score the programming ability of the programming work, which is inefficient. In addition, the workload of related personnel is large, so that the programming product cannot be truly and objectively evaluated, and the scoring accuracy of the programming product is influenced.
Disclosure of Invention
The embodiment of the application provides a scoring method, a scoring device, terminal equipment and a storage medium for programming works, so that the scoring efficiency and the scoring accuracy of the programming works are improved.
In a first aspect, an embodiment of the present application provides a scoring method for programming works, where the scoring method includes:
acquiring a programming product to be evaluated;
when the programming works to be scored are operated, at least two scoring items of the programming works to be scored are obtained, wherein the at least two scoring items comprise time complexity and space complexity of the programming works to be scored from the beginning to the end of operation;
and determining the grade of the programming work to be graded according to the at least two grading items.
In a second aspect, an embodiment of the present application provides a scoring device for programming works, the scoring device including:
the program obtaining module is used for obtaining a program product to be scored;
the scoring item acquisition module is used for acquiring at least two scoring items of the programming work to be scored when the programming work to be scored is operated, wherein the at least two scoring items comprise time complexity and space complexity of the programming work to be scored from the beginning to the end of operation;
and the score determining module is used for determining the score of the programming work to be scored according to the at least two scoring items.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the steps of the scoring method for the programming product according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the scoring method for programming products according to the first aspect.
In a fifth aspect, the present application provides a computer program product, which when run on a terminal device, causes the terminal device to execute the steps of the scoring method for programming products as described in the first aspect.
Therefore, when the programming works to be scored are operated, the scoring of the programming works to be scored can be automatically determined according to the time complexity and the space complexity of the programming works to be scored by acquiring the time complexity and the space complexity of the programming works to be scored from the beginning to the end of the operation without manual scoring, and the scoring efficiency and the scoring accuracy are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram illustrating a flowchart of an implementation of a scoring method for programming works provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of an implementation flow of a scoring method for programming works provided in the second embodiment of the present application;
FIG. 3 is a schematic structural diagram of a scoring apparatus for programming works provided in the third embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminal devices described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal device that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal device may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, which is a schematic flow chart illustrating an implementation process of a scoring method for a programming product provided in an embodiment of the present application, where the scoring method is applied to a terminal device, and as shown in the figure, the scoring method may include the following steps:
step 101, obtaining a programming product to be scored.
The program works to be scored can be the program works to be scored, the program works to be scored can be automatically scored through the scoring method, workload of manual scoring is reduced, scoring efficiency is improved, the program works to be scored can be truly and objectively evaluated when the program works to be scored are scored, and scoring accuracy is improved.
In this embodiment, the programming product to be scored may be obtained from other devices, or the programming product to be scored may be obtained locally from the terminal device, which is not limited herein. The other devices refer to devices other than the terminal device.
Obtaining the programming product to be scored from other devices may specifically refer to: the method comprises the steps that programming works to be scored are stored in other equipment in advance, terminal equipment sends programming work obtaining requests to the other equipment, the other equipment obtains the programming works to be scored from the local after receiving the programming work obtaining requests, and the programming works to be scored are sent to the terminal equipment.
Obtaining the programming product to be scored locally from the terminal device specifically may refer to: the method comprises the steps that programming works to be scored are stored in a terminal device locally in advance, and after the terminal device receives a programming work obtaining request, the programming works to be scored are obtained from the local.
The request for obtaining the programming work may be triggered and generated by the user at the terminal device. For example, a programming work scoring application program is installed on a terminal device, the programming work scoring application program is started, a programming work option is displayed on an interface of the programming work scoring application program, the programming work option is opened, identification information of at least one programming work is displayed, and when a selection operation of the identification information of any programming work is detected, an acquisition request (namely a programming work acquisition request) for the programming work is triggered and generated. The programming composition scoring application described above may refer to software for implementing aspects of the present application. The identification information of the programming works is used for representing the uniqueness of the programming works, and the identification information of different programming works is different.
In another example, the above-mentioned programmed work scoring application program may also be used as a functional module of the programming software (for example, the functional module is referred to as a scoring functional module), the programming software is started, the scoring functional module is displayed on an interface of the programming software, and after the user finishes the programmed work through the programming software, the scoring of the programmed work may be realized by starting the scoring functional module, that is, the scoring of the programmed work is realized in the programming software without additionally installing other scoring software on the terminal device.
The programming product acquisition request at least comprises identification information of the programming product to be evaluated, so that the programming product to be evaluated can be searched from other equipment or terminal equipment according to the identification information.
It should be noted that the above-mentioned program product to be scored may be a program code written by using a programming language, or may be a graphical programming (for example, a building block graphical programming) product, which is not limited herein.
Step 102, when the programming works to be scored are operated, at least two scoring items of the programming works to be scored are obtained.
Specifically, input parameters can be provided for the programming works to be scored through the terminal device, the programming works to be scored are operated after the input parameters are provided for the programming works to be scored, at least two scoring items are obtained when the programming works to be scored are operated, and step 103 is executed when the output results of the programming works to be scored are correct.
Optionally, when the output result of the programming product to be scored is wrong, a prompt message may be sent, and the score of the programming product to be scored is determined to be zero. The terminal device may send the prompt message in a voice manner, may send the prompt message in a display manner, or send the prompt message in other manners, which is not limited herein. The voice mode may be voice broadcasting. The display mode may be display on a screen of the terminal device.
Illustratively, the work to be programmed is to sort letters, the input parameters are a, o, m and c, and after the work to be programmed is operated, if the output result is acmo, step 103 is executed; and if the output result is not acmo, displaying a result error on a screen of the terminal equipment, and determining that the score of the work to be programmed is zero.
The at least two scoring items comprise time complexity and space complexity of the to-be-scored programming product from the beginning to the end of the operation.
The time complexity refers to the amount of computational work required to execute the programming to be scored, and qualitatively describes the running time of the programming to be scored. The spatial complexity refers to the memory space required to execute the programming work to be scored.
In an embodiment, the time complexity and the space complexity, which are obtained from the beginning to the end of the running, of the to-be-scored programming product may be used as scoring items of the to-be-scored programming product, and the to-be-scored programming product is scored based on the time complexity and the space complexity.
Optionally, when the programming work to be scored is operated, at least two scoring items of the programming work to be scored are obtained, further comprising:
when the programming works to be scored are operated, detecting whether the programming works to be scored have the target program structure or not to obtain a detection result;
and determining the detection result as a score.
Wherein, an object program structure can be preset, and the object program structure includes but is not limited to a loop, an event, a recursion, etc. The event refers to an operation on a component, for example, moving a mouse, pressing a keyboard, clicking a button, and the like all belong to the event.
Optionally, the user may set the target program structure according to actual needs. For example, a target program structure setting option is displayed on an interface of a program product scoring application program, the setting option is opened, at least one program structure is displayed, and when a selection operation of any one of the at least one program structure is detected, the program structure selected by a user is taken as the target program structure.
The detection result comprises that the to-be-scored programming product has a use target program structure and the to-be-scored programming product does not have the use target program structure.
In another embodiment, the detection result of the programming work to be scored (i.e. the detection result of whether the programming work to be scored uses the target program structure) may also be used as the scoring item, i.e. the programming work to be scored is scored based on the time complexity, the space complexity and the detection result.
Optionally, if the programming work to be scored is a building block type graphical programming work, when the programming work to be scored is operated, at least two scoring items of the programming work to be scored are obtained, and the method further includes:
when the programming works to be scored are operated, the number of the building blocks used by the programming works to be scored is obtained, and the number of the building blocks is determined as a scoring item.
The building block type graphical programming work is written by using building block type graphical programming. The building block type graphical programming is to realize the programming of programming language codes by building blocks, and compared with the programming of the programming language codes, the building block type graphical programming is more suitable for children or users without programming bases to learn. The building blocks can be understood as a display mode of programming language codes.
When the programming work to be scored is a building block type graphical programming work, the number of building blocks used by the programming work to be scored can be used as scoring items. That is, in yet another embodiment, the programming work to be scored may be scored based on temporal complexity, spatial complexity, and number of blocks; or scoring the programming works to be scored based on the time complexity, the space complexity, the detection result of whether the programming works to be scored use the target program structure or not and the number of the building blocks.
Optionally, the detecting whether the target program structure is used for the to-be-scored program product includes:
detecting whether building blocks using target program structures exist in the to-be-evaluated programming product;
if the building blocks using the target program structures exist in the programming works to be scored, determining that the programming works to be scored have the target program structures;
and if no building block using the target program structure exists in the programming work to be scored, determining that the target program structure is not used in the programming work to be scored.
Because the building block type graphical programming product realizes corresponding functions by building the building block which is a display mode of programming language codes, whether the target program structure is used in the programming product to be scored can be determined by detecting whether the target program structure is used in the building block in the programming product to be scored.
And 103, determining the grade of the programming product to be graded according to the at least two grading items.
In this embodiment, according to the difference between the at least two scoring items, the scoring of the programming work to be scored may be determined in any one of the following four ways.
The first mode is as follows: when the at least two scoring items are time complexity and space complexity, scoring of the programming product to be scored can be determined according to the time complexity and the space complexity of the programming product to be scored.
The second mode is as follows: when the at least two scoring items are time complexity, space complexity and whether the detection result of the target program structure is used in the to-be-scored program product, scoring of the to-be-scored program product can be determined according to the time complexity, the space complexity and the detection result of the to-be-scored program product.
The third mode is as follows: when the at least two scoring items are time complexity, space complexity and number of building blocks, scoring of the programming product to be scored can be determined according to the time complexity, the space complexity and the number of the building blocks of the programming product to be scored.
The fourth mode is that: when the at least two scoring items are time complexity, space complexity, number of building blocks and whether a detection result of using a target program structure exists in the to-be-scored programming product, scoring of the to-be-scored programming product can be determined according to the time complexity, the space complexity, the number of building blocks and the detection result of the to-be-scored programming product.
According to the embodiment of the application, when the programming works to be scored are operated, the scoring of the programming works to be scored can be automatically determined according to the at least two scoring items of the programming works to be scored, manual scoring is not needed, and the scoring efficiency and the scoring accuracy are improved.
Referring to fig. 2, it is a schematic view of an implementation flow of a scoring method for programming works provided in the second embodiment of the present application, where the scoring method is applied to a terminal device, and as shown in the figure, the scoring method may include the following steps:
step 201, obtaining a programming product to be scored.
The step is the same as step 101, and reference may be made to the related description of step 101, which is not described herein again.
Step 202, when the programming works to be scored are operated, at least two scoring items of the programming works to be scored are obtained.
The step is the same as step 102, and reference may be made to the related description of step 102, which is not repeated herein.
And step 203, obtaining scores corresponding to at least two scores.
The score corresponding to the at least two scoring items refers to a score corresponding to each scoring item in the at least two scoring items. For example, if the at least two scoring items are the time complexity and the space complexity of the programming product to be scored, step 203 is to obtain a score corresponding to the time complexity of the programming product to be scored and a score corresponding to the space complexity of the programming product to be scored.
In this embodiment, for the ith scoring item of the at least two scoring items, where the ith scoring item refers to any one of the at least two scoring items, a mapping relationship corresponding to the ith scoring item may be obtained first, where the mapping relationship corresponding to the ith scoring item at least includes a corresponding relationship between the ith scoring item and a score, and the score corresponding to the ith scoring item may be determined according to the mapping relationship corresponding to the ith scoring item.
The mapping relationship corresponding to the ith scoring item may be obtained from other devices, or the mapping relationship corresponding to the ith scoring item may be locally obtained from the terminal device, which is not limited herein.
Obtaining a mapping relationship corresponding to the ith scoring item from other devices may specifically be: the terminal equipment sends a mapping relation obtaining request aiming at the ith scoring item to other equipment, and after receiving the mapping relation obtaining request, the other equipment obtains the mapping relation of the ith scoring item from the local and sends the mapping relation to the terminal equipment.
The obtaining, from the terminal device, the mapping relationship corresponding to the ith score item locally may specifically be: the mapping relation corresponding to the ith scoring item is stored in the terminal device locally in advance, and after the terminal device receives a mapping relation obtaining request aiming at the ith scoring item, the mapping relation corresponding to the ith scoring item is obtained locally.
The mapping relation obtaining request for the ith scoring item may be automatically triggered and generated when the terminal device obtains the ith scoring item of the to-be-scored programming product.
And 204, determining the grade of the programming work to be graded according to the grades corresponding to the at least two grading items.
Wherein, the score corresponding to the at least two scoring items refers to the score of each scoring item in the at least two scoring items. For example, if the at least two scoring items are the time complexity and the space complexity of the programming product to be scored, step 204 is to determine the score of the programming product to be scored according to the score corresponding to the time complexity of the programming product to be scored and the score corresponding to the space complexity of the programming product to be scored.
Optionally, before determining the score of the programming work to be scored according to the scores corresponding to the at least two scoring items, the method further includes:
acquiring weights corresponding to at least two scoring items;
determining the score of the programming work to be scored according to the scores corresponding to the at least two scoring items comprises the following steps:
and weighting the scores corresponding to the at least two scoring items according to the weights corresponding to the at least two scoring items to obtain the score of the to-be-scored programmed work.
The weight corresponding to the at least two scoring items refers to the weight corresponding to each scoring item in the at least two scoring items. For example, if the at least two scoring items are the time complexity and the space complexity of the programming product to be scored, obtaining the weights corresponding to the at least two scoring items means obtaining the weight corresponding to the time complexity of the programming product to be scored and the weight corresponding to the space complexity of the programming product to be scored.
The weight corresponding to each scoring term can be understood as: the importance of each scoring item relative to the score of the programming composition to be scored. For example, the weight corresponding to the time complexity of the program to be scored may be understood as: the degree of importance of the temporal complexity to the scoring of the programming work to be scored.
After the weight corresponding to each of the at least two scoring items is obtained, the score corresponding to each scoring item may be multiplied by the weight corresponding to the scoring item, the obtained value is the score corresponding to the scoring item, the scores corresponding to the at least two scoring items are added, and the obtained value is the score of the programming product to be scored.
Exemplarily, obtaining a programming product A to be scored; when the programming product A to be scored is operated, acquiring the time complexity, the space complexity, the number of building blocks and a detection result of whether the programming product A to be scored has a target program structure (for example, the detection result of the programming product A to be scored is that the programming product A to be scored has the target program structure); acquiring a mapping relation corresponding to the time complexity, and determining the score corresponding to the time complexity of the programming product A to be scored as 80 according to the mapping relation; acquiring a mapping relation corresponding to the space complexity, and determining the score corresponding to the space complexity of the programming product A to be scored as 80 according to the mapping relation; acquiring a mapping relation corresponding to the number of the building blocks, and determining the score corresponding to the number of the building blocks of the programming product A to be scored as 100 according to the mapping relation; acquiring a mapping relation corresponding to the detection result (for example, in the mapping relation, a score corresponding to a used target program structure is 100, and a score corresponding to an unused target program structure is 0), and determining that the score corresponding to the detection result of the programming a to be scored is 100 according to the mapping relation; the weight of the acquired time complexity is 0.4, the weight of the acquired space complexity is 0.4, the weight of the number of building blocks is 0.05, and the weight of the detection result is 0.15; the score of the programmed work a to be scored was 84 according to the formula 80 × 0.4+100 × 0.05+100 × 0.15.
Optionally, before obtaining the weights corresponding to the at least two scoring items, the method further includes:
acquiring an application scene of a programming product to be evaluated;
and determining the weights corresponding to at least two scoring items according to the application scene of the programming product to be scored.
The application scene of the programming product to be scored can be understood as a scene using the programming product to be scored. The application scene of the programming product to be scored reflects the importance degree of different scoring items in the programming product to be scored. For example, in the programming teaching, if the circulation is being learned, the teacher hopes the students to master the circulation usage, so whether the circulation usage of the programming works to be scored submitted by the students is important, and a larger weight can be set for the usage circulation of the scoring items. If computer graphics is being learned, the teacher hopes that students use more blocks during programming, so that it is important that the program works to be scored submitted by the students use more blocks, and a larger weight can be set for the number of the scoring item blocks.
Because different scoring items have different influences on the scoring of the programming works to be scored in different application scenes, the weight corresponding to each scoring item is determined according to the application scenes of the programming works to be scored, and the scoring of the programming works to be scored can be accurately determined according to the application scenes. For example, the shortest path from the starting point a to the end point B is found from a map for the to-be-scored programmed work, that is, the input of the to-be-scored programmed work is the starting point a, the end point B and all coordinates on one map, and the output is the shortest path from the starting point a to the end point B.
When the programming works to be scored are operated, the scoring of the programming works to be scored can be automatically determined according to the scores corresponding to the at least two scoring items of the programming works to be scored by obtaining the at least two scoring items of the programming works to be scored, manual scoring is not needed, and scoring efficiency and scoring accuracy are improved.
Fig. 3 is a schematic structural diagram of a scoring device for a programming product provided in the third embodiment of the present application, and for convenience of description, only the parts related to the third embodiment of the present application are shown.
The scoring device comprises:
the programming acquisition module 31 is used for acquiring the programming product to be scored;
the scoring item acquisition module 32 is configured to acquire at least two scoring items of the programming work to be scored when the programming work to be scored is operated, where the at least two scoring items include time complexity and space complexity of the programming work to be scored from the start of operation to the end of operation;
and the score determining module 33 is configured to determine a score of the programming product to be scored according to the at least two scoring items.
Optionally, the scoring item obtaining module 32 includes:
the structure detection unit 321 is configured to detect whether the programming product to be scored has a target program structure to be used when the programming product to be scored is operated, and obtain a detection result;
a first determining unit 322, configured to determine that the detection result is a scoring item.
Optionally, the score item obtaining module 32 is specifically configured to:
a building block obtaining unit 323, configured to, if the programming product to be scored is a building block type graphical programming product, obtain the number of building blocks used by the programming product to be scored when the programming product to be scored is operated;
a second determining unit 324, configured to determine the number of blocks as a score item.
Optionally, the structure detecting unit 321 is specifically configured to:
detecting whether building blocks using the target program structure exist in the to-be-scored programming product or not;
if the building blocks using the target program structure exist in the to-be-scored programming product, determining that the to-be-scored programming product uses the preset program structure;
and if no building block using the preset program structure exists in the to-be-scored programming product, determining that the to-be-scored programming product does not use the preset program structure.
Optionally, the score determining module 33 includes:
a score obtaining unit 331, configured to obtain scores corresponding to the at least two scoring items;
the score determining unit 332 is configured to determine a score of the to-be-scored programming product according to the scores corresponding to the at least two scoring items.
Optionally, the score determining module 33 further includes:
a weight obtaining unit 333, configured to obtain weights corresponding to the at least two scoring items;
the score determining unit 332 is specifically configured to weight the scores corresponding to the at least two scoring items according to the weights corresponding to the at least two scoring items, so as to obtain the score of the to-be-scored programmed work.
Optionally, the score determining module 33 further includes:
a scene obtaining unit 334, configured to obtain an application scene of the programming product to be scored;
the weight obtaining unit 333 is specifically configured to determine weights corresponding to the at least two scoring items according to an application scenario of the programming product to be scored.
The scoring device provided in the embodiment of the present application can be applied to the first method embodiment and the second method embodiment, and for details, reference is made to the description of the first method embodiment and the second method embodiment, and details are not repeated here.
Fig. 4 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present application. As shown in fig. 4, the terminal device 4 of this embodiment includes: one or more processors 40 (only one shown), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40. The processor 40 implements the steps of the various scoring method embodiments described above when executing the computer program 42.
The terminal device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of a terminal device 4 and does not constitute a limitation of terminal device 4 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), and may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
When the computer program product runs on a terminal device, the terminal device can implement the steps in the method embodiments.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A scoring method for a programming work, the scoring method comprising:
acquiring a programming product to be evaluated;
when the programming works to be scored are operated, at least two scoring items of the programming works to be scored are obtained, wherein the at least two scoring items comprise time complexity and space complexity of the programming works to be scored from the beginning to the end of operation;
and determining the grade of the programming work to be graded according to the at least two grading items.
2. The scoring method according to claim 1, wherein the obtaining of at least two scoring items of the programming work to be scored when the programming work to be scored is executed further comprises:
when the programming works to be scored are operated, detecting whether the programming works to be scored have the target program structure or not to obtain a detection result;
and determining the detection result as a scoring item.
3. The scoring method according to claim 2, wherein if the programming work to be scored is a building block graphical programming work, the obtaining of at least two scoring items of the programming work to be scored when the programming work to be scored is executed further comprises:
when the programming works to be scored are operated, the number of the building blocks used by the programming works to be scored is obtained;
and determining the number of the building blocks as a scoring item.
4. The scoring method according to claim 3, wherein the detecting whether the program work to be scored uses the target program structure comprises:
detecting whether building blocks using the target program structure exist in the to-be-scored programming product or not;
if the building blocks using the target program structure exist in the to-be-scored programming product, determining that the to-be-scored programming product uses the preset program structure;
and if no building block using the preset program structure exists in the to-be-scored programming product, determining that the to-be-scored programming product does not use the preset program structure.
5. A scoring method according to any one of claims 1 to 4, wherein determining a score of the programming work to be scored according to the at least two scoring items comprises:
obtaining scores corresponding to the at least two score items;
and determining the grade of the programming work to be graded according to the grades corresponding to the at least two grading items.
6. The scoring method according to claim 5, before determining the score of the programming work to be scored according to the scores corresponding to the at least two scoring items, further comprising:
acquiring weights corresponding to the at least two scoring items;
the determining the score of the programming work to be scored according to the scores corresponding to the at least two scoring items comprises:
and weighting the scores corresponding to the at least two scoring items according to the weights corresponding to the at least two scoring items to obtain the score of the programming product to be scored.
7. A scoring method as in claim 6, further comprising, before obtaining the weights corresponding to the at least two scoring terms:
acquiring an application scene of the programming product to be scored;
and determining the weights corresponding to the at least two scoring items according to the application scene of the programming product to be scored.
8. A scoring device for a programmed work, the scoring device comprising:
the program obtaining module is used for obtaining a program product to be scored;
the scoring item acquisition module is used for acquiring at least two scoring items of the programming work to be scored when the programming work to be scored is operated, wherein the at least two scoring items comprise time complexity and space complexity of the programming work to be scored from the beginning to the end of operation;
and the score determining module is used for determining the score of the programming work to be scored according to the at least two scoring items.
9. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for scoring a programmed work according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of a method of scoring a programmed work according to any one of claims 1 to 7.
CN202011552204.8A 2020-12-24 2020-12-24 Grading method and grading device for programming works, terminal equipment and storage medium Pending CN112596725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011552204.8A CN112596725A (en) 2020-12-24 2020-12-24 Grading method and grading device for programming works, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011552204.8A CN112596725A (en) 2020-12-24 2020-12-24 Grading method and grading device for programming works, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112596725A true CN112596725A (en) 2021-04-02

Family

ID=75201895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011552204.8A Pending CN112596725A (en) 2020-12-24 2020-12-24 Grading method and grading device for programming works, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112596725A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220286A (en) * 2021-04-27 2021-08-06 浙大城市学院 Evaluation method of graphical programming product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491915A (en) * 2018-11-09 2019-03-19 网易(杭州)网络有限公司 Data processing method and device, medium and calculating equipment
CN110060530A (en) * 2019-04-23 2019-07-26 南京邮电大学 It is a kind of towards programming topic operation companion mutually comment system and method
CN111507552A (en) * 2019-01-31 2020-08-07 深圳富桂精密工业有限公司 Deep learning method, system, server and readable storage medium
CN111524418A (en) * 2020-03-16 2020-08-11 北京编程猫科技有限公司 Method and device for improving graphical programming level of user

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491915A (en) * 2018-11-09 2019-03-19 网易(杭州)网络有限公司 Data processing method and device, medium and calculating equipment
CN111507552A (en) * 2019-01-31 2020-08-07 深圳富桂精密工业有限公司 Deep learning method, system, server and readable storage medium
CN110060530A (en) * 2019-04-23 2019-07-26 南京邮电大学 It is a kind of towards programming topic operation companion mutually comment system and method
CN111524418A (en) * 2020-03-16 2020-08-11 北京编程猫科技有限公司 Method and device for improving graphical programming level of user

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220286A (en) * 2021-04-27 2021-08-06 浙大城市学院 Evaluation method of graphical programming product
CN113220286B (en) * 2021-04-27 2022-04-19 浙大城市学院 Evaluation method of graphical programming product

Similar Documents

Publication Publication Date Title
CN106991179B (en) Data deleting method and device and mobile terminal
CN109739223B (en) Robot obstacle avoidance control method and device, terminal device and storage medium
CN108038112B (en) File processing method, mobile terminal and computer readable storage medium
CN107193598B (en) Application starting method, mobile terminal and computer readable storage medium
CN112181386B (en) Code construction method, device and terminal based on software continuous integration
CN109359582B (en) Information searching method, information searching device and mobile terminal
US20230035104A1 (en) Verification method, apparatus and device, and storage medium
CN109358927B (en) Application program display method and device and terminal equipment
CN107679222B (en) Picture processing method, mobile terminal and computer readable storage medium
CN114862140A (en) Behavior analysis-based potential evaluation method, device, equipment and storage medium
CN112596725A (en) Grading method and grading device for programming works, terminal equipment and storage medium
CN113032834A (en) Database table processing method, device, equipment and storage medium
CN110287338B (en) Industry hotspot determination method, device, equipment and medium
CN109828902B (en) Interface parameter determining method and device, electronic equipment and storage medium
CN109492249B (en) Rapid generation method and device of design drawing and terminal equipment
CN108521460B (en) Information pushing method and device, mobile terminal and computer readable storage medium
CN115600199A (en) Security assessment method and device, electronic equipment and computer readable storage medium
CN111859985B (en) AI customer service model test method and device, electronic equipment and storage medium
CN107609119B (en) File processing method, mobile terminal and computer readable storage medium
CN113157964A (en) Method and device for searching data set through voice and electronic equipment
CN113922998A (en) Vulnerability risk assessment method and device, electronic equipment and readable storage medium
CN113515701A (en) Information recommendation method and device
CN108021648B (en) Question searching method and device and intelligent terminal
CN112035732A (en) Method, system, equipment and storage medium for expanding search results
CN113038405B (en) Pipe network facility positioning method, pipe network facility positioning device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination