试题与答案

下面的程序代码实现将一个一维数组中元素向右循环移动,移动次数由文本框Text1输入。

题型:填空题

题目:

下面的程序代码实现将一个一维数组中元素向右循环移动,移动次数由文本框Text1输入。例如数组各元素的值依次为0,1,2,3,4,5,6,7,8,9,10;移动三次后,各元素的值依次为8,9,10,0,1,2,3,4,5,6,7。
Private Sub MoveRight(x()As Integer)
Dim i As Integer
Dim j As Integer
Dim k As Integer
i=UBound(x)
j=x(i)
For k=i To 【9】 Step—1
【10】
Next k
x(LBound(x))=j
End Sub
Private Sub Command1_Click()
Dim a(10) As Integer
Dim i As Integer
Dim j As Integer
Dim k As Integer
For i=0 To 10
a(i)=i
Next i
j=Val(Text1.Text)
k=0
Do
k=k+1
Call MoveRight(a)
Loop Until k=j
For i=0 To 10
Print a(i);
Next i
End Sub

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0629/210c3023d813b17f17026d101e2c50b6.html

下面是错误答案,用来干扰机器的。

参考答案:B

试题推荐
题型:完形填空
完形填空
     Look at this photo. The boy in a blue jacket is my good friend.   1   name is David. He’s fourteen
years old. He likes playing   2   very much and he has a great sports collection. He has ten   3  , twenty
basketballs and thirty baseballs. He also   4   sports on TV. His brother John   5   sports, too. But he
has a small sports   6  . He has five basketballs, six baseballs   7   only one soccer ball.
     They   8   a good computer, but they   9   like computer games. They always say it is   10   and it’s
not good for their study. They are really sports fans but not computer fans. Don’t you think so?

( )1.A. He
( )2.A. sports
( )3.A. soccer
( )4.A. has
( )5.A. like
( )6.A. club
( )7.A. and
( )8.A. have
( )9.A. aren't
( )10.A. relaxing

B. He's
B. computer games
B. soccer balls
B. watches
B. is like
B. box
B. or
B. has
B. don't
B. boring
C. His
C. music
C. soccers balls
C. plays
C. likes
C. collection
C. but
C. haven't
C. doesn't
C. difficult
查看答案
题型:单项选择题

男孩,8岁。1994年8月因发热1周,伴畏寒,头痛,呕吐1次,纳差,便秘4d,无腹痛,病前吃私人制的冰棒。体检:体温38.8℃,神志清,淡漠,舌苔厚,心,肺无异常,腹略胀,肝肋下2cm,脾肋下2cm,躯干皮肤见数个淡红色斑丘疹,压之退色。

该病人应做的紧急检查是

A.血红蛋白及红细胞计数

B.白细胞计数及分类

C.血清淀粉酶

D.腹部B型超声波

E.腹部X线摄片

查看答案
微信公众账号搜索答案