该语句的含义是( A )。
A)根据班级号分组统计各班的学生人数,并按人数降序排列 B)根据班级号分组统计各班的学生人数,并按人数升序排列 C)根据班级号分组统计各班的学生人数,并按班级号降序排列 D)根据班级号分组统计各班的学生人数,并按班级号升序排列
108. 表BJ.DBF有班级号、班级名称等字段,表STU.DBF有班级号、学号、姓名等字段,查询显示班级名称和各班姓\刘\的同学的人数,正确的SQL命令是( C )。
A)select 班级名称,count(*) from bj,stu group by bj.班级号 where 姓名=\刘\B)select 班级名称,count(*) from bj,stu group by bj.班级号 having 姓名=\刘\C)select 班级名称,count(*) from bj,stu where bj.班级号=stu.班级号 and 姓名=\刘\group by bj.班级号
D)select 班级名称,count(*) from bj,stu where bj.班级号=stu.班级号 group by bj.班级号 having 姓名=\刘\
109. 执行下列程序,显示结果是( C )。 b=5 do case
case b%3=1 b=b+1 case b%3=2 b=b+2 otherwise b=b+3 endcase ? b
A)5 B)6 C)7 D)8 110. 执行下列程序,显示结果是( B )。 b=5
do case
case int(sqrt(b))=2 b=b+1
case int(sqrt(b))=3 b=b+2 otherwise b=b+3 endcase ? b
A)5 B)6 C)7 D)8 111. 执行下列程序,显示结果是( D )。 n1='4' n2='5' if n1>=n2 n1=n1-n2 else
n2=n2-n1
11
endif ?n1,n2
A)-1 5 B)45 5 C)4 1 D)4 54 112. 执行下列程序,显示结果是( B )。 n1='4' n2='5' if n1>=n2 n2=n2-n1 else
n1=n1-n2 endif ?n1,n2
A)-1 5 B)45 5 C)4 1 D113. 执行下列程序,显示结果是( D )。 n1=4 n2=5
if mod(n2,n1)=1 n1=n2 else t=n1 n1=n2 n2=t endif ?n1,n2
A)5 4 B)4 5 C)4 4 D114. 以下程序的运行结果为( B )。 x=2.5 do case case x>2 y=2 case x>2.5 y=1 otherwise y=x endcase ? y return
A)1 B)2 C)2.5 D115. 运行下列程序,会出错的语句行是第( C )行 。 dimension a(10) && 第1行 a(1)=1 && 第2行 a(2)=\第3行 if !a(3) && 第4行 a(3)=a(1)+a(2) && 第5行
)4 54 )5 5 )0 12
else && 第6行 a(3)=0 && 第7行 endif && 第8行 ?a(3) && 第9行
A)9 B)7 C)5 D)4
116. 运行下列程序,会出错的语句行是第( B )行。 dimension a(10) && 第1行 a(1)=\第2行 a(2)=\第3行 if a(3)=a(4) && 第4行 a(3)=str(a(1)) && 第5行 else && 第6行 a(3)=val(a(2)) && 第7行 endif && 第8行 ?a(3),a(4) && 第9行
A)4 B)5 C)7 D)9 117. 执行下列程序后,显示结果是( B )。 s=0
for i=5 to 1 step -1 s=s+1 endfor ? s,i
A)5 5 B)5 0 C)6 5 D)6 0 118. 运行下列程序,显示结果是( C )。 s=space(0)
for i=0 to 10 step 2 if i%3=1
s=s+str(i,2) endif endfor ? s
A)5 B)14 C)410 D)12 119. 运行下列程序,语句?\被执行的次数是( A )。 i=0
do while i<10 if i%2=0 ?\ else
?\ endif i=i+1 enddo
A)5 B)6 C)10 D)11 120. 下列程序执行后,显示结果是( C )。
13
x=12 y=8
k=iif(x>y,y,x)
for i=k to 1 step -1 if x%i=0 and y%i=0 exit endif endfor ? i
A)12 B)8 C)4 D)2 121. 下列程序执行后,显示结果是( B )。 x=0
for i=5 to 1 x=x+1 endfor ?i,x
A)0 0 B)5 0 C)1 5 D)0 5 122. 下列程序执行后,显示结果是( A )。 dimension a(3,3) a=0
for i=1 to 3 a(i,i)=I endfor
for i=1 to 3 ?? a(1,i) endfor
A)1 0 0 B)1 .F. .F. C)0 0 0 D123. 以下程序总共执行的循环次数有( B )次。 x=15 y=7
do while y A)2 B)3 C)4 D)5 124. 以下程序的运行结果是( D )。 x=1 y=1 do while x<10 x=x+y y=x+y enddo ? x,y return )1 2 3 14 A)6 6 B)5 8 C)8 13 D)13 21 125. 执行下列程序,显示结果为( D )。 a=[1] b=[3] do proc1 with a,b return procedure proc1 parameters y,x ?x+y endproc A)4 B)13 C)[1][3] D126. 执行下列程序,显示结果为( B )。 dimension a(2) a(2)=0 do p1 with a(1),a(2) return procedure p1 parameter n1,n2 n2=2 ? n1,n2 endproc A)0 2 B).f. 2 C)2 .f. D127. 执行下列程序,显示结果是( A )。 a=3 b=2 do sub with b,a return procedure sub parameters x,y z=substr(\ ?z return A)isu B)sul C)su D128. 执行下列程序,显示结果是( D )。 x=2 y=3 do sub with x,y return procedure sub parameter a,b b=a a=b ?a,b return )31 ).f. 0 )is 15