刷题刷出新高度,偷偷领先!偷偷领先!偷偷领先! 关注我们,悄悄成为最优秀的自己!

简答题

阅读以下说明,回答问题1和问题2,将解答填入答题纸对应的解答栏内。

【说明】某信息系统需要在登录页面输入用户名和密码,通过登录信息验证后,跳转至主页面,显示该用户的姓名等个人信息。文件描述如表4-1所示,登录信息和个人信息均存储在Access数据库中,如表4-2、4-3所示。

问题内容:【问题1】(每空1分,共8分)图4-1为登录页面截图。

以下所示页面为用户登录的部分代码片段。请仔细阅读该段代码,将(1)~(8)的空缺代码补齐。

login.asp页面代码片段

......

<body>

<(1)name=”form”method="post” action=”(2)”>

<div class=“title_top”>

<div class=“top_cont”>

<imgsrc=“images-login/pic_2.png”/>

<(3)>

</div>

<divclass=“cont_title”>

<p>信息管理平台</p>

</div>

<div class=“box”>

<divclass="text">

<divclass="a">

<span>用户名</span>

<input type=”(4)” name=“(5)”/>

</div>

<div class=”b”>

<span>密码</span>

<input type=”password ”name=”(6)”/>

</div>

<div class=”c”>

<input type=‘’submit" id=’’buttonn” name=“button” vlaue=”登录”/>

</div>

</div>

</div>

<divclass=”lg_nav”>

</div>

</form>

<(7)>.

.....loginCheck.asp页面代码片段

login_Name=request.form(“login_Name”)

passwd=request.form(“passwd”).

.....略去关键字符过滤代码

sql=”selectid_Login,passwdfromuserLoginwherelogin_Name=‘"(8)login_Name&”‘“session(“id_Login")=id_Login

......

(1)~(8)的备选答案:

A.passwd

B.text

C./body

D.form

E./div

F.loginCheck.asp

G.login_Name

H.&

【问题2】(每空1分,共7分)图4-2为用户登录后的页面截图。

以下所示页面为用户登录后显示用户信息的部分代码片段。请仔细阅读该段代码,将(9)~(10)的空缺代码补齐。

default.asp页面代码片段

说明:conn为Connect对象,rs为RecordSet对象

<%

......

id_Login=session(“id_Login”)(9)注释:从session中获取该用户的登录ID

sql=“select (10),gender,telephone,address from userinfo where (11)=’”&id_Login&”‘“

rs.open(12),conn

user_Name="”

gender=“”

telephone=“”

address=“”

if not(13)Then

user_Name=rs(“user_Name”)

gender=rs('’gender”)

telephone=rs(“telephone”)

address=rs(“address”)

EndIf

......

%>

......

<table width="400"border="1”align=”center”cellpadding=”0”cellspacing=”0”>

<tr>

<td(14)height=”30”align=”center”>用户信息</td>

</tr>

<tr>

<td width=“50%”height=”30”align=”center”>姓名</td〉

<tdalign=”center”<%=user_Name%></td>

</tr>

<tr>

<tdheight=”30”align=”center”〉性别</td>

<tdalign=”center”><%=gender%>

</td>

</tr>

<tr>

<tdheight=”30”align=”center”>电话</td>

<tdalign=”center”><%=telephone%></td>

</tr>

<tr>

<td height=”30”align=”center”>联系地址</td><td align=”(15)”><%=address%></td>

</tr>

</table>

......

(9)~(15)的备选答案:

A.’

B.left

C.rs.eof()

D.sql

E.user_Name

F.id_Login

G.colspan="2"

使用微信搜索喵呜刷题,轻松应对考试!

答案:

【问题1】答案:(1) D (2)F (3)E (4)B (5)G (6)A (7)C  (8)H

【问题2】答案:(9)A (10) E (11)F(12)D (13)C (14)G

(15)B

解析:

对于问题1:

  • (1)是表单的开始标签,所以选D(form)。
  • (2)是表单提交的动作,提交到loginCheck.asp页面进行处理,所以选F。
  • (3)根据上下文逻辑,此处应该是一个结束标签,因此选E(/div)。
  • (4)、(5)、(6)是输入框的类型和名称,根据题目描述和用户登录的常见设计,用户名输入框的类型是文本(text),名称是login_Name;密码输入框的类型是密码(password),名称是passwd。因此,(4)选B,(5)选G,(6)选A。
  • (7)此处需要一个表单的结束标签,所以选C(/form)。
  • (8)此处是进行SQL查询时拼接字符串,使用“&”连接字符串,所以选H。
创作类型:
原创

本文链接:阅读以下说明,回答问题1和问题2,将解答填入答题纸对应的解答栏内。 【说明】某信息系统需要在登录页面

版权声明:本站点所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明文章出处。

让学习像火箭一样快速,微信扫码,获取考试解析、体验刷题服务,开启你的学习加速器!

分享考题
share