问题
填空题
下面一段程序定义了一个名字为“books”的记录,其4个域的域名及数据类型如下:
域名 数据类型 数据长度
title 字符型 40
author 字符型 20
price 单精度实型 10
请将下面 【11】 补充完整。
Type books
title As String*40
author As string*20
Price 【11】
End Type
答案
参考答案:As Integer
解析: 考查Visual Basic的基本数据类型以及如何定义一个Type记录类型数据。本题用Type定义数据类型books,books含有三个不同的数据类型。根据题意,price赋以单精度实型,应以Integer表达,故[11]处填:AsInteger。