【判断题】【消耗次数:1】
int i,j;boolean booleanValue=(i==j);
正确
错误
参考答案:
复制
纠错
相关题目
【单选题】 若有说明:int i,j =7,*p =&i,*q=&j;则与i =j;不等价的语句是()。
①  p =q
②  *p =*q
③  *i =*q
④  *p =*j
【单选题】 下面程序的运行结果是() #include stdio.h main( ) { char a[]=morning,t; int i,j=0; for(i=1;i if(a[j]j=i; t=a[j]; a[j]=a[7]; a[7]=a[j]; puts(a); }
①  mogninr
②  mo
③  morning
④  mornin
【单选题】 执行语句int i = 1, j = ++i; 后i与j的值分别为( )。
①  1与1
②  2与1
③  1与2
④  2与2
【单选题】 在下面循环语句中内层循环体S语句的执行总次数为( ) for(int i=0; i i++) for(int j=i; j j++) S;
①  n2
②  (n+1)/2
③  n(n-1)/2
④  n(n+1)/2
【单选题】 在下面循环语句中内层循环体S语句的执行总次数为()。 for(int i=0; i i++) for(int j=i; j j++) S;
①  n2
②  (n+1)/2
③  n(n-1)/2
④  n(n+1)/2
【单选题】 以下程序段运行后s的值是()。 int a[3][3]={1, 2, 3, 4, 5, 1, 2, 3, 4} ; int i, j, s=1; for(i=0; i for(j=i+1; j s+=a[i][j];
①  6
②  120
③  7
④  240
【单选题】 在下面循环语句中内层循环体S语句的执行次数为( )。 for(int i=0;i<n;i++) for(int j=i;j<n;j++)S;
①  n2
②  (n+1)/2
③  n(n-1)/2
④  n(n+1)/2
【单选题】 以下循环体的执行次数是#include stdio.hvoid main(){ int i,j; for(i=0,j=1; i i=i+2) j--; }
①  3
②  2
③  1
④  0
【单选题】 #include stdio.hvoid main(){ int i,j,k; for(i=1;ii++) for(j=0;jj++) for(k=0;kk++) if( (i*100+j*10+k)==((i*i*i)+(j*j*j)+(k*k*k))) printf(%d%d%d ,i,j,k);}该程序可以输出所有的(  )。
①  素数
②  奇数
③  偶数
④  水仙花数
【单选题】 在下面循环语句中内层循环体S语句的执行总次数为()。 for(int i=0; i<n; i++) for(int j=i; j<n; j++) S;
①  n2
②  (n+1)/2
③  n(n-1)/2
④  n(n+1)/2
随机题目
【单选题】 19. Your room is ____ mine.
①  twice as large
②  twice the size of
③  bigger twice than
④  as twice large as
【单选题】 4. I think the story is not so ____as that one.
①  interesting
②  interested
③  more interesting
④  most interesting
【单选题】 3.This book is ____that one, but ____than that one.
①  as difficult as; expensive
②  as more difficult as; more expensive
③  as difficult as; more expensive
④  more difficult as; as expensive
【单选题】 8. My mother is no ____young.
①  shorter
②  longer
③  little
④  few
【单选题】 20. Your room is ____ than mine.
①  three time big
②  three times big
③  three times bigger
④  bigger three times
【单选题】 18. The earth is about ____ as the moon.
①  as fifty time big
②  fifty times as big
③  as big fifty times
④  fifty as times big
【单选题】 15.–What’s your brother like? –He is____.
①  a driver
②  very tall
③  my friend
④  at school
【单选题】 6. I think science is ____than Japanese.
①  much important
②  important
③  much more important
④  more much important
【单选题】 5. His father began to work ____he was seven years old.
①  as old as
②  as early as
③  as soon as
④  as much as
【单选题】 13. The house is ____ small for a family of six.
①  much too
②  too much
③  very tall many
④  many very tall