66). What will be the output of the following Python code snippet if x=1?
x<<2

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

Show Answer

67). What will be the output of the following Python expression?
bin(29)

[A]‘0b10111’
[B]‘0b11101’
[C]‘0b11111’
[D]‘0b11011’

Show Answer

68). What will be the value of x in the following Python expression, if the result of that expression is 2?
x>>2

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

Show Answer

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

[A]1011
[B]11
[C]13
[D]1101

Show Answer

70). To find the decimal value of 1111, that is 15, we can use the function:
int(1011)?

[A]int(1111,10)
[B]int(‘1111’,10)
[C]int(1111,2)
[D]int(‘1111’,2)

Show Answer

71). What will be the output of the following Python expression if x=15 and y=12?
x & y

[A]b1101
[B]0b1101
[C]12
[D]1101

Show Answer

72). Which of the following expressions results in an error?
x & y

[A]int(1011)
[B]int(‘1011’,23)
[C]int(1011,2)
[D]int(‘1011’)

Show Answer

74). What is the value of the following Python expression?
bin(0x8)

[A]‘0bx1000’
[B]8
[C]1000
[D]‘0b1000’

Show Answer

75). What will be the output of the following Python expression?
0x35 | 0x75

[A]115
[B]116
[C]117
[D]118

Show Answer