int
byte
char
float
第1题:
A.Float
B.char
C.int
D.double
第2题:
若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。
A. float
B.int
C.char
D.double
第3题:
有如下定义:float a=3.14f;byte b=3;则表达式a+b的值的数据类型为( )。
A.byte
B.int
C.char
D.float
第4题:
若有byte b=6;char c='c';则表达式b+c的值的类型是()。
A.int
B.byte
C.char
D.float
第5题:
若有以下类型说明语句: charw;intx;floaty,Z; 则表达式w*x+z-y的结果为_______类型。
A.float
B.char
C.int
D.double
第6题:
若有定义:int a=6,b=2;charc1=’a’,c2=’b’;则表达式a+b%5+c2-c1的值是()
第7题:
若有byteb=6;shorts=20;则表达式b+s的值的类型是()
第8题:
若有定义语句:inta[10]={1,2,3,4,5,6,7,8,9,10};charc=“a”;则值为4的合法表达式是()
第9题:
设有说明:charw;intx;floaty;doublez;则表达式w*x+z-y值的数据类型为()。
第10题:
char
int
float
byte
第11题:
byte
int
char
float
第12题:
a[4]
a[’d’-’c’]
a[’d’-c]
a[100.0-c]
第13题:
设有说明:charw;intx;f1oaty;doublez;则表达式w*x+z-y值的数据类型为()。
A.float
B.char
C.int
D.double
第14题:
A.7
B.8
C.9
D.表达式错误
第15题:
若有int x=10;char c='d';则表达式a+c的值的类型是()。
A.char
B.int
C.float
D.byte
第16题:
若有byte b=6;short s=20;则表达式b+s的值的类型是()。
A.byte
B.int
C.short
D.char
第17题:
若有说明:char w; int x; float y; double z; 则表达式w*x+y-z的值的数据类型是()。
第18题:
若有charc=’8’;shorts=20;则表达式c+s的值的类型是()
第19题:
有如下定义:floata=3.14f;byteb=3;则表达式a+b的值的数据类型为()
第20题:
若有以下说明,inta[12]={1,2,3,4,5,6,7,8,9,10,11,12};charc=’a’,d,g;则数值为4的表达式是()。
第21题:
int
byte
char
float
第22题:
7
8
9
表达式错误
第23题:
char
int
double
float
第24题:
byte
int
short
char