注意:此页面搜索的是所有试题
题目内容
(国际开放大学Java语言程序设计)
下列代码执行的结果是()
public class Test {
public static void main(String[] args) {
int score = 50;
if (score >= 90) {
System.out.println("The Score is good");
}
else if (score >= 60) {
System.out.println("The Score is OK");
}
else {
System.out.println("The Socre is low");
}
}
}
A. The Score is good B. 编译错误
C. The Score is OK D. The score is low
public class Test {
public static void main(String[] args) {
int score = 50;
if (score >= 90) {
System.out.println("The Score is good");
}
else if (score >= 60) {
System.out.println("The Score is OK");
}
else {
System.out.println("The Socre is low");
}
}
}
A. The Score is good B. 编译错误
C. The Score is OK D. The score is low
参考答案