If a and b are integers and a - b=6, then a + b CANNOT beA.0B.less than 6C.greater than 6D
If a and b are integers and a - b=6, then a + b CANNOT be
A.0
B.less than 6
C.greater than 6
D.an even integer
E.an odd integer
If a and b are integers and a - b=6, then a + b CANNOT be
A.0
B.less than 6
C.greater than 6
D.an even integer
E.an odd integer
Which of the following terms is defined in the passage?
A.pheromones (line 2)
B.colony integrity (lines 11-12)
C.mass migrations (line 14)
D.private messages (lines 18-19)
(13)为把圆周率的近似值 3.14159 存放在变量 pi 中,应该把变量 pi 定义为()。
A)Dim pi As Integer
B)Dim pi(7) As Integer
C)Dim pi As Single
D)Dim pi As Long
下列程序的运行结果是()。 PriVate Sub Form_CUCk() Dimk As Integ<er n=5 m=1 k=1 Do m=m+2 k=k+1 Loop Until k>n Printm End Sub
A.1
B.12
C.11
D.32
阅读下面一段代码,代码的输出结果是() Integer in1 = new Integer(10); Integer in2 = new Integer(10); Integer in3 = 10; Integer in4 = 10; System.out.print(in1 == in2); System.out.print(in1 == in3); System.out.print(in3 == in4);
A、truetruetrue
B、falsefalsetrue
C、falsefalsefalse
D、falsetruefalse
Let |x|= 3, if x is an odd integer;
Let |x|= 6, if x is an even integer.
r and s are integers, 3r is odd, and 5+5 is odd.
Column A Column B
|r| |s|
A.if the quantity in Column A is greater
B.if the quantity in Column B is greater
C.if the two quantity are equal
D.if the relationship cannot be determined from the information given
以下是窗体的Click 事件过程Form_Click 的程序代码: Dim a(10) As Integer, p(3), i, k As Integer For i = 1 To 10 a(i) = 2 * (i - 1) + 1 Next i For i = 1 To 3 p(i) = a(i * i) Next i For i = 1 To 3 k = k + p(i) \ 2 Next i MsgBox(k) 程序的输出结果为()。
A、5
B、7
C、9
D、11
单击一次命令按钮之后,窗体中的输出结果为______。 Private Sub Command1_ Click() Dim a As Integer, b As Integer For i = 1 To 6 a=i*i+i Next i Call writein(a,B)Print a, b End Sub Sub writein(a, ByValB)b = 1 For i = 1 To 6 a=b* 4 b = b + 1 Next i End Sub
A.24 6
B.24 0
C.12 6
D.12 0
以下程序的输出结果是()。 Option Base 1 Private Sub Command1_Click() Dim a(10),p(3) as Integer k=5 For I-1 to 10 a(i)=I Next I For j=1 to3 p(i)=a(I*j) Next j For I=l to 3 k=k+ p (I)*2 Next I Print k End Sub
A.33
B.28
C.35
D.37
阅读下列程序并写出程序运行结果。
Private Sub Form_Click()
Dim x As Integer
Static y As Integer
x = x + 2
y = y + 3
Form1.Print "x="; x, "y="; y
End Sub
写出程序运行时连续单击三次窗体后,Form1上的输出结果。
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!