更多"If n is an integer between 0 and 10"的相关试题:
[单项选择]If n is an integer between 2 and 100 and if n is also the square of an integer, what is the value of n ?()
(1)n is the cube of an integer.
(2)n is even.
A. 条件(1)充分,但条件(2)不充分.
B. 条件(2)充分,但条件(1)不充分.
C. 条件(1)和(2)单独都不充分,但条件(1)和条件(2)联合起来充分.
D. 条件(1)充分,条件(2)也充分.
E. 条件(1)和条件(2)单独都不充分,条件(1)和条件(2)联合起来也不充分.
[单项选择]If n is a positive integer, then n(n+1)(n+2) is ().
A. even only when n is even
B. even only when n is odd
C. odd whenever n is odd
D. divisible by 3 only when n is odd
E. divisible by 4 whenever n is even
[单项选择]If n is a positive integer and n2 is divisible by 72, then the largest positive integer that must divide n is ?()
A. 6
B. 12
C. 24
D. 36
E. 48
[单项选择]执行下列程序段后,变量s的值是()。
Dim S As Integer,n As Integer
S=0:n=1
Do While n<100
S=S+N
n=n+1
Loop
A. 5050
B. 4950
C. 3000
D. 4000
[单项选择]阅读下列程序:
Function func(n As Integer)As Integer
Sum = 0
For i = 1 To n
Sum = Sum + (i + 1)* i
Next i
func = Sum
End Function.
Private Sub Command1_Click ( )
Dim a As Integer
a= 5
s = func (
A. 60
B. 70
C. 15
[单项选择]假定有以下通用过程:
Function Fun(n As Integer)As Integer
x=n * n
Fun=x - 11
End Function
在窗体上画一个命令按钮,其名称为Command1,然后编写如下事件过程:
Private Sub Command1_Click( )
Dim i As Integer
For i = 1 To 2
y = Fun(i)
Print y;
Next i
End Sub
程序运行后,单击命令按钮,在窗体上显示的内容是( )。
A. 1 3
B. 10 8
C. -10 -7
D. 0 5
[单项选择]Is the integer n a multiple of 140 ?()
(1) n is a multiple of 10.
(2) n is a multiple of 14.
A. 条件(1)充分,但条件(2)不充分.
B. 条件(2)充分,但条件(1)不充分.
C. 条件(1)和(2)单独都不充分,但条件(1)和条件(2)联合起来充分.
D. 条件(1)充分,条件(2)也充分.
E. 条件(1)和条件(2)单独都不充分,条件(1)和条件(2)联合起来也不充分.
[简答题]Are there any similarities and differences between the Oral Approach and the Audiolingual Method in terms of language theories and learning theories
[单项选择]The integer n is a multiple of both 5 and 3. Which of the following is (are) true
I. n is odd.
II. n=30.
III. n is a multiple of 15.
A. III only
B. I and II only
C. I and III only
D. II and III only
E. I, II, and III
[填空题]下列程序的运行结果是______。
Sub abcd(ByValn As Integer)
n=n+5
End Sub
Private Sub Form_Click( )
nx%=3
Callabcd(nx%)
Printnx%
End Sub
[简答题]Dear Editor,
Please send me, if you have any now, export guides for Columbia, Argentina, and Brazil ( I learned about the guides on the newspaper of Jan. 21,2001 ).
If the guides are not available now but will be in the future, I would appreciate your placing me on the mailing list to receive them upon publication.
[单项选择]Any dispute arising from duty payment between the auditee and the Customs should be dealt with in accordance with the provision laid down in the()
A. regulations on Customs External Auditing of the peopli’s Republic of China
B. customs law of the People~ Republic of China
C. regulations on Import and Export Tariff of the People~Republic of China
D. Both B and C
[填空题]下列程序是判断一个整数(>=3)是否为素数,请补充完整。
Dim n As Integer
n=InputBox("请输入一个整数(>=3)")
k=Int(Sqr(n))
i:2
swit=0
While i<=k And swit=0
If n Mod i=0 Then
[7]
E1se
[8]
End If
Wend
If swit=0 Then
Print n;"是一个素数。"
E1se
Print n;"不是一个素数。"
End If