首页 > 英语四级
题目内容 (请给出正确答案)
[主观题]

程序代码为:Public sub proc(a%( ))Static I%DoA(i)=a(i)+a(I+1)I=I+1Loop while I<2End subPr

程序代码为:Public sub proc(a%())Static I%DoA(i)=a(i)+a(I+1)I=I+1Loop while I<2End subPr

程序代码为:

Public sub proc(a%())

Static I%

Do

A(i)=a(i)+a(I+1)

I=I+1

Loop while I<2

End sub

Private sub command1_click()

Dim m%,I%,x%(10)

For I=0 to 4 : x(i)=I+1 : next I

For I=1 to 2 : call proc(x) : next I

For I=0 to 4 : print x(i); : next I

End sub

程序运行后,单击命令按钮后,在窗体显示的结果是:

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“程序代码为:Public sub proc(a%( ))St…”相关的问题
第1题
Label2的标签,然后编写如下程序代码:Private x As IntegerPrivate Sub Command1_Click()a = 6:
Label2的标签,然后编写如下程序代码:Private x As IntegerPrivate Sub Command1_Click()a = 6:

Label2的标签,然后编写如下程序代码:

Private x As Integer

Private Sub Command1_Click()

a = 6: b = 4

Call sub1(a, b)

Label1.Caption = a

Label2.Caption = b

End Sub

Private Sub sub1(ByVal x As Integer, ByVal y As Integer)

a = x * x

b = y * y

End Sub

程序运行后单击命令按钮,则两个标签中显示的内容分别是_______。

A.36和4

B.6和4

C.36和8

D.6和8

点击查看答案
第2题
将英文26个字母按字母表逆序每隔一个字母打印,即打印出z x v t r p n l j h f d b完善下列程序
。程序代码如下:

Private Sub Command1 _Click()

Dim i As Integer

For i = 0 To 1 2

Print();Space(2)

Next i

End Sub

点击查看答案
第3题
给出下面的程序代码::lass、Test3{、private、float、a;public、static、void、m(){、a=3;如何使成员变量a被方法m(直接访问?()

A.将private、float、a改为protected、float、a

B.将private、float、a改为public、float、a

C.将private、float、a改为static、float、a

D.将private、float、a改为float、a

点击查看答案
第4题
下面程序运行结果是()。Private sub command1_click() Print p1(3,7) End sub Public Functi

A.18

B.7

C.14

D.27

点击查看答案
第5题
设有如下说明:Public Sub Fl(n%),n=3*n+4,End SubPrivate Sub Commandl_Click()Dimn%,m%n=3m=

A.F1 n+m

B.F1 m

C.F1 5

D.F1 m+5

点击查看答案
第6题
A.Most people do not go to public schools.B.There is a lot of controversy over the pro

A.Most people do not go to public schools.

B.There is a lot of controversy over the pronunciation.

C.No two people can be said to pronounce words in exactly the same way.

D.Dialect speakers do not want to change their pronunciation.

点击查看答案
第7题
阅读下列程序并写出程序运行结果。Public Sub change1(ByVal x As Integer, ByVal y As Integer
阅读下列程序并写出程序运行结果。Public Sub change1(ByVal x As Integer, ByVal y As Integer

阅读下列程序并写出程序运行结果。

Public Sub change1(ByVal x As Integer, ByVal y As Integer)

Dim t As Integer

t = x

x = y

y = t

End Sub

Public Sub change2(x As Integer, y As Integer)

Dim t As Integer

t = x

x = y

y = t

End Sub

Private Sub Form_Click()

Dim a As Integer, b As Integer

a = 22: b = 33

change1 a, b

Form1.Print "A1="; a, "B1="; b

a = 22: b = 33

change2 a, b

Form1.Print "A2="; a, "B2="; b

End Sub

写出程序运行时,单击窗体Form1上的输出结果。

点击查看答案
第8题
()是判断一段程序代码是否为计算机病毒的依据。

A.潜伏性

B.可触发性

C.传染性

D.隐蔽性

点击查看答案
第9题
Auctions(拍卖)are public sales of goods,conducted by an officially approved auctioneer.He

Auctions(拍卖)are public sales of goods,conducted by an officially approved auctioneer.He asked the crowd to gather in the auction room to bid for various items on sale.He encourages buyers to bid higher figures and finally names the highest bidder as the buyer of the goods.This is called“knocking down”the goods,for the bidding ends when the auctioneer bangs a small hammer on a raised platform.

The ancient Romans probably invented sales by auction and the English word comes from the Latin“autic”.meaning“increase”.The Romans usually sold in this way the spoils taken in war;these sales were called“sub hasta”,meaning“under the spear”,a spear being stuck in the ground as a signal for a crowd to gather.In England in the eighteenth and nineteenth centuries goods were often sold“by the candle”:a short candle was lit by the auctioneer and bids could be made while it was burning.

Practically all goods can be sold by auction.Among these are coffee,skins,wool,tea,cocoa,furs,fruit,vegetables and wines.Auction sales are also usual for land and property,antique furniture,pictures,rare books,old china and works of art.The auction rooms at Chritie's and Sotheby's in London and New York are world famous.

An auction is usually advertised beforehand with full particulars of the articles to be sold and where and when they can be viewed by the buyers.If the advertisement cannot give full details,catalogues are printed,and each group of goods to be sold together,called a“lot”,is usually given a number.The auctioneer need not begin with lot one and continue the numerical order;he may wait until he notices the fact that certain buyers are in the room and then produce the lots they are likely to be interested in.The auctioneer's services are paid for in the form. of a percentage of the price the goods are sold for.The auctioneer therefore has a direct interest in pushing up the bidding.

Auctioned goods are sold______.

A.for the highest price offered

B.at fixed prices

C.at prices lower than their true value

D.at prices offered by the auctioneer

点击查看答案
第10题
分子工式为C6<£¯sub>H4<£¯sub>(CH3<£¯sub>)2<£¯sub>,是一种无色、透明、极易挥发的液体为()

A.二甲苯

B.苯

C.甲苯

D.乙醇

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改