第1题:
此题为判断题(对,错)。
第2题:
以下能正确定义数据类型TelBook的代码是_________。
A.Type TelBook Name As String*10 TelNum As Integer End Type
B.Type TelBook Name As String*10 TelNum As Integer End TelBook
C.Type TelBook Name String*10 TelNum Integer End Type TelBook
D.TypedefTelBook NameString*10 TelNum Integer End Type
第3题:
A.int
B.float
C.double
D.string
第4题:
String 是最基本的数据类型吗?
基本数据类型包括byte、int、char、long、float、double、boolean 和short。
java.lang.String 类是final 类型的,因此不可以继承这个类、不能修改这个类。为了提高
效率节省空间,我们应该用StringBuffer 类
第5题:
以下能正确定义数据类型TelBook的代码是 ______。
A.Type TelBook Name As String*10 TelNum As Integer End Type
B.Type TelBook Name As String*10 TelNun As Integer End TelBook
C.Type TelBook Name String*10 TelNum Integer End Type TelBook
D.TypedefTelBook Name String*10 TelNum Integer End Type
第6题:
下列程序中,实现将封装数据类型Integer和基本数据类型int之间的转换,以及Integer,int类型和String类型之间的转换。请将程序补充完整。
程序运行结果如下:
123
456
456
public class ex7_1{
public static void main(String[]args) {
Integer intObj;
int n;
String s;
intObj = new Integer(123);
n=intObj.__________;
System.out.printin(Integer.toString(n));
s=new String("456");
intObj=Integer._________;
System.out.println(intObj.__________);
n=Integer.parseInt(s);
System.out.println(Integer.toString(n));
}
}
第7题:
以下能正确定义数据类型TelBook的代码是
A.TypeTelBook Name As String*10 TelNum As Integer EndType
B.Type TelBook Name As String*10 TelNum As Integer End TelBook
C.Type TelBook Name String*10 TelNum Integer EndTypeTelBook
D.Typedef TelBook Name String*10 TelNum Integer End Type
第8题:
在VBA中,如果没有显式声明或用符号来定义变量的数据类型,变量的默认数据类型为( )。
A)Variant
B)Int
C)Boolean
D)String
第9题:
在VBA中。如果没有显式声明或用符号来定义变量的数据类型,变量的默认数据类型为( )。
A. Variant
B. Int
C. Boolean
D. String
第10题:
在VBA中,如果没有显式声明或用符号来定义变量的数据类型,则变量的默认数据类型为( )。
A.Variant
B.Int
C.Boolean
D.String