表达式8/4*(int)2.5/(int)(1.25*(3.7+2.3))值的数据类型为 _____。
第1题:
表达式int(4**0.5)的值为____________。
第2题:
设有如下变量定义: 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.表达式不正确
第3题:
若有定义: int a=7;float x=2.5,y=4.7;则表达式x+a%3,(int)(x+y)%2/4的值是( )。
A.2.5
B.2.75
C.3.5
D.0
第4题:
设变量a是int型,f是int型,i是double型,则表达式10+a+i*f值的数据类型为A.int B.float C.double D.不确定
第5题:
A.2.5
B.3.5
C.4.5
D.5.5
第6题:
若有定义:int a=2,b=3;float x=3.5,y=2.5;则下面表达式的值为______。(float)(a+b)/2+(int)x%(int)y
A.3.5
B.35
C.3.5
D.35
第7题:
设int b=2;,表达式(b<<2)/(b>>1)的值是 ( )
A.0
B.2
C.4
D.8
第8题:
x为int型,s为float型,x=3,s=2.5。表达式s+x/2的值为()。
第9题:
表达式int(’123’,8)的值为()。
第10题:
若有定义:int a=2,b=3;floatx=3.5,y=2.5;则表达式(float)(a+b)/2+(int)x%(int)y的值是()
第11题:
第12题:
4
3.5
2.5
3
第13题:
若有定义:int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是
A.2.500000
B.2.750000
C.3.500000
D.0.000000
第14题:
设有定义语句:double x=2.5, y=4.7;int a=7;那么表达式x+a%3*(int)(x+ y)%2/4的值为【 】。
第15题:
设x=2.5、a=7、y=4.7,算术表达式x+a%3 * (int)(x+y)%2/4的值为 ( )
A.2.5
B.7
C.4.7
D.2.75
第16题:
设int b=2;, 则表达式(b<<2)/(b>>1)的值是______。
A.0
B.2
C.4
D.8
第17题:
A.3.5
B.3.0
C.2.5
D.2.0
第18题:
A、Int( 4.1)
B、Int( 4.9)
C、Int( 3.9)
D、Int( 5.1)
第19题:
A.4
B.false
C.3
D.true
第20题:
若有定义:int b=7;floata=2.5,c=4.7;则表达式a+(b/2*(int)(a+c)/2)%4的值是()
第21题:
表达式isinstance(’4’,(int,float,complex))的值为()。
第22题:
2.5
3.5
4.5
5.5
第23题:
第24题:
3.5
3.0
2.5
2.0