# What will be the value of x in the following Python expression, if the result of that expression is 2 x>>2

1.  8

2.  4

3.  2

4.  1

4

8

Explanation :
No Explanation available for this question

# What will be the output of the following Python expression int(1011)?

1.  1011

2.  11

3.  13

4.  1101

4

1011

Explanation :
No Explanation available for this question

# To find the decimal value of 1111, that is 15, we can use the function:

1.  int(1111,10)

2.  int(‘1111’,10)

3.  int(1111,2)

4.  int(‘1111’,2)

4

int(‘1111’,2)

Explanation :
No Explanation available for this question

# What will be the output of the following Python expression if x=15 and y=12 x & y

1.  b1101

2.  0b1101

3.  12

4.  1101

4

12

Explanation :
No Explanation available for this question

# Which of the following expressions results in an error

1.  int(1011)

2.  int(‘1011’,23)

3.  int(1011,2)

4.  int(‘1011’)

4

int(1011,2)

Explanation :
No Explanation available for this question

# Which of the following represents the bitwise XOR operator

1.  &

2.  ^

3.  |

4.  !

4

^

Explanation :
No Explanation available for this question

# What is the value of the following Python expression bin(0x8)

1.  ‘0bx1000’

2.  8

3.  1000

4.  ‘0b1000’

4

‘0b1000’

Explanation :
No Explanation available for this question

# What will be the output of the following Python expression 0x35 | 0x75

1.  115

2.  116

3.  117

4.  118

4

117

Explanation :
No Explanation available for this question

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

1.  True

2.  False

2

False

Explanation :
No Explanation available for this question

1.  001101010

2.  110010101

3.  001101011

4.  110010100

4