Visual Basic程序问题与程序段:a = a + bb = a - ba = a - b功能相同的程序段是A.a = bb = aB.a = a + ba = a - bb = a - bC.t = aa = bb = tD.If a > b Thena = bElseb = aEnd If答案是C,为什么呢?
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/01 07:53:24
Visual Basic程序问题与程序段:a = a + bb = a - ba = a - b功能相同的程序段是A.a = bb = aB.a = a + ba = a - bb = a - bC.t = aa = bb = tD.If a > b Thena = bElseb = aEnd If答案是C,为什么呢?
Visual Basic程序问题
与程序段:
a = a + b
b = a - b
a = a - b
功能相同的程序段是
A.a = b
b = a
B.a = a + b
a = a - b
b = a - b
C.t = a
a = b
b = t
D.If a > b Then
a = b
Else
b = a
End If
答案是C,为什么呢?
Visual Basic程序问题与程序段:a = a + bb = a - ba = a - b功能相同的程序段是A.a = bb = aB.a = a + ba = a - bb = a - bC.t = aa = bb = tD.If a > b Thena = bElseb = aEnd If答案是C,为什么呢?
就是把值换一下.
如
a=10
b=5
a = a + b '10+5=15
b = a - b '15-5=10 b=10
a = a - b '15-10=5 a=5
答案C也是这个效果.
有如下Visual Basic程序段: m = a(1) i = 2 Do While i
Visual Basic程序问题与程序段:a = a + bb = a - ba = a - b功能相同的程序段是A.a = bb = aB.a = a + ba = a - bb = a - bC.t = aa = bb = tD.If a > b Thena = bElseb = aEnd If答案是C,为什么呢?
下列Visual Basic程序段运行后,变量min的结果为():A=10 :b=5 :min=aIf b
下列Visual Basic程序段中,能实现输出变量a、b、c三个数中最大数的是( )
VB习题没看懂~VB习题:执行以下程序段后,c$的值为()a$=Visual basicb$=GoodC$=b$&UCase(Mid$(a$,8,1))&Right$(a$,4)A.Visual BASIC B.Good Basic C.GOOD Basic D.Good BASIC为什么选择B呢?
在Visual Basic中,与程序段:a = a + bb = a - ba = a - b功能相同的程序段是A. a = b b = aB. a = a + b a = a - b b = a - bC.t = aa = bb = tD. If a > b Thena = b Elseb = a End If
有如下Visual Basic程序段:s = 0 For i = 1 To 5 s = s + i Next i 该程序段运行后,i的值为 (A) 1有如下Visual Basic程序段:s = 0For i = 1 To 5s = s + iNext i该程序段运行后,i的值为(A) 1 (B) 5 (C) 6 (D)
请问visual+basic程序运行中的I·是甚么意思?
在Visual Basic中,与程序段:a = a + bb = a - ba = a - b功能相同的程序段是A. a = b b = aB. a = a + b a = a - b b = a - bC. t = a a = b b = tD. IF a > b THEN a = b ELSE b = a END IF麻
高一信息会考题 关于vb在Visual Basic中,与程序段:a = a + bb = a - ba = a - b功能相同的程序段是A. a = b b = aB. a = a + b a = a - b b = a - bC. t = a a = b b = tD. IF a > b THEN a = b E
在Visual Basic中,与程序段:a = a + bb = a - ba = a - b功能相同的程序段是A. a = b b = aB. a = a + b a = a - b b = a - bC.t = aa = bb = tD. If a > b Thena = b Elseb = a End If请问这道题为什么选C啊?
有如下Visual Basic程序段:x=5 y=x*x+1 它的控制结构属于?A、循环结构 B、树型结构 C、顺序结构 D、分支结构
14.有如下的Visual Basic程序段:s = 1 For i = 10 To Step -1 s = s * i * (i14.有如下的Visual Basic程序段:s = 1For i = 10 To Step -1s = s * i * (i - 1)Next i若要使语句s = s * i * (i - 1)执行5次,则循环变量i终值应为(A
有如下Visual Basic程序段:s = 0For i = 1 To 5s = s + iNext i该程序段运行后,i的值为(A) 1 (B) 5 (C) 6 (D) 15请详解
Visual Basic与Basic有什么不同吗?
如何判断一段VB程序段的基本结构?以下是一段Visual Basic程序:b=0For I=1 To 5b=b+1Next I它的基本结构属于( )A.循环结构B.树型结构C.选择结构 D.顺序结构求做类似题的方法...
软件是指用程序设计语言(如PASCAL ,C,VISUAL BASIC 等)编写的程序,软件开发实际上就是编写程序代码这句话对吗?
(1)设有如下的Visual Basic表达式:5 * x^2 - 3 * x - 2 * Sin(a)/3 它相当于代数式【1】 .(2)执行下面的程序段后,s的值为 【2】 .s = 5 For i = 2.6 To 4.9 Step 0.6 s = s+1 Next i (3)在窗体上画一个命令