未知题型
在窗体上画一个命令按钮(其名称为Command1),然后编写如下事件过程:Private Sub Command1_Click() Dim a(5,5)As Integer Dim i As Integer, j As Integer For i= 1 To 3 For j= 1 To 3 a(i,j)=(i-1)*3+j Print a (i,j) Next j Print Next iEnd Sub 程序运行后,单击命令按钮,在窗体上的输出结果是______。
A.1 4 7 2 5 8 3 6 9
B.1 2 3 4 5 6 7 8 9
C.1 2 3 4 5 6 7 8 9
D.没有输出
- A.1
B.1
C.1
【参考答案】
B
解析:程序共有两层循环,每执行完一次内循环,则打印换行,由此判断选项A,B可能正确,当外层循环执行第一次时,......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
相关考题
-
单项选择题
互联网金融是利用互联网技术和移动通信技术等一系列现代信息科学技术实现资金融通的一种新型服务模式。
A.正确
B.错误 -
未知题型
在窗体上画两个标签和一个命令按钮,其名称分别为Label1、Label2和Command1,然后编写如下程序:Private Sub func(L As Label,ByVal a As Integer) L.Caption='1234' a=a*aEnd SubPrivate Sub Form_ Load() Label1.Caption='ABCD' Label2.Caption=10End SubPrivate Sub Command1_Click() a=Val(Label2.Caption) Call func (Label1,a)Label2.Caption=aEnd Sub 程序运行后,单击命令按钮,在两个标签Label1和Label2中显示的内容分别是______。A.ABCD和10B.1234和100C.ABCD和100D.1234和10
A.Caption='1234'
B.Caption='ABCD'
C.Caption=10End
D.Caption)
E.Caption=aEnd
F.ABCD和10
B.1234和100
C.ABCD和100 -
单项选择题
用于创伤面的软膏剂的特殊要求A. 不得加防腐剂、抗氧剂B. 均匀细腻C. 无菌D. 无刺激性