二级二级VB2014年全国计算机等级《二级VB》考前押密试题(5)
题目内容

单击命令按钮时,下列程序段的执行结果是(  )。Private Sub Commandl Click()Di ma As Integer ,b As Integer ,c As Integera=2:b =4:c =6Call Sl(a,b)Print "a=";a;"b =";b ;"c =";cCall S2(a,b)Print "a=";a;"b =";b ;"c =";c ;End SubPrivate Sub S1(x As Integer ,Y As Integer)Di mc As Integerx=2*x:y =y +2:c =x+yEnd SubSub S2(x As Integer ,ByVal Y As Integer)Di me As Integer x=2*x:Y =Y +2:e =x+yEnd Sub

2024-07-09

A.a=4 b =6 c =6a=4 b =6 c =6

B.a=8 b =6 c =6a=8 b =6 c =6

C.a=4 b =6 c =6a=8 b =6 c =6

D.a=8 b =6 c =6a=4 b =6 c =6

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端