题目
题目

BU.330.775.T2.FA25 Sample Test- Requires Respondus LockDown Browser

单项选择题

Which statement is correct about the following Python code: score = 85 if score >= 90:   print("Grade A") elif score >= 80:   print("Grade B") else:   print("Grade C")  

选项
A.score is a string variable.
B.It is a loop structure which runs certain instructions repeatedly.
C.elif is another way of writing else if.
D.The output result is "Grade A".
查看解析

查看解析

标准答案
Please login to view
思路分析
The question presents a snippet that uses a conditional chain to decide which grade to print. Option 1: 'score is a string variable.' This is false because the code shows score = 85, which is an integer, not a string. If score were a string like '85'......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!