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

进制转换与位运算(一)

  1. 在 C++ 程序中,判断 aa 等于 00bb 等于 00cc 等于 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) }}
  • (¬AB)(CDA)(\neg A\land B)\lor(C\land D\lor A)
  • ¬(((AB)C)D)\neg (((A\land B)\lor C)\land D)
  • A(BCD)DA\land (B\lor C\lor D)\lor D
  • (A(DC))B(A\land (D\lor C))\land B
  1. 在 C++ 程序中,表达式 200 | 10 的值为() {{ select(3) }}
  • 2020
  • 11
  • 220220
  • 202202
  1. 以下逻辑表达式的值恒为真的是() {{ select(4) }}
  • P(¬PQ)(¬P¬Q)P\lor (\neg P\land Q)\lor (\neg P\land \neg Q)
  • Q(¬PQ)(P¬Q)Q\lor(\neg P\land Q)\lor(P\land \neg Q)
  • PQ(P¬Q)(¬PQ)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) }}
  • (AB)¬A(A \lor B) \land \neg A
  • (AB)¬B(A \lor B) \land \neg B
  • (AB)(¬AB)(A \land B) \lor (\neg A \land B)
  • (AB)¬AB(A \lor B) \land \neg A \land B
  1. 二进制数 00101100001011000101010101010101 的异或结果为( )。 {{ 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\ 011101 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) }}
  • (yz)xz(y\lor z)\land x\land z
  • x(zy)zx\land (z\lor y) \land z
  • (xy)z(x\land y) \land z
  • (xy)(zx)(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