网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

执行下列程序,输入数字3,则输出结果为______。

Private Sub Command1_Click()

a=inputBox("Input a Number")

If a>5 Then

GoTo L5

Else If a>2 Then

GoTo L2

Else

GoTo L3

End If

Exit Sub

L5:

Print a Mod 5

Exit Sub

L3:

Print a Mod 3

Exit Sub

L2:

Print a Mod 2

End Sub


参考答案

更多 “ 执行下列程序,输入数字3,则输出结果为______。Private Sub Command1_Click()a=inputBox("Input a Number")If a>5 ThenGoTo L5Else If a>2 ThenGoTo L2ElseGoTo L3End IfExit SubL5:Print a Mod 5Exit SubL3:Print a Mod 3Exit SubL2:Print a Mod 2End Sub ” 相关考题
考题 下列程序执行时,从键盘上依次输入123和234,则程序的输出结果是【 】。Dim a,b As Integera=InputBox("请输入第一个整数")b=InputBox("请输入第二整数")Print a+b

考题 下列程序执行时,从键盘上依次输入123和234,则程序的输出结果是【 】。a=InputBox("请输入第一个整数")b=InputBox("请输入第二整数")Print a+b

考题 运行下面的程序,单击命令按钮后,当输入分别为123和456时,输出结果为 ______。 Private Sub Command1_Click() a=InputBox("请输入一个数字:") b=Val(InputBox("请再输入一个数字:")) PrInt a+b End SubA.123B.456C.123123D.579

考题 执行以下程序段,并输入1.23,则程序的输出结果应是【 】。N=Str(InputBox(“请输入一个实数:”))p=IiaStr(N,".")Print Mid(N,p)

考题 下列程序执行后,分别输入5,10,则输出的结果是______ 。 a= InputBox (“请输入数据”“a”“的值”) b= InputBox (“请输入数据”“b”&“的值”) c= a + b +“5”Print cA.15 5B.5105C.20D.25

考题 下列程序: Private Sub Command1_Click() a=InputBox("请输入") b=InputBox("请输入") Print=a+b End Sub 运行时输入3和4,输出的结果是A.7B.34C.3+4D.出错

考题 以下语句执行时,从键盘上输入Zhang,执行结果是______。 Dim a As String a=InputBox("Input","","Name") Print aA.InputB.NameC.ZhangD.空字符串

考题 程序运行时,若输入66,则输出结果是: i=eval(input()) if(i%3==0 and i%11==0): print("yes") else: print("no")

考题 3、程序运行时,若输入66,则输出结果是: i=eval(input()) if(i%3==0 and i%11==0): print("yes") else: print("no")