题目内容

(4)数据库系统的核心是 【4】

查看答案
更多问题

【问题 3】(6 分)
用户登录部分功能调用由位于发布目录 c:\website 下的login.asp 文件实现,数据库连接由 conn.asp 文件实现。其中,数据库文件名为 account.mdb,用户表为 actuser,用户名字段和用户密码字段分别为 act_username 和 act_password。 login.asp 代码如下所示,请将空缺的部分补充完整,并填写在答题纸的相应位置。
<!--#include file="conn.asp"-->
<%
sql="select * from actuser where act_username='"&username&"'"
rs.open sql,conn,1,1
if (11) then
response.write "<script>alert('登录失败');history.back();</script>"
response.end
else
if rs("act_password")<>password then
response.write "<script>alert('登录失败');history.back();</script>"
(12)
end if
session("admin")=username
response.write"<script>alert('登录成功');location.href='index.asp'</script>"
(13)
%>

有以下程序,程序执行后,输出结果是【11】
#include <stdio.h>
void fun (int *a)
{a[0=a[1];]}
main()
{int a[10]={10,9,8,7,6,5,4,3,2,1},i;
for(i=2;i>=0;i--) fun{&a};
for(i=0;i<10;i++) printf(“&d”,a);
printf(“\n”);
}

【问题 3】(5 分)
图1-2 中有两条数据流是错误的,请指出这两条数据流的名称,并改正。(注:数据流
的起点和终点均采用图中的符号和描述)

【问题5】(3分)
依据图 2-2的配置,该FTP服务器配置完成后,用户可以上传文件吗?为什么?

答案查题题库