如下事件过程:Function Feed(x)If x 10 ThenFeed=xElseFeed=10 + xEnd IfEnd FunctionPrivate Sub Command1_Click()x=Val(InputBox( "", , 0) )pay=Feed(x)Print payEnd Sub运行时在输入框内输入变量x的值为15,输出结果为( )。A.0B.15C.25D.30

如下事件过程:

Function Feed(x)

If x < 10 Then

Feed=x

Else

Feed=10 + x

End If

End Function

Private Sub Command1_Click()

x=Val(InputBox( "", , 0) )

pay=Feed(x)

Print pay

End Sub

运行时在输入框内输入变量x的值为15,输出结果为( )。

A.0

B.15

C.25

D.30


相关考题:

He didn't have enough money to pay his train ( ). A.tuitionB.tipC.feeD.fare

The police caught a young couple trying to ___ a huge quantity of heroin from somewhere in the Mediterranean. A、exportB、relateC、importD、feed

The fuel supply system to an automatic auxiliary boiler, will be automatically shutdown if the boiler() A.salinity is abnormallyB.high steam demand is tooC.feed-water flow is lowD.water level is abnormally low

如下事件过程: Function Feed(x) If x <10 Then Feed=X Else Feed=10+x End If End Function Private Sub Command1_Click( ) x=Val(Input Box(" ",0)) pay=Feed(x) Print pay End Sub 运行时在输入框内输入变量x的值为15,输出结果为A.0B.15C.25D.30

在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程:Private Sub Command1_Click()x = -5If Sgn(x) Then y = Sgn(x ^ 2)Else y = Sgn(x)End IfPrint yEnd Sub程序运行后,单击命令按钮,窗体上显示的是( )。A.-5B.25C.1D.-1

在窗体上画一个名称为Text1的文本框,一个名称为Command1的命令按钮,然后编写如下事件过程和通用过程:Private Sub Command1_Click()n = Val(Text1.Text) If n\2 = n/2 Then f = f1(n)Else f = f2(n)End IfPrint f; nEnd SubPublic Function f1(ByRef x)x=x*xf1=x+xEnd FunctionPublic Function f2(ByVal x)x=x*xf2=x+x+xEnd Function程序运行后,在文本框中输入6,然后单击命令按钮,窗体上显示的是( )。A.72 36B.108 36C.72 6D.108 6

整型变量x中存放了一个两位数,要将这个两位数的个位数字和十位数字交换位置,例如,25变成52,正确的python表达式为()。A.(x % 10) * 10 + x // 10B.(x % 10)//10 + x // 10C.(x / 10)% 10 + x // 10D.(x % 10) * 10 + x % 10

整形变量x中存放了一个两位数,要将这个两位数的个位数字和十位数字交换位置,例如13变成31,正确的python表达式是()。A.(x%10)*10 +x//10B.(x%10)//10 +x//10C.(x/10)%10 +x//10D.(x%10)*10 +x%10

动物的食物(diet)称为饲料(feed)。