单选题:在窗体上画一个名称为Command1的命令按钮,然后编写如下通用过程和命令按钮的事件过程:Private Functio

  • 题目分类:VB
  • 题目类型:单选题
  • 号外号外:注册会员即送体验阅读点!
题目内容:
在窗体上画一个名称为Command1的命令按钮,然后编写如下通用过程和命令按钮的事件过程:
Private Function f(m As Integer)
 If m Mod 2 = 0 Then
  f = m
 Else
  f = 1
 End If
End Function
Private Sub Command1_Click()
 Dim i As Integer
 s = 0
 For i = 1 To 5
  s = s + f(i)
 Next
 Print s
End Sub
程序运行后,单击命令按钮,在窗体上显示的是(  )。 A.11
B.10
C.9
D.8
参考答案:
答案解析:

Even in a highly modernized country, manual work is still ne

Even in a highly modernized country, manual work is still needed.A.physical B.me

查看答案

一棵二叉树第六层(根结点为第一层)的结点数最多为(4)个。

一棵二叉树第六层(根结点为第一层)的结点数最多为(4)个。

查看答案

在窗体上画一个名称为Text1的文本框,要求文本框只能接收大写字母的输入。以下能实现该操作的事件过程是(  )。

在窗体上画一个名称为Text1的文本框,要求文本框只能接收大写字母的输入。以下能实现该操作的事件过程是(  )。A.Private Sub Text1_KeyP

查看答案

一个工程中含有窗体Form1、Form2和标准模块Model1,如果在Form1中有语句Pubilc X As Inte

一个工程中含有窗体Form1、Form2和标准模块Model1,如果在Form1中有语句Pubilc X As Integer,在Model1中有语句Pubil

查看答案

I am not certain whether he will come.

I am not certain whether he will come.A.determined B.sure C.sorry D.glad

查看答案