[二级VB试题天天练]函数过程的定义及调用

全国等级考试资料网 2019-01-23 14:16:13 145
串的长度是:
A)串中不同字符的个数
B)串中不同字母的个数
C)串中所含字符的个数且字符个数大于零
D)串中所含字符的个数
考点分析:串的概念及特点

VB试题:
Function FirProc(z As Integer,y As Integer,z As Integer)
  FirProc=2*x+y+3*z
End Function
Function SecProc(x As Integer,y As Integer,z As Integer)
  SecProc=FirProc(x,y,z)+x
End Function
Private Sub Command1_Click()
  Dim a As Integer,b As Integer,c As Integer
  a=2:b=3:c=4
  Print SecProc(c,b,a)
End Sub
A) 21   B) 19   C) 17   D) 34
考点分析:函数过程的定义及调用。

相关资料

相关阅读