扫码购买正式版题库

  • 海量题库
  • 全真模拟
  • 专项训练
  • 预测试题
  • 押题密卷
  • 错题强化

认真阅读以下关于网页制作和网页编程的内容,回答问题1至问题5,将解答填入答题纸对应的解答栏内。 【说明】   某电子商务公司用ASP 实现了一个用于手机信息查询的程序,主页文件名为"index.asp",网页的效果如图4-1所示。 系统的数据表phoneparam.mdb如表4-1所示。根据题目信息,完成下列问题。 【问题1】(2分)   如果网站的域名为www.phoneinfo.com,网站主目录为"D:\wwwroot\web\" 中,文件夹中index.asp 文件,但是用户输入http://www.phoneinfo.com,看到是本网站另外一个网页的信息,而不是如图4-1所示网页效果,则可能原因是(1)。   (1)备选答案:     A. 网站服务器修改配置之后未重启    B.没有index.asp设置到默认文档列表的最前面    C.DNS服务器没有启动【问题2】(13分) index.asp 文档的内容如下,完成空缺的代码部分 <html>  <body bgcolor="#ffffff" background="phone.gif" text="#000000">  <table border="0" cellpadding="0" cellspacing="0" width="100%">   <left>   <!-以下为实现按关键字搜索-->   <from name="form1" method=post action="main_search.asp">   <div>   <table width="400" border="0">    <tr>    <td width="120"> 请输入关键字:</td>    <td width="40"> <input name="keyword" type="(2)" id="keyword"></td>    <td colspan="2">     <input type=(3) name="Submit" value= (4)> </td>    </tr>   (5)   </div>   </form>   </left>  </table>  <table><CENTER>   <% dim keyword =Request.Form("(6)") ‘按类型搜索SQL="select * from phoneparam order by leixing ASC"   set conn=server.createobject("adodb.connection")   dbpath=server.mappath("phoneparam.mdb")   conn.open "PROVIDER=Microsoft.jet.OLEDB.4.0;data source="&(7)   set rs=server.createobject("adodb.recordset")   (8).open exec,conn,1,3  %>   <div>   <table border="1" width="100%" >    <tr>    <th width="20%"><font color="#6666666" size="2">品牌</font></th>    <th width="20%"><font color="#6666666" size="2">型号</font></th>    <th width="20%"><font color="#6666666" size="2">参考价格</font></th>    <th width="40%"><font color="#6666666" size="2">功能描述</font></th>    </tr>   </table><br>   <% do while(9) rs.EOF and rowcount>0 %>   <div>   <table border="1" width="100%">    <tr>    <td width="20%"><font size="2"><%=rs((10))%></font>    </td>    <td width="20%">     <a herf="<%=rs("leixing")%>.asp"><font size="2"><%=rs("leixing")%></font></a>    </td></td>    <td width="20%><font size="2"><%=rs(jiage)%></font>    </td></td>    <td width="40%"><font size="2"><%=rs(gongneng)%></font>    </td>    </tr>   </table>   <div>   <%rowcount=(11)%>   <%rs.(12) "向下一条%>   <%(13)%>   <br>   <div>   </CENTER>   </td>   </tr>  </table>  </body>  (14) (2)-(13)备选答案A.movenext B. dbpath C. <table> D.notE. 搜索 F.RS G. rowcount-1 H.submit I. pinpaiJ.leixing K. loop L.text M.</html>

问答题
认真阅读以下关于网页制作和网页编程的内容,回答问题1至问题5,将解答填入答题纸对应的解答栏内。

【说明】
  某电子商务公司用ASP 实现了一个用于手机信息查询的程序,主页文件名为"index.asp",网页的效果如图4-1所示。 系统的数据表phoneparam.mdb如表4-1所示。根据题目信息,完成下列问题。


【问题1】(2分)
  如果网站的域名为www.phoneinfo.com,网站主目录为"D:\wwwroot\web\" 中,文件夹中index.asp 文件,但是用户输入http://www.phoneinfo.com,看到是本网站另外一个网页的信息,而不是如图4-1所示网页效果,则可能原因是(1)。
  (1)备选答案:
    A. 网站服务器修改配置之后未重启    B.没有index.asp设置到默认文档列表的最前面    C.DNS服务器没有启动【问题2】(13分)
index.asp 文档的内容如下,完成空缺的代码部分 <html> 
 <body bgcolor="#ffffff" background="phone.gif" text="#000000">
 <table border="0" cellpadding="0" cellspacing="0" width="100%">
  <left>
  <!-以下为实现按关键字搜索-->
  <from name="form1" method=post action="main_search.asp"> 
  <div>
  <table width="400" border="0">
   <tr>
   <td width="120"> 请输入关键字:</td> 
   <td width="40"> <input name="keyword" type="(2)" id="keyword"></td>
   <td colspan="2"> 
    <input type=(3) name="Submit" value= (4)> </td>
   </tr>
  (5)
  </div>
  </form>
  </left>
 </table>
 <table><CENTER>
  <% dim keyword =Request.Form("(6)")  ‘按类型搜索SQL="select * from phoneparam  order by leixing  ASC"
  set conn=server.createobject("adodb.connection")
  dbpath=server.mappath("phoneparam.mdb")
  conn.open "PROVIDER=Microsoft.jet.OLEDB.4.0;data source="&(7)
  set rs=server.createobject("adodb.recordset")
  (8).open exec,conn,1,3  %> 
  <div>
  <table border="1" width="100%" >
   <tr>
   <th width="20%"><font color="#6666666" size="2">品牌</font></th> 
   <th width="20%"><font color="#6666666" size="2">型号</font></th>
   <th width="20%"><font color="#6666666" size="2">参考价格</font></th>
   <th width="40%"><font color="#6666666" size="2">功能描述</font></th>
   </tr> 
  </table><br> 
  <% do while(9) rs.EOF and rowcount>0 %>
  <div>
  <table border="1" width="100%">
   <tr>
   <td width="20%"><font size="2"><%=rs((10))%></font>
   </td>
   <td width="20%">
    <a herf="<%=rs("leixing")%>.asp"><font size="2"><%=rs("leixing")%></font></a> 
   </td></td>
   <td width="20%><font size="2"><%=rs(jiage)%></font>
   </td></td>
   <td width="40%"><font size="2"><%=rs(gongneng)%></font>
   </td>
   </tr>
  </table>
  <div>
  <%rowcount=(11)%>
  <%rs.(12)  "向下一条%>
  <%(13)%>
  <br>
   <div>
  </CENTER>
  </td>
  </tr>
 </table>
 </body>
 (14) (2)-(13)备选答案A.movenext  B. dbpath C. <table>  D.notE. 搜索   F.RS   G. rowcount-1  H.submit  I. pinpaiJ.leixing  K. loop   L.text   M.</html>

最新更新

易过题库在线搜题

热门题库