【单选题】
下面程序执行后的结果是() #include stdio.h void fun( ) { int i,sum=0; int a[5]={1,2,3,4,5}; for (i=0;i { if (a[i]%2==0) { sum+=a[i]; } } printf(%d,sum); } void main( ) { fun( ); }
【单选题】
How can he ____if he is not ____?
④
be hearing--listened to
【单选题】
How can he ______ if he is not ______ ?
④
be hearing; listened to
【单选题】
If he ___ he ___ that food.
①
was warned; would not take
②
had been warned; would not have taken
③
would be warned; had not taken
④
would have been warned; had not taken
【简答题】
计算两个整数n和m(m1000)之间所有数的和。n和m从键盘输入。例如,当n=1,m=100时,sum=5050,当n=100,m=1000时,sum=495550。
#include#includemain()
{
int n,m;
int sum;
/************found************/[填空1]
printf(\nInput n,m\n
scanf(%d,%d,n,
while( n=m )
{
/************found************/[填空2]
n++;
}
printf(sum=%d \n,sum);
}
【多选题】
A: Is he married?B:_________
②
No, he is still single.
【单选题】
下列语句中,将函数int sum(int x, int y)正确重载的是( )。
①
float sum(int x, int y);
③
float sum(float x, float y);
④
double sum(int y, int x);
【单选题】
下列语句中,将函数int sum(int x, int y)正确重载的是( )。
①
float sum(int x, int y);
③
float sum(float x, float y);
④
double sum(int y, int x);
【单选题】
When he was 65,he[填空] that he didn’t want to stop
【单选题】
Bob owed lots of money to the man, _______company went bankrupt.