首页题目详情

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语句的结尾作为条件不满足的默认分支。

查看答案和解析

支付 ¥0.1 即可查看此题答案和详细解析

低至 ¥0.1 起

Visual Basic语言程序设计单选题中等AI生成