题目内容

教师备课需要做好的工作包括()。

A. 钻研教材
B. 了解学生
C. 设计教法
D. 巩固知识

查看答案
更多问题

下面哪些java语句会导致无限循环?( )(1)while (true) i = 0;(2)while (false) i = 1;(3)while (!false) i = 0;

A. 仅仅(3)
B. (1)和(3)
C. 仅仅(1)
D. (1)、(2)和(3)

下列语句序列执行后,i的值是( )。int i=0;do{i+=3;}while(i<10);

A. 12
B. 9
C. 6
D. 3

和语句for(int x=0;x<15;x+=2)sum+=x+5;作用一样的语句是( )。

A. for(int x=5;x<20;x+=2)sum+=x;
B. for(int x=5;x<20;x+=x-2)sum+=2;
C. for(int x=0;x<15;x+=2)sum+=x+3;x+=2;
D. 上述全对

阅读以下代码,选择正确的输出结果( )。public class TestDemo1 {public static void main(String[] args) {int m = 3, n = 6, k = 0;while ((m++) <= (--n))++k;System.out.println(k);}}

A. 0
B. 1
C. 2
D. 3

答案查题题库