【单选题】【消耗次数:1】
若A是数值类型,则逻辑表达式(a==1)||(a!=1)的值是。
1
0
2
不知道a的值,不能确定
参考答案:
复制
纠错
相关题目
【单选题】 若有定义:inta;且表达式!a的值为0,则表达式()的值为1。
①  a!=0
②  a==0
③  a=0
④  !(a0||a0)
【单选题】 表达式(12==0) && (1/0 < 1)的值为( ) 。
①  true
②  false
③  0
④  运行时抛出异常
【单选题】 若已定义x和y为double类型,则表达式x=1,y=x+3/2的值是
①  1
②  2
③  2.0
④  2.5
【单选题】 表达式6 + 10 Mod 4*2 + 1 的值是()。
①  11
②  1
③  3
【单选题】 表达式6 + 10 Mod 4*2 + 1 的值是()。
①  9
②  11
③  1
④  3
【单选题】 若有定义:int a=3,b=2,c=1;并有表达式:①a%b,②a>b>c,③b&&c+1,④c+=1,则表达式值相等的是()。
①  ①和②
②  ②和③
③  ①和③
④  ③和④
【单选题】 若有定义:inta=3,b=2,c=1,k;则表达式k=ac的值是()。
①  0
②  1
③  2
④  3
【单选题】 若有定义:inta[3][4];则表达式a[2][1]-a的值为()。
①  7
②  8
③  9
④  10
【单选题】 若有定义:int a[3][4];则表达式&a[2][1]-a的值为()。
①  7
②  8
③  9
④  10
【单选题】 若w=1,x=2,y=3,z=4,则表达式w<x?w:y<z?y:z的值是()
①  4
②  3
③  2
④  1
随机题目
【填空题】 《论十大关系》提出的繁荣社会主义科学文化建设方针是百花齐放、[填空1]。
【填空题】 新民主主义社会是一个[填空1]性质的社会。
【填空题】 1942年的延安整风运动提出反对了[填空1] 、宗派主义和党八股。
【简答题】 中国的先进分子为什么和怎样选择了马克思主义?
【单选题】 6.Thehouseisbuiltof_______.
①  stones
②  stone
③  a stone
④  any stones
【单选题】 2.Themansaidhewas____employeeof____gascompanyandcametoread_____meter.
①  a; a; a
②  the; the; the
③  a; a; the
④  an; the; the
【单选题】 3. ____teacher came in and there was _____ book in his hand.
①  The; a
②  A; the
③  A; a
④  The; the
【单选题】 3.Iveread_______sportsnewsabouttheF1racetoday.
①  two
②  pieces
③  two pieces
④  two pieces of
【单选题】 10.Aglassismadeof_______.
①  glasses
②  a glass
③  glass
④  the glass
【填空题】 Direction: Fill in the blanks with the wordsor phrasesgiven below. Change the form if necessary.[tender; suffer; in anxiety; crave; choke; plague; with a sigh; dull; nonsense; threshold]6. He was carried away by the[填空1].