6
9
18
24
30
第1题:
阅读以下说明,回答问题1~4,将解答填入对应的解答栏内。
[说明] 输入1个长整型,求各位数字的平方和。
例如:输入-123,输出14。
include <stdio. h>
void main( )
{ int digit;
long in , s;
seanf(" % Id", &in );
(1);
(2);
while(in >0) {
(3);
s = s + digit* digit;
(4);
}
pfinff( "sum = % 1dn", s );
}
第2题:
单击一次命令按钮之后,在对话框中输入12,2,34,23,窗体中的输出结果为______。 Private Sub Command1_ Click () Dim a(4) As Integer For i = 1 To 4 a (i) = Val (InputBox (“请输入元素”)) Next i plus a(1), a(2), a(3) End Sub Sub plus(first As Integer, second As Integer, third As Integer, Optional forth) n = first + second + third If Not IsMissing (forth) Then n = n + forth End If Print n End Sub
A.14
B.71
C.48
D.37
第3题:
There are still many things to straighten out before we can build this factory. First, there is the problem of money. Second, we need to import some of the key equipment. Third, we must set up a strong team to run the factory.()
此题为判断题(对,错)。
第4题:
How does the Extended Get Digit String step differ from the Get Digit String? ()
第5题:
3.—__________ 1 go out for a while?
—No,you __________ You must finish your homework first.
A. Must,needn't
B. Can,may
C. May,mustn't
D. May,must
第6题:
is a sequence of letters and digits, the first character must be a letter.
A.An identifier
B.A string
C.An array
D.program
第7题:
Refertotheexhibit.TheSt.LegerEmergencyResponseSupplyCompanyhasahome-officeworker,Ms.Oswego,whoisattachedtoitsvoicenetwork.Whichconfigurationcommand,whenaddedtotheconfigurationshownonbothRouterT1andRouterT2wouldallowthoseattachedtoRouterAtobeabletocallMs.Oswego?()
A.prefix
B.num-exp
C.digit-strip
D.nodigit-strip
E.forwarddigits
F.translation-rule
第8题:
设有一个判断语句
if(!(ch>='0'&&ch<='9'))printf(“This is not a digit!\n”);
else printf(“This is a digit!\n”);
为实现判定一条件覆盖,需要设计的测试用例个数至少应为
A) 1
B) 2
C) 3
D) 4
A.
B.
C.
D.
第9题:
Providing you are not sailing in the Red Sea or another special area as listed in ANNEX V of MARPOL,how many miles from land must you be to throw garbage including bottles,rags,and glass that has not been ground up into the sea?
A.3 nm
B.6 nm
C.12 nm
D.25 nm
第10题:
D/A(Digit to Analog)转换器的作用是将二进制的()转换为相应的()。