• 2022-05-26
    下列程序片段用于产生成绩等第,已定义score%和mark$分别表示成绩和等第。即60分(含)以上及格、75分(含)以上良好、90分(含)以上优秀,能获得预期结果的是______。
    A: If score>=90 Then Mark="优秀" ElseIf score>=75 Then Mark="良好" ElseIf score>=60 Then Mark="及格" End If
    B: If score>=60 Then Mark="及格" ElseIf score>=75 Then Mark="良好" ElseIf score>=90 Then Mark="优秀"
    C: If score>=90 Then Mark="优秀"If score>=75 Then Mark="良好"If score>=60 Then Mark="及格"
    D: If score>=60 Then Mark="及格" ElseIf score>=75 Then Mark="良好"ElseIf score>=90 Then Mark="优秀" End If
  • A
    本题目来自[网课答案]本页地址:https://www.wkda.cn/ask/axezyxjzzpxzmjo.html

    内容

    • 0

      The football team lost their first game by a ___ of 1-2. A: point B: mark C: score D: number

    • 1

      5. 设有成绩值为score,根据score的值输出对应等级。90分以上优秀,80-89之间为良好,60分以上为合格,60分以下为不合格

    • 2

      下面用if语句统计“成绩(score)优秀的男生以及不及格的男生”的人数,正确的语句为_____。 A: if(gender=="男" and score <60 or score>=90): n+ = 1 B: if(gender=="男" and score <60 and score>=90): n+ = 1 C: if(gender=="男" and (score <60 or score>=90)): n+ = 1 D: if(gender=="男" or score <60 or score>=90): n+ = 1

    • 3

      从键盘上输入一个百分制成绩score,按下列原则输出其等级:score≥90,等级为A;80≤score<90,等级为B;70≤score<80,等级为C;60≤score<70,等级为D;score<60,等级为E。

    • 4

      Which of the following couldn't be used to show a student's education achievement?( ) A: mark B: grade C: score D: literature