首页> 外文会议>IEEE Global Engineering Education Conference >Improving the accuracy of the code complexity calculation for automatically generated tasks with programming codes
【24h】

Improving the accuracy of the code complexity calculation for automatically generated tasks with programming codes

机译:使用编程代码提高自动生成任务的代码复杂度计算的准确性

获取原文

摘要

Teaching programming is an activity that becomes more and more popular. Assessment of students that attend introductory courses in programming can partly be done by presenting simple source code fragments. Students should be able to provide answer to the question: "What is the output of the given code?" When preparing the code segments, teachers should be aware of the complexity ('weight') of the code. Especially, when preparing many versions of the same test (to assess a huge number of students), they should try to provide same or similar complexity tasks for all students. A possible solution to this problem is to provide automatic generation of questions containing source code segments. In order to achieve complexity consistency in the process of automatic production of questions for programming courses, there must be a way to automatically measure the complexity of source codes. In our previous work, we have defined a source code metric that considers the source code complexity from a perspective of the student's effort required for manual calculation of the program output, if the input is known. The metric measures the complexity using user-specified weight values assigned to each of the operators and branch statements in the code. In this paper we present a new tool that will help improve the accuracy of the code complexity calculation for automatically generated tasks containing source codes. We also describe our preliminary findings from the research that we have conducted using this tool in order to determine appropriate weight values, and provide remarks for the future experiments on the subject.
机译:教学编程是一项越来越受欢迎的活动。可以通过显示简单的源代码片段来部分评估参加编程入门课程的学生。学生应该能够回答以下问题:“给定代码的输出是什么?”在准备代码段时,教师应注意代码的复杂性(“权重”)。特别是,在准备同一测试的多个版本(以评估大量学生)时,他们应尝试为所有学生提供相同或相似的复杂性任务。该问题的可能解决方案是提供包含源代码段的问题的自动生成。为了在自动生成用于编程课程的问题的过程中实现复杂性一致性,必须有一种自动测量源代码的复杂性的方法。在我们以前的工作中,我们定义了一个源代码度量标准,如果输入是已知的,则从学生手动计算程序输出所需的工作量的角度考虑源代码的复杂性。度量标准使用分配给代码中每个运算符和分支语句的用户指定权重值来衡量复杂性。在本文中,我们提出了一种新工具,该工具将有助于提高自动生成的包含源代码的任务的代码复杂度计算的准确性。我们还描述了我们使用该工具进行的研究得出的初步结果,以确定合适的体重值,并为以后对该主题的实验提供了建议。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号