# Quiz Discussion

What will be the output of the following Python expression?

bin(29)

Course Name: Python

• 1]

‘0b11011’

• 2]

‘0b11111’

• 3]

‘0b11101’

• 4]

‘0b10111’

##### Solution
No Solution Present Yet

#### Top 5 Similar Quiz - Based On AI&ML

Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api

# Quiz
1
Discuss

What will be the output of the following Python expression?

~100?

• 1]

-100

• 2]

100

• 3]

-101

• 4]

101

##### Solution
2
Discuss

What will be the output of the following Python code?

if (9 < 0) and (0 < -9):
print("hello")
elif (9 > 0) or False:
print("good")
else:
print("bad")

• 1]

bad

• 2]

good

• 3]

hello

• 4]

error

##### Solution
3
Discuss

What will be the output of the following Python expression?

int(1011)?

• 1]

1101

• 2]

13

• 3]

11

• 4]

1011

##### Solution
4
Discuss

What will be the output of the following Python expression?

24//6%3, 24//4//2

• 1]

(3,1)

• 2]

(1,0)

• 3]

(0,3)

• 4]

(1,3)

##### Solution
5
Discuss

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

##### Solution
6
Discuss

Which of the following represents the bitwise XOR operator?

• 1]

!

• 2]

|

• 3]

^

• 4]

&

##### Solution
7
Discuss

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

##### Solution
8
Discuss

What will be the output of the following Python code snippet?

not(3>4)
not(1&1)

• 1]
True
True
• 2]
True
False
• 3]
False
True
• 4]
False
False
##### Solution
9
Discuss

What is the value of the following Python expression?

bin(0x8)

• 1]

‘0b1000’

• 2]

1000

• 3]

8

• 4]

‘0bx1000’

##### Solution
10
Discuss

What will be the output of the following Python code?

['f', 't'][bool('spam')]

• 1]

Error

• 2]

No output

• 3]

f

• 4]

t

# Quiz