网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
若有定义语句 int b=2; 则表达式(b<<2)/(3‖b)的值是(  )。
A

4

B

8

C

0

D

2


参考答案

参考解析
解析:
b=2,转为二进制即为0010,首先将b左移两位,变成1000,即十进制的8,3‖b的值为真即为1,最后计算8/1=8。答案选择B选项。
更多 “单选题若有定义语句 int b=2; 则表达式(b2)/(3‖b)的值是(  )。A 4B 8C 0D 2” 相关考题
考题 若有定义语句: int x=10; ,则表达式 x-=x+x 的值为A)-20B)-10C)0D)10

考题 若有定义语句: int a=5; ,则表达式: a++ 的值是 【 6 】 。

考题 若有定义语句:inta=3,b=2,c=1;,则表达式b<b?a:b的值是______。

考题 ( 6 )若有定义语句: int a=3,b=2,c=1;, 则表达式 ab?a:b 的值是 ___________ 。

考题 若有定义语句int b=2;,则表达式(b 若有定义语句int b=2;,则表达式(bA.4B.8C.0D.2

考题 若有定义语句:int x=3,y=2,z=1;则表达式x <y?x:y的值是______。

考题 若有以下定义和语句: int a[]={1,2,3,4,5,6,7,8,9,10},*p=a; 则值为3的表达式是______。A.p+=2,*(p++)B.p+=2,*++pC.p+=3,*p++D.p+=2,++*p

考题 若有定义intx=3,y=2和floata=2.5,b=3.5,则表达式:(x+y)%2+(int)a/(int)b的值是()。A.0B.2C.1.5D.1

考题 若有定义语句:“int a=10;double b=3.14;”,则表达式A+a+b值的类型是( )。A.charB.intC.doubleD.float

考题 若有定义语句int b=2;,则表达式(b2)/(3||b)的值是( )。A.4B.8C.0D.2

考题 若有定义:int x=1,y=2;float a=3.7,b=2.1;则(x+y)%2+(int)a/(int)b表达式的值为( )。

考题 若有定义“int a=5,b=7;”,则表达式a%-(b%2) 运算后,a的值为( )。A.0B.1C.11S 若有定义“int a=5,b=7;”,则表达式a%-(b%2) 运算后,a的值为( )。A.0B.1C.11D.3

考题 若有定义:int a=2,b=3;floatx=3.5,y=2.5;则表达式(float)(a+b)/2+(int)x%(int)y的值是() A.3.5B.3.0C.2.5D.2.0

考题 若有定义:int a=1,b=2,c=3;则语句++a||++b运行后b的值为() A.1B.0C.2D.3

考题 若有如下定义: int x=3,y=2,Z; 则表达式Z=X/y*3.0的值是( )。A.2B.2C.3D.3

考题 若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。 A.-20B.-l0C.0 若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。A.-20B.-l0C.0D.10

考题 若有定义语句:int x=3,y=2,z=1;,表达式:2*=(x>y?++x:y+)的值是A.4B.0C.1D.3

考题 若有定义语句:int a=3,b=2,c=1;,则表达式a<b?a:b的值是【 】。

考题 若有定义:inta[3][3];则表达式a[2][1]-a的值为()A、7B、8C、6D、9

考题 若有定义:int a=6,b=2;charc1=’a’,c2=’b’;则表达式a+b%5+c2-c1的值是()A、7B、8C、9D、表达式错误

考题 若有定义:int i,j;则表达式(i=2,j=5,i++,i+j++)的值是()A、7B、8C、9D、10

考题 若有定义:int a,b;则表达式(a=2,b=5,a*2,b++,a+b)的值是()A、7B、8C、9D、10

考题 若有定义:int a=2,b=3;floatx=3.5,y=2.5;则表达式(float)(a+b)/2+(int)x%(int)y的值是()A、3.5B、3.0C、2.5D、2.0

考题 单选题若有定义:int a=2,b=3;floatx=3.5,y=2.5;则表达式(float)(a+b)/2+(int)x%(int)y的值是()A 3.5B 3.0C 2.5D 2.0

考题 单选题若有定义语句“int i=2,j=3;”,则表达式i/j的结果是(  )。A 0B 0.7C 0.66667D 0.66666667

考题 单选题若有定义:int a=1,b=2,c=3;则语句++a||++b++c;运行后b的值为()A 1B 0C 2D 3

考题 单选题若有定义语句:int a=10;double b=3.14;,则表达式'A'+a+b值的类型是(  )。A charB intC doubleD float