网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
int i = 1,j = 10; do{ if (i>j) { continue; } j--; } while (++i <6); System.out.println(“i = “ +i+” and j = “+j); What is the result?()
A
i = 6 and j = 5
B
i = 5 and j = 5
C
i = 6 and j = 4
D
i = 5 and j = 6
E
i = 6 and j = 6
参考答案
参考解析
解析:
暂无解析
更多 “单选题int i = 1,j = 10; do{ if (ij) { continue; } j--; } while (++i 6); System.out.println(“i = “ +i+” and j = “+j); What is the result?()A i = 6 and j = 5B i = 5 and j = 5C i = 6 and j = 4D i = 5 and j = 6E i = 6 and j = 6” 相关考题
考题
给定下面的代码: int i=1,j=10; do { if(i++>--j) continue; }while(i<5) 执行完之后,i与j的值分别是多少? ( )A.i=6,j=5B.i=5,j=5C.i=6,j=4D.i=5,j=6
考题
下列循环体的执行次数是()。include main(){int i,j;for(i=0,j=1;i
下列循环体的执行次数是( )。#include<stdio.h>main(){int i,j;for(i=0,j=1;i<j+1;i+=1,j--)printf("%d\n",j);}A.3B.2C.1D.0
考题
在执行完此程序段后,i,j值为 int i=1,j=10; do{ if(++i>j--)continue; }while(i<5);A.i=6 and j=5B.i=5 and j=5C.i=6 and j=4D.i=5 and j=6
考题
有以下程序:includeusing namespace std;int main(){ inty=18,i=0,j,a[8]; do{ a[i]=
有以下程序: #include <iostream> using namespace std; int main() { int y=18,i=0,j,a[8]; do{ a[i]=y%2; i++; y=y/2; }while(y>=1); for(j=i-1;i>=0;j--) cout<<a[j]; coutA.1000B.10010C.110D.10100
考题
执行下面的程序段后i和j的结果为 int i=1,j=10; do { if(i++>--j)continue; } while(i<5);A.i=6,j=5B.i=5,j=5C.i=6,j=4D.i=5,j=6
考题
inti=1,j=10;do{if(ij){continue;}j--;}while(++i6);System.out.println(i=+i+”andj=+j);Whatistheresult?()
A.i=6andj=5B.i=5andj=5C.i=6andj=4D.i=5andj=6E.i=6andj=6
考题
下列程序执行后的结果是______。public class ex24{public static void main(String[] args){int j=10;a1: for(int i=3;i>0;i--){j-=i;int m=l;a2: while (m<j){if (i<=m)continue a1;j/=m++;}}System.out.println(j);}}下列嵌套的循环程序执行后,结果是______。 public class ax25 { public static void main(String[] args) { int sum=0; for(int i=0;i<=5;i++) { for(int j=10;j>3*i;j--) { sum+=j*i; } } System.out.println(sum); } }A.136B.127C.147D.153
考题
以下程序运行后,输出结果为______。 main() {int y=18,i=0 j,a[8]; do { a[i]=y%2; i++; y=y/2; } while(y>=1); for(j=1-1;j>=0;j--) printf("%d",a[j]); printf("\n"); }A.10000B.10010C.110D.10100
考题
以下程序运行后的输出结果是______。 main () { int y=18,i=0,j,a[8]; do { a[i]=y%2;i++; y=y/2; } while(y>=1); for(j=i-1;j>=0;j--)printf("%d",a[j]); printf("\n"); }A.1000B.10010C.110D.10100
考题
以下程序运行后,输出结果是( )。 main() {int y=18,i=0,j,a[8]; do { a[i]’y%2; i++; y=y/2; } while(y>=1); for(j=i-1;j>=0;j--) printf("%d",a[j]); printf("\n"); }A.1000B.10010C.110D.10100
考题
下面程序的输出结果是includemain(){int i=010,j=10;Printf(“%d,%d”,++i,j--);}A.11,1
下面程序的输出结果是 #include<stdio.h> main() {int i=010,j=10; Printf(“%d,%d”,++i,j--); }A.11,10B.9,10C.010,9D.10,9
考题
在执行完此程序段后,i,j值为 int i=1-10; do{ if(++i>j--)continue; } while(i<5);A.i=6 and j=5B.i=5 and j=5C.i=6 and j=4D.i=5 and j=6
考题
以下选项中循环结构合法的是( )。A.while (int i<7) { i+ + System.out.println("i is" + i): }B.int j:3; while (j) { System.out.println("j is"+j); }C.int j=O; for (int k=0; j + k!=10; j + +, k+ +) { System.out.println("j is"+j +,"k is"+ k): }D.int i=0: do{ {System.out.println("j is"+ j+ +); if (j==3){continue loop;} }while(j<10);
考题
观察以下程序段:int i=1,j=10;do{if(i++>--j) continue;} while(i
A. i=6 j=5B. i=5 j=5C. i=6 j=4D. i=5 j=6
考题
public class test3 { public static void main(String args[]) { for(int i = 0; i 3; i++) { for(int j = 3; j = 0; j--) { if(i == j) continue; System.out.println("i="+ i + " j="+j); } } } } 上面的Java代码编译运行后,下列选项中,()会出现在输出结果中。 A、i=0 j=3B、i=0 j=0C、i=2 j=2D、i=0 j=2E、i=1 j=2
考题
int i = 1,j = 10; do{ if (ij) { continue; } j--; } while (++i 6); System.out.println(“i = “ +i+” and j = “+j); What is the result?() A、 i = 6 and j = 5B、 i = 5 and j = 5C、 i = 6 and j = 4D、 i = 5 and j = 6E、 i = 6 and j = 6
考题
int i= 1, j= 10 ; do ( if (i++ --j) continue; ) while (i5); After execution, what are the values for I and j?() A、 i = 6 and j= 5B、 i = 5 and j= 5C、 i = 6 and j= 4D、 i = 5 and j= 6E、 i = 6 and j= 6
考题
int i = 1,j = 10; do { if(ij) { break; } j--; } while (++i 5); System.out.println(“i =” +i+” and j = “+j); What is the result?()A、 i = 6 and j = 5B、 i = 5 and j = 5C、 i = 6 and j = 4D、 i = 5 and j = 6E、 i = 6 and j = 6
考题
单选题int i= 1, j= 10 ; do ( if (i++ --j) continue; ) while (i5); After execution, what are the values for I and j? ()A
i = 6 and j= 5B
i = 5 and j= 5C
i = 6 and j= 4D
i = 5 and j= 6E
i = 6 and j= 6
考题
单选题int i = 1,j = 10; do { if(ij) { break; } j--; } while (++i 5); System.out.println(“i =” +i+” and j = “+j); What is the result?()A
i = 6 and j = 5B
i = 5 and j = 5C
i = 6 and j = 4D
i = 5 and j = 6E
i = 6 and j = 6
热门标签
最新试卷