网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

已知x代表某个百分制成绩,下列程序段用于显示对应的五级制成绩,正确的是( )

A.If x>=60 Then Print"及格" Else If x>=70 Then Print"中" Else If x>=80 Then Print"良" Else If x>=90 Then Print"优" Else Print"不及格" End If

B.If x<90 Then Print"良" Else If x<80 Then Print"中" Else If x<70 Then Print"及格" Else If x<60 Then Print"不及格" Else Print"优" End If

C.If x>=90 then Print"优" Else If x>=80 Then Print"良" Else If x>=70 Then Print"中" Else If x>=60 Then Print"及格" Else Print"不及格" End If End Select

D.Select Case x Case x>=90 Print"优" Case x>=80 Print"良" Case x>=70 Print"中" Case x>=60 Print"及格" Case Else Print"不及格"


参考答案

更多 “ 已知x代表某个百分制成绩,下列程序段用于显示对应的五级制成绩,正确的是( )A.If x>=60 Then Print"及格" Else If x>=70 Then Print"中" Else If x>=80 Then Print"良" Else If x>=90 Then Print"优" Else Print"不及格" End IfB.If x<90 Then Print"良" Else If x<80 Then Print"中" Else If x<70 Then Print"及格" Else If x<60 Then Print"不及格" Else Print"优" End IfC.If x>=90 then Print"优" Else If x>=80 Then Print"良" Else If x>=70 Then Print"中" Else If x>=60 Then Print"及格" Else Print"不及格" End If End SelectD.Select Case x Case x>=90 Print"优" Case x>=80 Print"良" Case x>=70 Print"中" Case x>=60 Print"及格" Case Else Print"不及格" ” 相关考题
考题 下面程序段定义了学生成绩的记录类型,由学号、姓名和三门课程成绩组成。若对某个学生的各个数据项进行赋值,下列程序段中正确的是( )。A.B.C.D.

考题 如下程序段定义了学生成绩的记录类型,由学号、姓名和三门课程成绩(百分制)组成。若对某个学生的各个数据项进行赋值,下列程序段中正确的是( )。A.B.C.D.

考题 如下程序段定义了学生成绩的记录类型,由学号、姓名和三门课程成绩(百分制)组成。若对某个学生的各个数据项进行赋值,下列程序段中正确的是( )。A)Dim S As StudB)Dim S As Stud

考题 写出程序段对应的输出结果 int x = 125; System.out.print(x%10);

考题 写出程序段对应的运行结果 int x = 4; System.out.print("x=" +((x > 4) ? 99.99 : 9));

考题 设 x = 1; y = 10,下列语句能正确运行结束的是________。A.if(x>y) print(x)B.max = x >y ? x : yC.if x>y max=xD.if x<y: min=x else: min=y

考题 写出程序段对应的输出结果 int x = 125; System.out.print(x/10);

考题 【其它】编写程序:某学生有两门考试课程,实行百分制考核。编写程序,输入这两门课程的成绩,计算其平均成绩。

考题 写出以下程序段对应的输出结果 int x = 23659; String m = "result="; while (x>0) { m = m + x%10; x = x/10; } System.out.print(m);