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

1.  OR

2.  AND

3.  XOR

4.  NOT

4

XOR

Explanation :
No Explanation available for this question

# What will be the output of the following Python expression 4^12

1.  2

2.  4

3.  8

4.  12

4

8

Explanation :
No Explanation available for this question

# 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.

1.  10

2.  2

3.  1

4.  0

4

1

Explanation :
No Explanation available for this question

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

1.  0b10000

2.  0b10001000

3.  0b1000b1000

4.  0b10000b1000

4

0b10000b1000

Explanation :
No Explanation available for this question

# Which of the following expressions can be used to multiply a given number ‘a’ by 4

1.  a

2.  a

3.  a>>2

4.  a>>4

4

a<<2

Explanation :
No Explanation available for this question

# 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)

1.  10 20

2.  10 10

3.  20 10

4.  20 20

4

20 10

Explanation :
No Explanation available for this question

# What is the two’s complement of -44

1.  1011011

2.  11010100

3.  11101011

4.  10110011

4

11010100

Explanation :
No Explanation available for this question

# What will be the output of the following Python expression ~100?

1.  101

2.  -101

3.  100

4.  -100

4

-101

Explanation :
No Explanation available for this question

# What will be the output of the following Python code snippet bool(‘False’) bool()

1.   True True

2.   False True

3.  False False

4.  True False

4
```True
False```

Explanation :
No Explanation available for this question

1.  error

2.  no output

3.  hello

4.  morning

4