当前位置: 移动技术网 > IT编程>开发语言>.net > 利用ASP+XML架设在线考试系统

利用ASP+XML架设在线考试系统

2018年10月12日  | 移动技术网IT编程  | 我要评论

bt 天堂,智慧树宝贝2加1,铝锭价格行情

利用asp + xml(标准化越来越近了) 架设在线考试

<-------------此程序非本人原创-------->
  
使用这个在线的考试系统,我们能处理任何类型在线测试。 尽管我们一般是用传统方式实现,读者非常希望将。

如果从总体上考虑。 所有问题都储存在服务器( 它可能在里) 里面的的xml(标准化越来越近了) 文件里。 用户准备花费考试,然后用户测试的通体将通过微软的xml(标准化越来越近了) http 传送到。 使用同一个xml(标准化越来越近了) http 组件,每当用户请求一个问题的时候,那些问题内容被从服务器解释并且显示在页上。 对用户的任何问题,你所选择的答案会被储存在客户端。  



一次考试的持续时间是5 分钟。 没有回答不了,你可以使用next回答下洋问题。 一旦用户启动考试,所有问题目录将来自服务器。 所给问题的id 每请求到服务器以来在内目录在客户拿给并且给服务器派内储存。 服务器将返回问题内容,符合问题id,从xml(标准化越来越近了) 文件。 当用户选择任何一个答案时,体制将在那些应答表里储存和在在客户边里的选择表里。 用户最后已经选择的正确的答案,应答表用来并不地检查。 选择表在那里是以便系统将自动选择用户已经选择了的选择 ( 例如用户点击以前的按钮) 考试将结束或者用户点击终结按钮或者首先来,时间( 例如5 分钟) 结束。 关于终结,系统将计算并不右边答案的并且展示它。 那些以下的文件被在在线的考试系统里使用:

olexam.html

<html>
<script>
  var objxml(标准化越来越近了)http,objxml(标准化越来越近了)dom;
  var aquest; //to store question ids
  var aanswer = new array(); // to track the result
  var aselected = new array(); // to store users response
  var count = 0; //to store the current question no
  var anssel = 0; //to store users selection
  var examduration = 5 * 60 ; // 5 minutes
  var timerid; //to store the setinterval funs id
  var radindex = -1; //to store the selected radios index

  //constructor like function
  //here xml(标准化越来越近了) objects are created and
  //no of questions as well as question ids list
  //are fetched from the server.
  function init(){
    objxml(标准化越来越近了)http = new activexobject("microsoft.xml(标准化越来越近了)http");
    objxml(标准化越来越近了)dom = new activexobject("microsoft.xml(标准化越来越近了)dom");
    objxml(标准化越来越近了)http.open("post","olexam.?action=start",false);
    objxml(标准化越来越近了)http.send("");
    temp =objxml(标准化越来越近了)http.responsetext;
    aquest = temp.split(",");

    //initialize the users answers list
    for(i=0;i<aquest.length; i++){
      aanswer[i] = 0; // 0 for wrong; 1 for right answer
      aselected[i] = -1; // to store the radios index
    }

    if(count < aquest.length) {
      url = "olexam.asp?action=nextq&qno=" + aquest[count];
      objxml(标准化越来越近了)http.open("post", url ,false);
      objxml(标准化越来越近了)http.send("");
      objxml(标准化越来越近了)dom.loadxml(标准化越来越近了)(objxml(标准化越来越近了)http.responsetext);
      
      //parse the response content fetched from the server
      //and display the question

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网