【单选题】【消耗次数:1】
设j和k都是int类型,则for循环语句 for(j=0,k=-1;k=1;j++,k++)printf(****\n);().
循环结束的条件不合法
是无限循环
循环体一次也不执行
循环体只执行一次
参考答案:
复制
纠错
相关题目
【单选题】 设j和k都是int类型,则for循环语句(). for(j=0,k=0; j scanf(%d,&k);
①  最多执行10次
②  最多执行9次
③  是无限循环
④  循环体一次也不执行
【单选题】 在下面循环语句中内层循环体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
【单选题】 在下面循环语句中内层循环体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
【单选题】 在下面循环语句中内层循环体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
【单选题】 下面的循环语句执行完毕后,循环变量k的值是()。int k=1;while (k++< 10);
①  10
②  11
③  9
④  无限循环,值不确定
【单选题】 在下面循环语句中内层循环体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
【判断题】 do while循环的循环体至少执行一次。
①  正确
②  错误
【单选题】 循环体至少被执行一次的语句为()
①  for循环
②  while循环
③  do循环
④  任一种循环
【单选题】 循环体至少被执行一次的语句为()。
①  for循环
②  while循环
③  do循环
④  任一种循环
随机题目
【单选题】 Tom, what did you do with my documents? I have never seen such a____ and disorder!
①  mass
②  mess
③  guess
④  bus
【单选题】 —Could I borrow your dictionary? —I’d get it for you ____I could remember who last borrowed it.
①  except that
②  unless
③  only if
④  if only
【单选题】 No one thought that John’s suggestion was worth ____.?
①  ?to consider ?
②  considering ?
③  to be considered ?
④  of consideration?
【单选题】 We must ____ that our customs and habits are different from theirs.
①  keep up with
②  bring forward
③  keep in mind
④  come true
【单选题】 20. Only when he had handed in his exam paper ____ he had made several mistakes.
①  he has realized
②  does he realize
③  has he realized
④  did he realize
【单选题】 People’s hearts ____ the children whose parents died in the accident.
①  went out for
②  went out with
③  went out to
④  went out of
【单选题】 A sudden idea ____ to him that he might try the new method.
①  occurred
②  happened
③  took place
④  took part
【单选题】 We often get ____ when people cut in line.
①  annoying
②  annoyed
③  to annoy
④  annoy
【单选题】 “Can I help you?” “Well, I’m afraid the box is too heavy for you, ____ thank you all the same.”
①  and
②  so
③  but
④  or
【单选题】 A guest arrived ____ I was doing my housework.
①  during
②  although
③  as though
④  while