【单选题】【消耗次数:1】
已知:int b(5),下列表达式中,正确的是()。
b=a
++(b-1)
b%2.5
b=3,b+1,b+2
参考答案:
复制
纠错
相关题目
【单选题】 若有定义:int a=3,b=2,c=1;并有表达式:①a%b,②a>b>c,③b&&c+1,④c+=1,则表达式值相等的是()。
①  ①和②
②  ②和③
③  ①和③
④  ③和④
【单选题】 已知inta=2,b=5;则表达式a+5>b+3的值是
①  0
②  1
③  不确定
④  表达式错误
【单选题】 设int a =-12,b =5;则条件表达式a <b ?a+2:b 的值为()
①  1
②  0
③  -10
④  5
【单选题】 如果int a=3,b=4;则条件表达式“a<b? a:b”的值是()。
①  3
②  4
③  0
④  1
【单选题】 若已定义int a=3,b=3,x=1,y=2;表达式(a=y>x)&&(x=b>a)的值是()。
①  6
②  1
③  9
④  0
【单选题】 下列表达式的结果是()a=3*5,a=b=3*2
①  15
②  5
③  6
④  3
【单选题】 若有a=2,b=3,则表达式++a==b的值为()
①  0
②  1
③  6
④  3
【单选题】 设a=1,b=2,c=3,d=4,则表达式:a>b?a:c>d?a:d的结果为()
①  4
②  3
③  2
④  1
【单选题】 若有定义:inta=5,b=2;则表达式b=(a!=5)的值为()。
①  5
②  0
③  3
④  2
【单选题】 设int a =5,b =7;则条件表达式8<4?a :b 的值为()
①  0
②  1
③  5
④  7
随机题目
【多选题】 下面说法符合实际的是?
①  边塞是具有刚健特色,表现出来的气象令人振奋。
②  高适、岑参是边塞诗人的代表人物。
③  杜甫《北征》也是边塞诗歌。
④  李白从没有写过边塞诗。
【单选题】 A computer can only do____ you have instructed it to do.
①  how
②  after
③  what
④  when
【单选题】 The thing that ____ is not whether you fail or not, but whether you try or not.
①  matters
②  cares
③  considers
④  minds
【单选题】 ____ she was invited to the hall made her very happy.
①  That
②  If
③  When
④  Because
【单选题】 It ____ to the hospital yesterday, but I forgot all about it.
①  had to go
②  should have gone
③  ought to go
④  should go
【单选题】 He was frightened by ____of lightning.
①  a bowl
②  a piece
③  a flash
④  a set
【单选题】 Mr. John was busy, ____ he could not come.
①  but
②  therefore
③  and
④  nor
【单选题】 He is so shy that he ____ speaks in the public.
①  often
②  frequently
③  seldom
④  sometimes
【单选题】 Thanks to Mr. Wang, he kept____ us to remember the important things.?
①  to ask ?
②  asking ?
③  to be asked ?
④  not asking?
【单选题】 They will inform him ____ any progress they make in the experiment.
①  about
②  on
③  of
④  with