单选题:设有如下程序:Private Sub Command1_Click() Dim sum As Double, x As

  • 题目分类:VB
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
设有如下程序:
Private Sub Command1_Click()
 Dim sum As Double, x As Double
 sum = 0
 n = 0
  For i = 1 To 5
   x = n / i
   n = n + 1
   sum = sum + x
Next
End Sub
该程序通过For循环计算一个表达式的值,这个表达式是(  )。 A.1+1/2+ 2/3+3/4+4/5
B.1+1/2+2/3+3/4
C.1/2+2/3+3/4+4/5
D.1+1/2+1/3+1/4+1/5
参考答案:
答案解析:

在Java中,与数据库连接的技术是

在Java中,与数据库连接的技术是A.ODBC B.JDBC C.数据库厂家驱动程序 D.数据库厂家的连接协议

查看答案

Thread类中能运行线程体的方法是

Thread类中能运行线程体的方法是A.start() B.resume() C.init() D.run()

查看答案

为了使计时器控件Timer1每隔0.5秒触发一次Timer事件,应将Timer1控件的______属性设置为______

为了使计时器控件Timer1每隔0.5秒触发一次Timer事件,应将Timer1控件的______属性设置为______。

查看答案

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

在窗体上画一个名称为Command1的命令按钮,然后编写如下通用过程和命令按钮的事件过程:Private Function f(m As Integer) If

查看答案

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

查看答案