Two-Dimensional Parson's Puzzles: The Concept, Tools, and First Observations

Two-Dimensional Parson's Puzzles: The Concept, Tools, and First Observations
复制标题

二维帕森谜题:概念、工具和初步观察

DOI:
10.28945/1394
复制
发表时间:
2011
期刊:
J. Inf. Technol. Educ. Innov. Pract.
影响因子:
--
通讯作者:
V. Karavirta
V. Karavirta
中科院分区:
--
文献类型:
--
作者:
Petri Ihantola;V. Karavirta

文献摘要

被引文献

相似文献

Parson的编程难题是给出代码行的代码构造分配的家族,其任务是通过排序和选择正确的代码线来形成解决方案。在两个维度上进行排序。 python块没有明确的开始/结束语句,或者卷曲括号标记块开始或停止的位置。
Parson’s programming puzzles are a family of code construction assignments where lines of code are given, and the task is to form the solution by sorting and possibly selecting the correct code lines. We introduce a novel family of Parson’s puzzles where the lines of code need to be sorted in two dimensions. The vertical dimension is used to order the lines, whereas the horizontal dimension is used to change control flow and code blocks based on indentation as in Python. Python blocks have no explicit begin/end statements or curly braces to mark where the block starts or stops. Instead, indentation is used to define starts and stops of blocks and functions.