【单选题】【消耗次数:1】
if条件表达式的值必须是( )类型。
boolean
int
double
参考答案:
复制
纠错
相关题目
【单选题】 表达式(int)((double)9/2)-(9)%2的值是()
①  0
②  3
③  4
④  5
【单选题】 设有说明:char w;int x;float y;double z;则表达式w*x+z-y 值的数据类型为().
①  float
②  char
③  int
④  double
【单选题】 如果int a=3,b=4;则条件表达式“a<b? a:b”的值是()。
①  3
②  4
③  0
④  1
【单选题】 设int a =5,b =7;则条件表达式8<4?a :b 的值为()
①  0
②  1
③  5
④  7
【单选题】 设int a =-12,b =5;则条件表达式a <b ?a+2:b 的值为()
①  1
②  0
③  -10
④  5
【单选题】 若已定义x和y为double类型,则表达式x=1,y=x+3/2的值是
①  1
②  2
③  2.0
④  2.5
【单选题】 表达式25\3mod3.2*int(2.5)的值为()。
①  1
②  2
③  3
④  5
【单选题】 若A是数值类型,则逻辑表达式(a==1)||(a!=1)的值是。
①  1
②  0
③  2
④  不知道a的值,不能确定
【单选题】 设有 int x=11; 则表达式 (x++ * 1/3) 的值是().
①  3
②  4
③  11
④  12
【单选题】 若有定义:int a[3][4];则表达式&a[2][1]-a的值为()。
①  7
②  8
③  9
④  10
随机题目
【单选题】 —I knocked over my coffee cup. It went right over _____ keyboard.—You shouldn’t put drinks near _____ computer.
①  the; /
②  the; a
③  a; /
④  a; a
【单选题】 The letters for the boss __________ on his desk but he didnt read them until three days later.
①  were put
②  was put
③  put
④  has put
【单选题】 Someone called me up in the middle of the night, but they hung up _____ I could answer the phone.
①  as
②  since
③  until
④  before
【单选题】 Is the hotel _____ offered you a job _____ you stayed the first time you arrived here?
①  which; where
②  the one; in which
③  where; that
④  the one that; which
【单选题】 —Have you heard about that fire in the market?—Yes, fortunately no one __________.
①  hurt
②  was hurt
③  has hurt
④  had been hurt
【判断题】 It is not so cold as yesterday.
①  正确
②  错误
【判断题】 It is raining this morning.
①  正确
②  错误
【单选题】 When I get to the top of the building, the sun [填空].
①  shine
②  shines
③  is shining
④  was shining
【判断题】 Amy is more stronger than that girl.
①  正确
②  错误
【单选题】 To answer correctly is more important than ____.
①  that you finish quickly
②  finishing quickly
③  to finish quickly
④  finish quickly