byte
int
short
char
第1题:
A、3
B、4
C、5
D、6
第2题:
switch语句中表达式(expression)的值不允许用的类型是
A.byte
B.int
C.boolean
D.char
第3题:
若有定义语句:“int a=10;double b=3.14;”,则表达式A+a+b值的类型是( )。
A.char
B.int
C.double
D.float
第4题:
A.5
B.1
C.6
D.0
第5题:
有如下定义:float a=3.14f;byte b=3;则表达式a+b的值的数据类型为( )。
A.byte
B.int
C.char
D.float
第6题:
若有byte b=6;char c='c';则表达式b+c的值的类型是()。
A.int
B.byte
C.char
D.float
第7题:
若有char c='8';short s=20;则表达式c+s的值的类型是()。
A.char
B.short
C.int
D.byte
第8题:
试题14
若有定义语句:int a=10; double b=3.14; , 则表达式‘A’+a +b值的类型是()
A.char
B.int
C.double
D.float
第9题:
若有byteb=6;shorts=20;则表达式b+s的值的类型是()
第10题:
若有floatf=2.6f;shorts=20;则表达式f+s的值的类型是()
第11题:
char
int
float
byte
第12题:
char
int
double
float
第13题:
若有以下定义char a;int b;float c;double d;则表达式a*b+d-c值的类型为
第14题:
若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。
A. float
B.int
C.char
D.double
第15题:
A.7
B.8
C.6
D.9
第16题:
若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。
A.-20
B.-l0
C.0
D.10
第17题:
若有int x=10;char c='d';则表达式a+c的值的类型是()。
A.char
B.int
C.float
D.byte
第18题:
若有byte b=6;short s=20;则表达式b+s的值的类型是()。
A.byte
B.int
C.short
D.char
第19题:
若有float f=2.6f;short s=20;则表达式f+s的值的类型是()。
A.float
B.short
C.int
D.byte
第20题:
若有charc=’8’;shorts=20;则表达式c+s的值的类型是()
第21题:
有如下定义:floata=3.14f;byteb=3;则表达式a+b的值的数据类型为()
第22题:
int
byte
char
float
第23题:
byte
int
char
float