设有循环语句如下:for(int x=0,y=0;(y!=10)&&(x<3);x+=2,y+=2);则该循环语句的循环体执行的次数为( )。
查看答案
执行下列程序的输出结果为( )。[程序] using namespace std; int main(void) {int a=0;if(a>0) a+=10;elseif(a<4)if(a<3) a+=1;else a+=2;else a+=3;cout<
A. 10
B. 1
C. 2
D. 3
执行下列程序的输出结果为( )。[程序] #include using namespace std; int main(void) {int y=-3;while(y++);cout<
A. -2-10
B. 1
C. 0
D. -2-1
执行下列程序的输出结果为( )。[程序] #include using namespace std; int main(void) {int i=0,j=1,k=1;switch(i){case 1: if(j!=0) k+=1;else k+=2;break;case 2: k+=3; break;default: k+=4;}cout<
A. 2
B. 3
C. 4
D. 5
执行下列程序的输出结果为( )。[程序] #include using namespace std; int main(void) {int a=1,b=0;for(; a<10; a++){if(a%3==0) continue;b++;if(b%5==0) break;}cout<
A. 32
B. 35
C. 75
D. 106