0 #31. 进制转换与位运算(一)

进制转换与位运算(一)

  1. 在 C++ 程序中,判断 aa 等于 00 或 bb 等于 00 或 cc 等于 00 的正确的条件表达式是( ) {{ select(1) }}
  • !((a != 0)||(b!=0)|| (c != 0))
  • !((a != 0) &&(b!=0)&& (c != 0))
  • !(a == 0 && b == 0)|| (c != 0)
  • (a = 0) && (b = 0) && (c = 0)
  1. 设 A = true, B = false, C = true, D = false,以下逻辑运算表达式值为假的是( )。 {{ select(2) }}
  • (¬A∧B)∨(C∧D∨A)(\neg A\land B)\lor(C\land D\lor A)
  • ¬(((A∧B)∨C)∧D)\neg (((A\land B)\lor C)\land D)
  • A∧(B∨C∨D)∨DA\land (B\lor C\lor D)\lor D
  • (A∧(D∨C))∧B(A\land (D\lor C))\land B
  1. 在 C++ 程序中,表达式 200 | 10 的值为() {{ select(3) }}
  • 2020
  • 11
  • 220220
  • 202202
  1. 以下逻辑表达式的值恒为真的是() {{ select(4) }}
  • P∨(¬P∧Q)∨(¬P∧¬Q)P\lor (\neg P\land Q)\lor (\neg P\land \neg Q)
  • Q∨(¬P∧Q)∨(P∧¬Q)Q\lor(\neg P\land Q)\lor(P\land \neg Q)
  • P∨Q∨(P∧¬Q)∨(¬P∧Q)P\lor Q\lor(P\land \neg Q)\lor (\neg P\land Q)
  • $P\lor \neg Q\lor (P\land \neg Q)\lor (\neg P\land \neg Q)$
  1. 一个字长为 88 位的整数的补码是 1111100111111001,则它的原码是( )。 {{ select(5) }}
  • 0000011100000111
  • 0111100101111001
  • 1111100111111001
  • 1000011110000111
  1. 逻辑表达式()的值与变量 A 的真假无关。 {{ select(6) }}
  • (A∨B)∧¬A(A \lor B) \land \neg A
  • (A∨B)∧¬B(A \lor B) \land \neg B
  • (A∧B)∨(¬A∧B)(A \land B) \lor (\neg A \land B)
  • (A∨B)∧¬A∧B(A \lor B) \land \neg A \land B
  1. 二进制数 0010110000101100 和 0101010101010101 的异或结果为( )。 {{ select(7) }}
  • 0010100000101000
  • 0111100101111001
  • 0100010001000100
  • 0011100000111000
  1. 在 88 位二进制补码中,1010101110101011 表示的数是十进制下的( )。 {{ select(8) }}
  • 4343
  • −85-85
  • −43-43
  • −84-84
  1. 二进制数 11 1011 1001 011111\ 1011\ 1001\ 0111 和 01 0110 1110 101101\ 0110\ 1110\ 1011 进行按位与运算的结果是()。 {{ select(9) }}
  • 01 0010 1000 101101\ 0010\ 1000\ 1011
  • 01 0010 1001 001101\ 0010\ 1001\ 0011
  • 01 0010 1000 000101\ 0010\ 1000\ 0001
  • 01 0010 1000 001101\ 0010\ 1000\ 0011
  1. 设 x = true, y=true, z=false,以下逻辑运算表达式值为真的是( )。 {{ select(10) }}
  • (y∨z)∧x∧z(y\lor z)\land x\land z
  • x∧(z∨y)∧zx\land (z\lor y) \land z
  • (x∧y)∧z(x\land y) \land z
  • (x∧y)∨(z∨x)(x\land y)\lor(z\lor x)
  1. 十六进制数 9A9A 在( )进制下是 232232。 {{ select(11) }}
  • 四
  • 八
  • 十
  • 十二
  1. 二进制数 11.0111.01 在十进制下是( )。 {{ select(12) }}
  • 3.253.25
  • 4.1254.125
  • 6.256.25
  • 11.12511.125
  1. 在十六进制表示法中,字母 A 相当于十进制中的( )。 {{ select(13) }}
  • 99
  • 1010
  • 1515
  • 1616