有以下程序: void fun(int a*a,int i,int i) int

题型:单项选择题

问题:

有以下程序:
void fun(int a*a,int i,int i)
int t;
if(i<j);
t=a[i];a[i]=a[j];a[j]=t;
fun(a,++i,--j);


main()
inta[]=1,2,3,4,5,6,i;
fun(a,0,5);
for(i=0;i(6;i++)
cout<(a[i];

执行后输出结果是( )。

A.6 5 4 3 2 1

B.4 3 2 1 5 6

C.4 5 6 1 2 3

D.1 2 3 4 5 6

考点:计算机等级考试C++二级C++笔试
题型:单项选择题

以下程序运行后输出的结果是______。
main()
int a[4][4]=1,2,3,4,5,6,7,8,11,12,13,14,15,16,17,18;
int i=0,j=0,s=0;
while(i++<4)

if(i==2||i==4)continue;
j=0;
do s+=a[j][i]; j++;while(j<4);

printf("%d\n",s);

题型:单项选择题

国家审计署开展绩效审计,从一般审计关注的“钱是怎样花的”变为重点考查“政府花钱的效果”,审计重点的变化启示各级政府

①要不断提高行为的实效性 ②要真正践行对人民负责的原则 ③要树立正确的政绩观 ④要发挥好审计机关的监督作用

A.①

B.①②

C.①②③

D.①②③④

题型:单项选择题

Dear Cassy,

Thanks for reminding me by e-mail that you want to baby-sit our children. Although you are only 12 years old, my wife and I would be willing to consider your application(申请)if you can meet(满足) a few requirements:

1)Send us three letters from teachers who will prove that you have never failed to follow instructions perfectly in class and never failed to hand in your homework on time.

2)Send us a note from two doctors who will prove that you are in perfect health, have never been sick, and never will be sick.

3)Send us a document from your physical education teacher or team coach that proves that you can do each of the following: Run two miles in less than four minutes, climb an oiled rope to a height of twenty feet in thirty seconds while balancing a glass of water on your nose, and walk in bare feet over hot coals and broken glass without injury.

4)Send us notarized(得到公证的)letters from at least two mental health experts saying that you have never had an envious thought towards other people.

5)Play and defeat five expert chess players while blindfolded(蒙着眼睛)after going without sleep for 48 hours.

6)Wait patiently(耐心地)for two years while we have investigators(调查)certify(确保)that all your documents(文件)are real.

Your loving and trusting friends,

The Smiths

小题1:The Smiths send their message to Cassy by     .

A.e-mail

B.a letter

C.a newspaper

D.a report小题2:According to the first paragraph,       .

A.the Smiths must have had an advertisement made, saying that they want someone to look after their children

B.the Smiths have informed Cassy that they need some children

C.the Smiths have promised to provide what Cassy asked for

D.the Smiths would be very glad if Cassy can meet their requirements小题3:What is the attitude of the Smiths about hiring the 12-year old girl to look after their baby?

A.The Smiths try to tell her how to baby-sit children.

B.The Smiths don’t think a girl is good for the job.

C.The Smiths don’t want to hire her.

D.The Smiths are willing to offer her the job.小题4:Which of the requirements mentioned by the Smiths do you think Cassy can meet?

A.All of them

B.Half of them

C.None of them

D.Most of them

题型:单项选择题

在单纯的套利活动中,投机者在即期外汇市场上抛售的是______

A.利率高的货币
B.利率低的货币
C.利率差为零的货币
D.汇率低的货币

题型:单项选择题

山羊传染性脓疱的特征是什么?

更多题库