【单选题】【消耗次数:1】
假设所有变量均为整型,则表达式(x=2, y=5,y++, x+y)的值是( )。
7
8
6
2
参考答案:
复制
纠错
相关题目
【单选题】 若有定义:inta=7;floatx=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是()。
①  2.75
②  0.0
③  3.5
④  2.5
【单选题】 若有定义:int m=7;float x=2.5, y=4.7;则表达式x+m%3*(int)(x+y)%2/4的值是( )。
①  2.500000
②  2.750000
③  3.500000
④  0.000000
【单选题】 若x=5,y=10,则计算y*=++x表达式后,y的值是?
①  40
②  50
③  55
④  60
【单选题】 假设所有变量均为整型,则表达式(a=2,b=5,b++,a+b)的值是( )。
①  7
②  8
③  6
④  2
【单选题】 若x=5,y=10,则计算y*=++x表达式后,y的值为( )。
①  50
②  40
③  60
④  55
【单选题】 若x=5,y=10,则计算y*=++x表达式后,y的值为( )。
①  50
②  40
③  60
④  55
【单选题】 设 x = 1 , y = 2 , z = 3,则表达式 y+=z--/++x 的值是( )。
①  3
②  3. 5
③  4
④  5
【单选题】 若w=1,x=2,y=3,z=4,则表达式w<x?w:y<z?y:z的值是()
①  4
②  3
③  2
④  1
【单选题】 若已定义x和y为double类型,则表达式x=1,y=x+3/2的值是
①  1
②  2
③  2.0
④  2.5
【单选题】 若已定义int a=3,b=3,x=1,y=2;表达式(a=y>x)&&(x=b>a)的值是()。
①  6
②  1
③  9
④  0
随机题目
【单选题】 Let me help you with the ( ).
①  baggage
②  thing
③  bag
④  package
【单选题】 Room Service. May I come in? what is the meaning of the phrase “room service”?
①  洗衣服务
②  客房清洁服务
③  送餐服务
④  客房服务
【单选题】 Waiters and waitress, cab drivers, hotel bellboys or doormen, barbers and hair dress and all sorts of other such people must ( )
①  tipping
②  tipped
③  tip
④  be tipped
【单选题】 An ( ) provides hotel rooms with fully-equipped kitchens.
①  inn
②  business
③  casino
④  apartment hotel
【单选题】 The credit cards permit people to borrow-to-buy things they want even when they ( ) have enough money to pay the full price.
①  do not
②  do
③  does
④  does not
【单选题】 How about Mao-tai that is best Chinese ( ).
①  wine
②  liquo
③  alcohol
④  spirit
【单选题】 We have a single room , double room and ( ). which kind do you prefer?
①  suite
②  suit
③  suits
④  suites
【单选题】 I am enclosing a banker’s draft for 80$ as a deposit . Could you please ( ) the receipt?
①  knowledge
②  know
③  acknowledgement
④  acknowledge
【单选题】 A well-organized Front office is ( ) to the smooth running of any hotel.
①  essence
②  essential
③  essentially
④  lessen
【判断题】 Red meat refers to beef, lamb and duck
①  正确
②  错误