【单选题】
循环for(int i=0,x=0;!x&&i<=5;i++);的循环体执行次数是()
【单选题】
程序段G17G01G41X0Y0D01中的D01的含义是()。
【单选题】
下面的程序段中,循环体执行的次数是( )。
Dim I,s
For I=1 to 10
s=s+I
Next I
【单选题】
在下面循环语句中内层循环体S语句的执行次数为( )。
for(int i=0;ii++)
for(int j=i;jj++)S;
【单选题】
以下可以正确计算s=12345的程序段是)
②
fori=1;i<=5;i++){s=1;{s=0;s=si;}s=si;}
④
s=0;fori=1;i<=5;i++)fori=1;i<=5;i++)s=si;s=si;
【单选题】
下面程序段a=10;b=0;do{b+=2;a-=2+b;}while(a>=0);中循环的执行次数是()
【简答题】
以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=8;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【简答题】
以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=3;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【单选题】
有如下程序:
#includevoid main( )
{ int a=2,b=-1,c=2;
if (ab)
if (b0) c=0;
else c++;
printf(%d\n
}
该程序的输出结果是
【单选题】
执行语句:int[] x = new int[20];后,下面哪个说法是正确的?( )