以下()可以代替history.forward()的功能。
第1题:
函数过程Fun1的功能是:如果参数b为奇数,则返回值为1,否则返回值为0。
Function Fun1(b As Integer)
if ______ Then
Fun1=0
Else
Fun1=1
End If
End Function
使该功能完整,应在空行处填入以下哪条语句
A.b Mod 2<>0
B.b Mod 2=0
C.b/2=1
D.b\2=0
第2题:
函数过程Fun1的功能是:如果参数b为奇数,则返回值为1,否则返回值为0。
Function Fun1(b As Integer)
if _____ Then
Fun1=0
Else
Fun1=1
End If
End Function
使该功能完整,应在空行处填入以下哪条语句
A.b Mod 2<>0
B.b Mod 2=0
C.b / 2=1
D.b
第3题:
A.3
B.4
C.1
D.9
第4题:
以下是该网站进行数据库连接的代码conn.asp,请完成该程序。 <% set conn=server, createobject ("adodb. connection") conn .provider="sqloledb'' provstr="server=(8);database=(9);uid=sa;pwd=9857452" conn. open provstr %> 2.下面是用户登录检查的,部分程序,要求实现对用户提交的用户名和密码进行检验,如果用户名、密码错误,提示错误并返回首页;如果用户名和密码正确,将用户提交的用户名(user)的值赋给session("user"),然后返回首页。请根据题目说明和功能说明在备选项中选择正确的答案填在答题纸上。 <!--include file="conn.asp"--> <% username=request("user") password=request("password") set rs=server.createobject("adodb.recordset") sql="select * from (10) where username='"&username&"'" rs.open sql,conn, 1,1 if (11) then response.write"<script. language=Javascript>alert('此用户名尚未注册'); this.location.href='index.asp';</script>" response.end else pass=rs("password") if(12)then response.write"<script language=javascript>alert('密码错误' ; this. location.href='javascript.:history.go(-1)';</script>" response.end end if (13)(14).redirect"index.asp" end if rs.close set rs=(15)%>
备选答案
A. user
B. pass <>password
C. nosing
D. session("user")=username
E. response
F. pass=password
G. rs.eof
H. request
I. null
J. shangwu
K. rs.end
第5题:
以下程序的输出结果是( )。 #include<stdio.h> main() {int a[3][3]={0,1,2,0,1,2,0,1,2},i,j,s=1; for(i=0;i<3;i++) for(j=i;j<=i;j++) s+=a[i][a[j][j]]; printf("%d\n",s); }
A.3
B.4
C.1
D.9
第6题:
函数过程F1的功能是:如果参数b为奇数,则返回值为1,否则返回值为0。以下能正确实现上述功能的代码的是______。
A. Function Fl(b As Integer) If b Mod 2=0 Then Return 0 Else Return 1 End If End Function
B.Function Fl(b As Integer) If b Mod 2=0 Then F1=0 Else F1=1 End If End Function
C.Function F1(b As Integer) If b Mod 2=0 Then F1=1 Else F1=0 End If End Function
D.Function Fl(b As Integer) If b Mod 2<>Then Return 0 Else Return 1 End If End Function
第7题:
1 1 .容量为l G 的硬盘,最多可以储存的信息量是( ) 。
A .1 0 2 4 M 字节
B .1 0 2 4 K 字节
C .1 0 0 0 K 字节
D .1 0 0 0 M 字节
第8题:
请阅读以下程序: #include<stdio.h> main() { int x=1,y=0,a=0,b=0; switch(x) { case 1: switch(y) { case 0:a++;break; case 2: a++,b++;break;} printf("a=%d,b=%d\n" ,a,b); 上面程序的输出结果是( )。
A.a=2,b=1
B.a=1,b=1
C.a=1,b=0
D.a=2,b=2
第9题:
对以下set集合进行操作"Set(2,0,1)+1+1-1"之后,最终的结果是()
第10题:
以下哪些端口可以设置成聚合端口?()
第11题:
在HTML中,点击图片”previous.gif”上的超级链接后页面将加载历史列表中的上一个URL页面。代码如下所示,应在下划线处填入() < img src=”previous.gif” width=”67” height=”21”>
第12题:
VLAN 1的FastEthernet 0/1
VLAN 2的FastEthernet 0/5
VLAN 2的FastEthernet 0/6
VLAN 1的GigabieEthernet 1/10
VLAN 1的SVI
第13题:
函数过程F1的功能是:如果参数b为奇数,则返回值为1,否则返回值为0。以下能正确实现上述功能的代码是( )。
A.Function F1(b As Integer)
If b Mod 2 = 0 Then
Return 0
Else
Return 1
End If
End Function
B.Function F1(b As Integer)
If b Mod 2 = 0 Then
F1 = 0
Else
F1 = 1
End If
End Function
C.Function F1(b As Integer)
If b Mod 2 = 0 Then
F1 = 1
Else
F1 = 0
End If
End Function
D.Function F1(b As Integer)
If b Mod 2 <> 0 Then
Return 0
Else
Return 1
End If
End Function
第14题:
A、Y1-Y0
B、Y2-Y1
C、Y3-Y2
D、Y3-Y1
第15题:
A.(2,3,0),(1,0,3),(0,1,1)
B.(1,0,0),(0,1,0),(0,0,1)
C.(4,2,3),(2,2,3),(4,4,0)
D.(3,2,0)(1,2,0),(0,1,0)
第16题:
有以下程序:#include <stdio.h>main( ) { int a =0,b =0,c =0,d =0; if(a = 1) b=1;c=2; else d=3; pfintf( "%d,%d,%d ,%d \n" ,a,b,c,d);}
A.0,1,2,0
B.0,0,0,3
C.1,1,2,0
D.编译有错
第17题:
以下程序的输出结果是( )。 #include<iostream.h> main() { int b[3][3]={0,1,2,0,1,2,0,1,2},ij,t=1; for(i=0;i<3;i++) for(j=i;j<=i;j++) t=t+b[i][b[j][j]; cout<<t; }
A.3
B.4
C.1
D.9
第18题:
有以下程序:
若运行时输入:1 2 3<回车>,则输出结果是( )。
A.编译错误 2 0 0 0
B.1 0 2 0 0 0
C.1 2 2 0 3 0
D.1 0
第19题:
函数过程n的功能是:如果参数b为奇数,则返回值为1,否则返回值为0。以下能正确实现上述功能的代码的是______。
A.Function F1(b As Integer) If b Mod 2=0 Then Return 0 Else Return 1 End If End Function
B.Function F1(b As Integer) If b Mod 2=0 Then F1=0 Else F1=1 End If End Function
C.Function F1(b As Integer) If b Mod 2=0 Then F1=1 Else F1=0 End If End Function
D.Functionn(b As Integer) If b Mod 2 <>0Then Return 0 Else Return 1 End If End Function
第20题:
使浏览器后退到前一个网址,以下方法错误的是?()
第21题:
下列选项中,()段HTML代码所表示的“返回”链接能够正确实现IE工具栏中“后退”按钮的功能。
第22题:
按照布鲁氏菌病稳定控制标准,要求连续3年试管凝集试验的血清阳性率达到:()
第23题:
history.go(0)
history.go(-1)
history.go(1)
history.go(2)