旅游市场细分的概念是指将一个整体市场按照消费者的某种或某些特点分解或划分为不同的消费者群体的过程
查看答案
运行程序,单击命令按钮Command1后窗体上输出结果是( )。 Function f(x As Integer) x = x + 2 f = x End Function Private Sub Command1_Click() Dim a(10) As Integer, x As Integer For i = 1 To 10 a(i) = 8 + i Next x = 2 Print a(f(x) + x) End Sub
A. 12
B. 14
C. 16
D. 20
有如下程序,运行结果是( )。 Public Function fun(m%, n%) As Integer Do r = m Mod n m = n n = r Loop Until r = 0 fun = m End Function Private Sub Command1_Click() Print fun(12, 44) End Sub
A. 4
B. 程序出错
C. 6
D. 2
设有以下函数过程 Private Function Fun(a() As Integer, b As String) As Integer … End Function 若有变量声明: Dim x(10) As Integer, n As Integer, ch As String 则下面正确的语句是( )。
A. Call fun x,"ch"
B. x(0) = Fun(x, "ch")
C. n = Fun(x(10), ch)
D. n = Fun(n, ch)
运行程序,单击命令按钮Command1后窗体上输出结果为( )。 Private Sub Command1_Click() Dim p As Integer p = myfun(1) + myfun(2) + myfun(3) Print p End Sub Private Function myfun(n As Integer) As Integer Dim s As Integer For k = 1 To n s = s + k Next myfun = s End Function
A. 15
B. 20
C. 6
D. 10