【单选题】【消耗次数:1】
程序:inti=10,j=10,k=3;k*=i+j;k最后的值是:()
40
50
60
70
参考答案:
复制
纠错
相关题目
【单选题】 以下程序的运行结果是()。voidmain(){inti,j,k=0;for(i=3;ii--){for(j=i;jj++)k+=i*j;}printf("%d\n",k);}
①  19
②  29
③  6
④  25
【单选题】 #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);}该程序可以输出所有的(  )。
①  素数
②  奇数
③  偶数
④  水仙花数
【判断题】 广义表的( a , d , e , (i ,j ) ,k )表尾是( d , e , (i ,j ) ,k )。
①  正确
②  错误
【单选题】 设j和k都是int类型,则for循环语句(). for(j=0,k=0; j scanf(%d,&k);
①  最多执行10次
②  最多执行9次
③  是无限循环
④  循环体一次也不执行
【单选题】 设j和k都是int类型,则for循环语句 for(j=0,k=-1;k=1;j++,k++)printf(****\n);().
①  循环结束的条件不合法
②  是无限循环
③  循环体一次也不执行
④  循环体只执行一次
【单选题】 若x,i,j,k都是int型变量,则执行下面表达式x=(i=4,j=16,k=32)后x的值为( )。
①  4
②  16
③  32
④  52
【单选题】 若inti,j;,则for(i=j=0;i<10&&j<8;i++,j+=3)控制的循环体的执行次数是()
①  9
②  8
③  3
④  2
【单选题】 有以下程序,执行后输出结果是() main( ) { int m[][3]={1,4,7,2,5,8,3,6,9}; int i,j,k=2; for(i=0;i { printf(%d ,m[k][i]); } }
①  4 5 6
②  2 5 8
③  3 6 9
④  7 8 9
【单选题】 下面的循环语句执行完毕后,循环变量k的值是()。int k=1;while (k++< 10);
①  10
②  11
③  9
④  无限循环,值不确定
【判断题】 广义表的(( a,c) , a ,b , d , e ,( (I ,j ) ,k ) )表头是( a , c)。
①  正确
②  错误
随机题目
【判断题】 A: What do you think of these skirts? B: I think nothing.
①  正确
②  错误
【判断题】 A: If it doesnt rain tomorrow, we will visit the Great Wall. B: Well done.
①  正确
②  错误
【判断题】 A: What do you do? B: I do well in my studies.
①  正确
②  错误
【判断题】 A: I had a good holiday this time. B: Congratulations.
①  正确
②  错误
【判断题】 A: I’m sorry I’m late again. B: Never mind.
①  正确
②  错误
【判断题】 A: That box is too heavy for me to lift. B: Ill give you a hand.
①  正确
②  错误
【判断题】 A:How long does it take to get there? B: About 20 miles.
①  正确
②  错误
【判断题】 A: I must apologize to you for the delay. B: You are welcome.
①  正确
②  错误
【判断题】 A: How is the child? B: He is much better.
①  正确
②  错误
【判断题】 A: I broke the vase accidentally. B: Not at all.
①  正确
②  错误