以下哪个类型是基本数据类型()。
第1题:
A.int
B.float
C.double
D.string
第2题:
( 18 )字面常量 42 、 4.2 、 42L 的数据类型分别是
A ) long 、 double int
B ) long 、 float 、 int
C ) int 、 double 、 long
D ) int 、 float 、 long
第3题:
A、int+int
B、long+long
C、byte+byte
D、double+double
答案:C
byte+byte可以发生自动类型提升
第4题:
设变量a是 int 型,f是 double 型,i是 float 型,则表达式10+'a'+i*f值的数据类型
A.int
B.float
C.double
D.不确定
第5题:
A.int
B.String
C.List
D.Object
第6题:
设变量a是int型,f是float型,i是double型,则表达式10+′a′+i*f值的数据类型为
A.int
B.float
C.double
D.不确定
第7题:
下列不是C++基本数据类型的是______。
A、int
B、string
C、char
D、void
第8题:
A.int
B.String
C.double
D.Boolean
第9题:
以下函数值的类型是 ( ) fun (float x) { float y; y=3 * x-4; return y; }
A.int
B.不确定
C.void
D.float
第10题:
设变量a是int型,f是double型,i是float型,则表达式10+'a'+i * f值的数据类型是
A.int
B.float
C.double
D.不确定