Reading Behavior and Comprehension of C++ Source Code - A Classroom Study

Reading Behavior and Comprehension of C++ Source Code - A Classroom Study
复制标题

C 源代码的阅读行为和理解 - 课堂研究

DOI:
--
复制
发表时间:
2019
期刊:
Interacción
影响因子:
--
通讯作者:
Bonita Sharif
Bonita Sharif
中科院分区:
--
文献类型:
--
作者:
Jonathan A. Saddler;Cole S. Peterson;Patrick Peachock;Bonita Sharif

文献摘要

被引文献

相似文献

本文介绍了一个眼动跟踪研究进行了课堂环境中的17名学生参加了计算机科学课程。这些学生由12名一年级本科生(新手)和5名硕士生(非新手)组成。学生们被要求在阅读完13个C++程序后回答一个理解问题。每个程序都被分成一系列的块,这些块在逻辑上分解了有意义的部分,眼睛的注视暗示了对程序中有助于解决问题的部分的认知。我们分析了这些模式的故事,他们告诉参与者如何寻找线索,并了解他们的凝视模式是否预测了三种类型的问题的准确答案。结果表明,新手倾向于访问打印输出语句和声明语句的数量与他们在代码中访问其他语句的数量相同,除了控制块头,这两个群体在所有类别中都倾向于关注最多。我们还发现,非新手在过渡到其他块之前,会花更长的时间固定在代码块内部,并且倾向于过渡到比新手更远离其原始位置的块。
This paper presents an eye-tracking study conducted in a classroom setting with seventeen students enrolled in a Computer Science program. The students were a mix of twelve first-year undergraduates (novices) and five masters students (non-novices). Students were asked to answer a comprehension question for each of thirteen C++ programs after reading them. Each program is split into a series of chunks which logically break down meaningful parts where eye gazes hint at cognition about parts of programs useful to solving problems. We analyze these patterns across chunks for the stories they tell about how participants went about searching for cues, and to learn whether their gaze patterns predicted accurate answers to three types of questions The results show that novices tend to visit print output statements and declaration statements the same amount as they do other statements in code with the exception of control block headers, which both groups tend to focus on the most across all categories. We also find that non-novices spend longer fixating inside of chunks of code before transitioning to other chunks, and tend to transition to chunks that are further away from their original position than novices.