未分类题
窗体上有一个命令桉钮,命令按钮的单击事件过程如下。运行程序后,单击命令按钮,输出结果是( )。
Private Sub Command1_click()
Dim a
a=Array(1,2,3,4,5)
Fork=1 To 4
S=S+a(k)
Next k
Print S
End Sub
D.120
A.10
B.14
C.15
【参考答案】
D
解析:解答本题的关键是读懂程序.程序中首先通过赋值语句定义一个有,个元素的数组(数组的下标从零开始):接下来......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
<上一题
目录
下一题>
热门
试题
未分类题
SECTION 1 Vocabulary SelectionIn the section, there are 20 incomplete sentences. Below each sentence, there are 4 choices respectively marked by letters A,B,C and D.Choose the word or phrase which best completes each sentences. There is only ONE right answer.I know it was a difficult task, but I didn't expect that a confident person like you should have ______ on that.A.mapped outB.set outC.chickened outD.broken out
A.I
B.
A.mapped
C.set
D.chickened
E.broken
点击查看答案
未分类题
SECTION 3 Error CorrectionThis section consists of 15 sentences; in each sentence there is a part given in the brackets that indicates a grammatical error. Below each sentence, there are 4 choices respectively marked by letters A,B,C and D.Choose the word or phrase that can replace the part so that the error is correcteD.There is only ONE right answer.These data will be of considerable use for identifying and analyzing environmental degradation, and than crafting workable solutions.A. B.fromC.withD.to
A.These
B.
A./
B.from
C.with
点击查看答案
相关试题
在窗体上放一个文本框Text1,在文本框中输...
设在工程中定义了下列类型:Type Stutypei...
Read the article below about the i...
It is possible that the weather of...
听力原文:W: What is the assignment...