首页题目详情
Which of the following is a correct use of the Else clause in an If statement?

A.Else must be used with a Then clause
B.Else can be used with multiple conditions
C.Else is optional and can be omitted
D.Else is only used once in a single If statement
优质解答
答案
C
解析
在If语句中,Else子句是可选的,可以用在If语句的结尾作为条件不满足的默认分支。
Visual Basic语言程序设计单选题中等AI生成