万能百科  > 计算机   > 

[单项选择题] 下列程序段的执行结果为  a=75  If a > 60 Then Score=1  If a > 70 Then Score=2  If a

2021-07-20   

[单项选择题] 下列程序段的执行结果为  a=75  If a > 60 Then Score=1  If a > 70 Then Score=2  If a > 80 Then Score=3  If a > 90 Then Score=4  Print "Score= ";Score

A.Score=1

B.Score=2

C.Score=3

D.Score=4

正确答案:

B

参考解析:

【命题目的】考查考生对条件语句的掌握程度。 【解题要点】如果a>60,则Score=1;如果a>70,则Score=2;如果a>80,则 Score=3;如果a>90,则Score=4;本题的条件是a=75,输出结果应该是Score=2。 【考点链接】块结构条件语句的使用方法。

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签