【正文】
整張試卷的區(qū)分度 function quickSort($left,$right,amp。 if ($right $l) quickSort($l,$right,$array)。 echo 注:試卷效度分布在 ~ 之間時,效度較好; . /br。 if ($array[$r] == $pivot) ++$l。 //echo /br。 $resMax = MySQLi_query($conn, $sqlMax)。//求出總分一字段的方差 $totalDeg = (9*(1$SSum/$SZong))/8。//echo $avgRow[0]。 $sqlZAvg = select avg(Zongfen) from kemu20xx12314745。. $totalDeg ./br。 $pivot = $array[($left+$right)/2]。 } quickSort(0,$k,$array)。 echo 注:試卷難度合理分布應(yīng)在在 ~ 之間. 。amp。 //由于測試開發(fā)在同一臺主機(jī)進(jìn)行,所以 $dbhost 為數(shù)據(jù)庫所在服務(wù)器的地址為 ; //登陸數(shù)據(jù)庫的用戶為 root,密碼為 root,即 $username=root, $userpass=root; //$dbdatabase=shijuandata; 第四節(jié) 服務(wù)器端處理數(shù)據(jù)功能實現(xiàn) 一、 服務(wù)器端運行環(huán)境: 操作系統(tǒng): Windows 7 操作系統(tǒng) 數(shù)據(jù)庫: MySQL 數(shù)據(jù)庫工具: PHPMyAdmin 編程語言: PHP 開發(fā)工具: Sublime Text、 Xampp、 FireFox 瀏覽器、 MySQL 控制臺 二、 代碼的實現(xiàn) (一 ) 難度 : 首先,為了計算出每個小題的難度,必須先查出該卷的題目數(shù)量,這一功能通過在 kemu 表中 select xiaotishuliang 來實現(xiàn),然后通過 mysqli_query()和mysqli_fetch_row()兩個函數(shù)在 .php 文件中來完成數(shù)據(jù)庫操作,最終得出并輸出天津科技大學(xué) 20xx 屆本科生畢業(yè) 設(shè)計 18 小題數(shù)量 $QuesNum[0]; 其次,在得知小題數(shù)量 $QuesNum[0]后,便可通過 for 循環(huán),求出每個小題的難度,在求單個題的難度過程中,根據(jù)難度公式,可以先利用 select avg()函數(shù)求出每個題的平均值 $avgRow,通過 select max()求出每道題的滿分$maxRow,將該題的平均值 $avgRow 除以該題的最大值 $maxRow,即可求出每道題的難度 $QuesDeg[$i];再將每道題的平均分進(jìn)行相加求和得 $sumAvg,除以整張試卷的滿分 FullMark,則可以求出整張試卷的難度系數(shù) $totalDeg。 if (empty($conn)) { die(The database connection failed.mysql_error())。 UNIQUE xiaotishu int( 5) 某學(xué)科試卷的題數(shù) NOT NULL tablename varchar(10) 所有學(xué)生某學(xué)科的得分?jǐn)?shù)據(jù)表名 NOT NULLamp。dbname=39。 定義總分 for ($i=1。 $totalDeg = $sumAvg / FullMark。 $maxRow = MySQLi_fetch_row($resMax)。 echo 第 .$i.題的區(qū)分度為: .$QuesDeg[$i] 。 if ($array[$r] == $pivot) ++$l。 ?PHP for ($i =1。求 N } if ($resAvg) { $avgRow = MySQLi_fetch_row($resAvg)。 求 Zongfen 字段的平均值 天津科技大學(xué) 20xx 屆本科生畢業(yè) 設(shè)計 24 } $k = 0 。 echo 試卷信度系數(shù) 時,信度為差; . /br。 $ind = $k/2。 while ($l $r) { while ($array[$l] $pivot) $l++。amp。該卷的效度為:好; 39。 if ($l = $r) break。 $highSum+=$array[$ind+$k/2]。 ?PHP $totalDeg = 0。 if ($resZAvg) { $avgZRow = MySQLi_fetch_row($resZAvg)。 echo /br。 $i++) { $sqlN = select count(T$i) from kemu20xx12314745 。 $r。 $totalDeg += ($QuesDeg[$i]*$maxRow[0])。 $k = 0。 if($totalDegamp。 $i++) { $sqlAvg = select avg(T$i) from kemu20xx12314745。39。前端的樣式,利用了 Div+Css, Div 的樣式通過類選擇器來實現(xiàn), ul 的樣式通過 id 選擇器來實現(xiàn),兩種選擇器的代碼文件附在與論文同級文件夾下 . body div class=container h1試卷質(zhì)量評估 /h1 ul id=topnav li a href=Degree of 難度 。/a /li li a href=Degree of 效度 。 if (empty($conn)) { die(The database connection failed.mysql_error())。 $resMax = MySQLi_query($conn, $sqlMax)。 if($totalDeg) echo 該卷的難度系數(shù)為:較難; /br。 $totalDeg = 0。$array)快速排序的函數(shù) { $l = $left。 } echo 39。 $sqlZAvg = select avg(Zongfen) from kemu20xx12314745。 $SSum = 0。 求某字段的平均值 } //方便遍歷 Zongfen 字段的所有數(shù)據(jù) while ($row = MySQLi_fetch_row($resZong)) { $SZong += ($row[0]$avgZRow[0]) *($row[0]$avgZRow[0])。 $i++) { $sql = select T$i from kemu20xx12314745。 $QuesDeg[$i] = ($avgHigh$avgLow)/$maxRow[0]。$array[$r] = $temp。該卷的效度為:差; 39。該卷的效度系數(shù)為: 39。 $r = $right。 while ($row = MySQLi_fetch_row($res)) { $array[$k++] = $row[0]。 if($totalDeg) echo 該卷的信度為:差; /br。 } if ($resZAvg) { $avgZRow = MySQLi_fetch_row($resZAvg)。 $resAvg = MySQLi_query($conn, $sqlAvg)。./br。 $array[$l] = $array[$r]。 $avgHigh = $highSum/($k/2)。 $i++) { $sql = select T$i from kemu20xx12314745。 echo T{$i}的難度為: $QuesDeg[$i] /br。 } echo /br。 } 方法三: PDO 方法, PDO 方法即為 PHP 數(shù)據(jù)庫對象方法.它提供了一種統(tǒng)一的PHP 與數(shù)據(jù)庫交互的方法.這也是目前比較流行的一種連接數(shù)據(jù)庫的方法.它的優(yōu)勢在于:只要正確提供數(shù)據(jù)源,余下對于數(shù)據(jù)庫的 基本操作都是一樣的.也就是說,同一段代碼既可以同 MySQL 交互,也可以和 SQLite3 交互,當(dāng)然也可以和 PostgreSQL 進(jìn)行交互,前提編程人員提供了正確的數(shù)據(jù)源.下面看一下連接MySQL 的代碼: $dsn=39。 mastery of knowledge and skills. Besides, the quantitative analysis of test scores is the most effective ways to evaluate the quality of the examination of during teaching process which can not be ignored. So, the examination papers must be designed with science and can be through during the testing and analysis in the degree of validity, difficulty, reliability and discrimination. The paper have the appropriate function only when meet the certain criteria after testing and analysis. This artical studies the mon analytical methods. As an integrated development environment, Sublime Text is an effective develop tool for PHP. For the database, I introduce the MySQL cause its ability to score and statistical calculations for each question or different , people can use Xampp as a client operation to manipulate the database specifically, then create Web resources,such as . PHP and. HTML and others. For the theories ,I bine with the probability theory and mathematical statistics knowledge, so I can plete the analysis of student achievement, and then calculate the four indicators of validity, difficulty, reliability, discrimination. According to the corresponding provisions of the specific theory,I can determine the degree of pliance of the four indicators, which assess the quality of the papers, which means people can assess the quality of the papers portrayed and described the effect of teaching and ability to achieve the educational administration management. Key words: Grade distribution; mathematical statistics; PHP; MySQL; paper quality III 目 錄 第一章 開發(fā)技術(shù)和開發(fā)工具 ............................. 1 第一節(jié) PHP 腳本語言 .................................... 1 第二節(jié) MYSQL 數(shù)據(jù)庫 .................................... 2 第三節(jié) SUBLIME TEXT 編輯器 ............................... 3 第四節(jié) XAMPP 集成包 ..................................... 4 第二 章 數(shù)據(jù)庫結(jié)構(gòu)設(shè)計 ................................. 5 第一節(jié) 數(shù)據(jù)庫功能分析 ................................. 5 第二節(jié) 數(shù)據(jù)需求分析 ................................... 7 第三節(jié) 數(shù)據(jù)表及表結(jié)構(gòu)的設(shè)計 ........................... 10 第三章 模塊設(shè)計與實現(xiàn) ................................ 12 第一節(jié) 設(shè)計原則及流