City University of Hong Kong
DSpace
 

CityU Institutional Repository >
3_CityU Electronic Theses and Dissertations >
ETD - Dept. of Computer Science  >
CS - Master of Philosophy  >

Please use this identifier to cite or link to this item: http://hdl.handle.net/2031/6595

Title: Automatic testing of student programs using token patterns
Other Titles: Yun yong dan ci yang shi yi zi dong ce shi xue sheng de dian nao cheng xu xi zuo
運用單詞樣式以自動測試學生的電腦程序習作
Authors: Tang, Chung Man ( 鄧頌民)
Department: Department of Computer Science
Degree: Master of Philosophy
Issue Date: 2011
Publisher: City University of Hong Kong
Subjects: Computer programming -- Study and teaching.
Notes: CityU Call Number: QA76.6 .T36 2011
xii, 187 leaves : ill. (some col.) 30 cm.
Thesis (M.Phil.)--City University of Hong Kong, 2011.
Includes bibliographical references (leaves 140-143)
Type: thesis
Abstract: Assessing students' programming exercises manually can be tedious and error-prone. To relieve these problems, many universities have developed software systems to automatically assess students' programs, usually by executing them to test their functional correctness, typically through simple matching of the program output with expected output. This approach requires that the precise and detailed form of the output be given in the specification of the exercise, because even a small and insignificant deviation (such as an extra whitespace) from the expected output will cause the matching to fail. An undesirable pedagogical consequence of this technical limitation is that it may unnecessarily confine the way of implementation, perhaps inhibit creativity, and distract students from the essentials of the exercise. To handle slightly deviated but acceptable program outputs, some automated systems employ tailored output comparison techniques that match certain kinds of output variants. However, existing techniques are mostly ad hoc and limited in capabilities. There is a need for more sophisticated techniques that can tolerate reasonably acceptable output variants. Towards this goal, we propose a novel approach, based on token patterns, that splits the output texts into smaller units for more fine-grained output comparison. As a result, the program output comparison can be more flexible and the accompanying undesirable side effects on teaching and learning can be reduced. An experimental prototype was initially built to evaluate our proposed approach. The prototype was then further integrated into a production system used in a programming course for empirical evaluation. The evaluation results are encouraging, showing that our proposed new approach is feasible and promising in improving student satisfaction in the use of the automated system, as well as producing better outcomes in terms of teaching and learning.
Online Catalog Link: http://lib.cityu.edu.hk/record=b4086668
Appears in Collections:CS - Master of Philosophy

Files in This Item:

File Description SizeFormat
abstract.html134 BHTMLView/Open
fulltext.html134 BHTMLView/Open

Items in CityU IR are protected by copyright, with all rights reserved, unless otherwise indicated.

 

Valid XHTML 1.0!
DSpace Software © 2013 CityU Library - Send feedback to Library Systems
Privacy Policy · Copyright · Disclaimer