题目内容

“+,-,*,/,%”均属于三元运算符。

A. 对
B. 错

查看答案
更多问题

.NET包含两个部分:公共语言运行库和类库。

A. 对
B. 错

允许创建大小为0的数组

A. 对
B. 错

以下哪条语句表示“如果radius为正,则显示圆的面积”?

A. if (radius != 0) System.out.println(radius * radius * 3.14);
B. if (radius >= 0) System.out.println(radius * radius * 3.14);
C. if (radius > 0) System.out.println(radius * radius * 3.14);
D. if (radius <= 0) System.out.println(radius * radius * 3.14);

假设income的值为4001,下面代码的输出是_________if (income > 3000) { System.out.println("Income is greater than 3000"); } else if (income > 4000) { System.out.println("Income is greater than 4000"); }

A. Income is greater than 3000
B. Income is greater than 3000 followed by Income is greater than 4000
C. Income is greater than 4000
D. Income is greater than 4000 followed by Income is greater than 3000

答案查题题库