摘 要:為了使學(xué)生適應(yīng)計(jì)算機(jī)語(yǔ)言考試,考核學(xué)生應(yīng)用C/C++編寫程序的能力,實(shí)現(xiàn)C++語(yǔ)言考試的計(jì)算機(jī)閱卷,提出了針對(duì)C++程序上機(jī)考試的自動(dòng)評(píng)分系統(tǒng)的構(gòu)建方式與算法研究。用Windows API函數(shù)做了深入的研究與分析,對(duì)如何匹配、查找程序的關(guān)鍵語(yǔ)句進(jìn)行了分析和研究。該系統(tǒng)對(duì)C++程序上機(jī)考試的客觀題和主觀題的計(jì)算機(jī)自動(dòng)評(píng)分采用多種的方法,完成了對(duì)C++語(yǔ)言考試的自動(dòng)評(píng)分。關(guān)鍵詞:自動(dòng)評(píng)分;主觀題; 正則表達(dá)式; 可擴(kuò)展標(biāo)記語(yǔ)言
中圖分類號(hào):TN911-331; G420 文獻(xiàn)標(biāo)識(shí)碼:A
文章編號(hào):1004-373X(2010)18-0051-02
Study on Automatic Scoring System for Programming Exams of C++ Language
ZHANG Xiao-guang, ZHANG Zhen, NIU Yong-jie
(Computing Center, Yan’an University, Yan’an 716000, China)
Abstract: The building-up mode and algorithm for the automatic scoring system dealing with the exams on computer for C++ program are proposed to make the students to accommodate the computer language exams, improve the ability of the students for writing programs with C++and realize the computer scoring for C++ language examination. The Windows API function and the method to look for keywords of a program are analyzed. The automatic scoring for C++ language exams was implemented with several methods.Keywords: automatic scoring system; subjective question; regular expression; extensible markup language
0 引 言
在當(dāng)今社會(huì)計(jì)算機(jī)已經(jīng)成為人們必須掌握的一項(xiàng)基本技能,在大學(xué)之中計(jì)算機(jī)課程也已經(jīng)是每個(gè)大學(xué)生必修的課程。隨之而來(lái)的便是計(jì)算機(jī)教師的閱卷工作量不斷增長(zhǎng),使用計(jì)算機(jī)自動(dòng)批改試卷越來(lái)越成為教師們的愿望,同時(shí)提高對(duì)學(xué)生試卷的評(píng)定精度與速度勢(shì)在必行。計(jì)算機(jī)自動(dòng)評(píng)分避免了以往人工批改試卷的種種問(wèn)題,保證了對(duì)試卷評(píng)定的公正與客觀。當(dāng)前,對(duì)于計(jì)算機(jī)考試中自動(dòng)評(píng)分技術(shù)的研究已經(jīng)有了很大的進(jìn)展,但是對(duì)于計(jì)算機(jī)考試完全實(shí)現(xiàn)自動(dòng)評(píng)分卻一直未能解決。造成這一問(wèn)題的重要原因是自動(dòng)評(píng)分中一些關(guān)鍵技術(shù)尚不成熟,所以完全解決計(jì)算機(jī)考試自動(dòng)評(píng)分問(wèn)題在當(dāng)前的技術(shù)條件下尚不可能。但是,對(duì)于計(jì)算機(jī)程序語(yǔ)言來(lái)說(shuō),因?yàn)橄鄬?duì)自然語(yǔ)言,其所受到的約束和限制相當(dāng)嚴(yán)格,所以實(shí)現(xiàn)對(duì)計(jì)算機(jī)考試中計(jì)算機(jī)程序語(yǔ)言考試的自動(dòng)評(píng)分在技術(shù)上是可以實(shí)現(xiàn)的?!?br>