有以下程序()
A.#include
B.02356
C.0235
D.235
E.2356
C、0235
A.#include
B.02356
C.0235
D.235
E.2356
C、0235
第1题
A.2,1
B.2,0
C.3,1
D.6,1
第2题
A.-11 is a positive odd number.
B.-11 is a negative odd number.
C.-11 is a positive even number.
D.11 is a negative even number.
第3题
A.2,-1
B.3,1
C.2,0
D.2,1
第4题
有以下程序
#include
main()
{
int y=9 ;
for(; y>0 ; y--)
if(y%3==0 ) printf("%d" , --y) ;}
程序的运行结果是_____
第5题
以下程序的功能是求两个非0整数相除的商和余数。程序有几处错误,试找出它们加以修改,并上机验证修改结果。 #include "iostream" using namespace std; int main() {int x,y,r1,r2; cin>>x>>y; if(x=0||y=0) cout<<”input else { if(x> y) r1=x/y; r2=x%y; else r1=y/x; r2=y%x; } cout<<”商=> <<” 余数="”<"> < <endl; system("pause"); return 0;>
第6题
以下程序的输出结果是()
#include<stdio.h>
main()
{ unsigned short a=65537; int b;
printf("%d/n" ,b=a);
}
第7题
写出以下程序的运行结果。
#include int fun(int a){int b=0;static int c=3;b ; c ;return(a b c);}
main(){int i, a=5;for (i=0; i<3; i )cout<< i<< " "<< fun(a)<< " ";}
第8题
A.4
B.5
C.3
D.6
第9题
A.10
B.1
C.死循环,不能确定次数
D.6
第10题
A.4 4 4 4
B. 4 6 8 10
C. 4 5 6 7
D. 4 3 2 1