【单选题】
在for循环结构中()for(x=0,y=0;(y!=123)&&(x<4);x++)
A、是无限循环
B、循环次数不定
C、执行4次
D、执行3次
A、是无限循环
B、循环次数不定
C、执行4次
D、执行3次
A、int []x = {1,2,3,4,5};for(int y = 0; y < 6; y++) System.out.println(x[y]); B、static int[] x = {7,6,5,4};static { x[1] = 8;x[4] = 3; } C、for(int y = 10; y < 10; y++)doStuff(y); D、void doOne(int x) { doTwo(x); }void doTwo(int y) { doThree(y); }void doThree(int z) { doTwo(z); } E、for(int x = 0; x < 1000000000; x++) doStuff(x); F、void counter(int i) { counter(++i); }
A、for循环的循环变量只能是从零开始或者从1开始的整数 B、while循环是最通用的循环语句 C、for循环在固定次数的循环中使用比较方便 D、for循环能够完成工作,用while循环也能完成