76). It is not possible for the two’s complement value to be equal to the original value in any case.

[A]True
[B]False
[C]none
[D]none of the mentioned

Show Answer

77). The one’s complement of 110010101 is:

[A]001101010
[B]110010101
[C]001101011
[D]110010100

Show Answer

78). Bitwise _________ gives 1 if either of the bits is 1 and 0 when both of the bits are 1.

[A]OR
[B]AND
[C]XOR
[D]NOT

Show Answer

79). What will be the output of the following Python expression?
4^12

[A]2
[B]4
[C]8
[D]12

Show Answer

80). Any odd number on being AND-ed with ________ always gives 1. Hint: Any even number on being AND-ed with this value always gives 0.
4^12

[A]10
[B]2
[C]1
[D]0

Show Answer

81). What will be the value of the following Python expression?
 bin(10-2)+bin(12^4)

[A]0b10000
[B]0b10001000
[C]0b1000b1000
[D]0b10000b1000

Show Answer

82). Which of the following expressions can be used to multiply a given number ‘a’ by 4?
 bin(10-2)+bin(12^4)

[A]a<<2
[B]a<<4
[C]a>>2
[D]a>>4

Show Answer

83). What will be the output of the following Python code if a=10 and b =20?
a=10
b=20
a=a^b
b=a^b
a=a^b
print(a,b)

[A]10 20
[B]10 10
[C]20 10
[D]20 20

Show Answer

84). What is the two’s complement of -44?
a=10
b=20
a=a^b
b=a^b
a=a^b
print(a,b)

[A]1011011
[B]11010100
[C]11101011
[D]10110011

Show Answer

85). What will be the output of the following Python expression?
~100?

[A]101
[B]-101
[C]100
[D]-100

Show Answer