第1题:
表达式isinstance(4j,(int,float,complex))的值为__________。
第2题:
表达式type(3)==int的值为__________。
第3题:
表达式float(25)/4 int(14.4)%5的值分别为【 】和【 】。
第4题:
若有以下定义char a;int b;float c;double d;则表达式a*b+d-c值的类型为
第5题:
若有定义:int x=1,y=2;float a=3.7,b=2.1;则(x+y)%2+(int)a/(int)b表达式的值为( )。
第6题:
设变量a是int型,f是float型,i是double型,则表达式10+′a′+i*f值的数据类型为A.int B.float C.double D.不确定
第7题:
switch(表达式)语句中的“表达式”,允许的类型是()。
第8题:
假定变量x,f和d的类型分别为int 、float和double。下面表达式的值总是为1的是()
第9题:
第10题:
第11题:
第12题:
x==(int)(float)x
d==(double)(float)d
f==(float)(double)f
(f+d)-f==d
第13题:
表达式type(3)in(int,float,complex)的值为__________。
第14题:
表达式type(3+4j)in(int,float,complex)的值为____________。
第15题:
设有如下变量定义: double a=3.500000;float b=2.5; int m=2,n=3; 则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )
A.2.5
B.3.5
C.4.5
D.表达式不正确
第16题:
若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。
A. float
B.int
C.char
D.double
第17题:
若有定义:int a=4, b=5;float x=3.4,y=2.1;,则下列表达式的值为( )。 (float) (a+b)/2+(int)x%(int)y
A.5.5
B.55
C.5.5
D.55
第18题:
若有以下定义:
char a;int b;
float c;double d;
则表达式a*b+d-c值的类型为( )。
A.A. float
B.int
C.char
D.double
第19题:
变量x、f、d分别为int,float,double类型的,除了f和d不能等于无穷大和NAN以外值可以任意选取,下面表达式为真的是()
第20题:
表达式isinstance(’4’,(int,float,complex))的值为()。
第21题:
第22题:
第23题:
第24题:
x==(int)(double)x
x==(int)(float)x
d==(double)(float)d
(f+d)-f==d