首页题目详情

在Visual Basic中,用来定义一个字符串类型常量的正确写法是?

题目配图
A.Const name = "John"
B.Const name As String = "John"
C.Const name As String = 'John'
D.Const name As String = John

优质解答

答案

B

解析

String类型常量应使用双引号包裹字符串内容,并通过As String声明类型。因此B是正确写法。

查看答案和解析

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

低至 ¥0.1 起

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