#K0001. 进制转换(一)

进制转换(一)

  1. 在 C++ 语言中,表达式 23 | 2 ^ 5 的值是( )

{{ select(1) }}

  • 1818
  • 11
  • 2323
  • 3232
  1. 在 C++ 语言中,判断 aa 等于 00 或 bb 等于 00 或 cc 等于 00 的正确的条件表达式是( )。

{{ select(2) }}

  • !((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 = B = True,C = D = False,以下逻辑运算表达式值为假的有()

提示:¬\lnot 是非的意思,∧\land 是逻辑与,∨\lor 是逻辑或。

{{ select(3) }}

  • (¬A∧B)∨(C∧D∨A)(\lnot A \land B)\lor (C\land D\lor A)
  • ¬(((A∧B)∨C)∧D)\lnot (((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(4) }}

  • 2020
  • 11
  • 220220
  • 202202
  1. 以下逻辑表达式的值恒为真的是()。

{{ select(5) }}

  • P∨(¬P∧Q)∨(¬P∧¬Q)P\lor (\lnot P\land Q)\lor (\lnot P\land \lnot Q)
  • Q∨(¬P∧Q)∨(P∧¬Q)Q\lor (\lnot P\land Q)\lor (P\land \lnot Q)
  • P∨Q∨(P∧¬Q)∨(¬P∧Q)P\lor Q\lor (P\land \lnot Q)\lor (\lnot P\land Q)
  • $P\lor \lnot Q\lor (P\land \lnot Q)\lor (\lnot P\land \lnot Q)$
  1. 一个字长为 88 位的整数的补码是 1111100111111001,则它的原码是()

{{ select(6) }}

  • 0000011100000111
  • 0111101101111011
  • 1111100111111001
  • 1000011110000111
  1. 逻辑表达式( )的值与变量 AA 的真假无关。

{{ select(7) }}

  • (A∨B)∧¬A(A\lor B) \land \lnot A
  • (A∨B)∧¬B(A\lor B) \land \lnot B
  • (A∧B)∨(¬A∧B)(A\land B) \lor (\lnot A\land B)
  • (A∨B)∧¬A∧B(A\lor B) \land \lnot A\land B
  1. 二进制数 0010110000101100 和 0101010101010101 异或的结果是()

{{ select(8) }}

  • 0010100000101000
  • 0111100101111001
  • 0100010001000100
  • 0011100000111000
  1. 在 88 位二进制补码中,1010101110101011 表示的数是十进制下的()

{{ select(9) }}

  • 4343
  • −85-85
  • −43-43
  • −84-84
  1. 二进制数 11 1011 1001 011111\ 1011\ 1001\ 0111 和 01 0110 1110 101101\ 0110\ 1110\ 1011 进行按位与运算的结果是()。

{{ select(10) }}

  • 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(11) }}

  • (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\land x)
  1. 十六进制数 9A9A 在( )进制下是 232232

{{ select(12) }}

  • 四
  • 八
  • 十
  • 十二
  1. 二进制数 11.0111.01 在十进制下是( )。

{{ select(13) }}

  • 3.253.25
  • 4.1254.125
  • 6.256.25
  • 11.12511.125
  1. 在十六进制表示法中,字母 AA 相当于十进制中的().

{{ select(14) }}

  • 99
  • 1010
  • 1515
  • 1616