# Quiz Discussion

The expression 2**2**3 is evaluates as: (2**2)**3.

Course Name: Python

• 1]

True

• 2]

False

##### 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 code snippet?

['hello', 'morning'][bool('')]

• 1]

morning

• 2]

hello

• 3]

no output

• 4]

error

##### Solution
2
Discuss

What will be the output of the following Python expression?

bin(29)

• 1]

‘0b11011’

• 2]

‘0b11111’

• 3]

‘0b11101’

• 4]

‘0b10111’

##### Solution
3
Discuss

Which among the following list of operators has the highest precedence?

 +, -, **, %, /, <<, >>, |

• 1]

%

• 2]

|

• 3]

**

• 4]

<<, >>

##### Solution
4
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]

• 2]

good

• 3]

hello

• 4]

error

##### Solution
5
Discuss

What will be the output of the following Python expression?

int(1011)?

• 1]

1101

• 2]

13

• 3]

11

• 4]

1011

##### Solution
6
Discuss

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

• 1]

int(‘1111’,2)

• 2]

int(1111,2)

• 3]

int(‘1111’,10)

• 4]

int(1111,10)

##### Solution
7
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
8
Discuss

What will be the value of the following Python expression?

4+2**5//10

• 1]

0

• 2]

77

• 3]

7

• 4]

3

##### Solution
9
Discuss

What will be the value of the following Python expression?

 bin(10-2)+bin(12^4)

• 1]

0b10000b1000

• 2]

0b1000b1000

• 3]

0b10001000

• 4]

0b10000

##### Solution
10
Discuss

What will be the value of the following Python expression?

float(4+int(2.39)%2)

• 1]

4

• 2]

4.0

• 3]

5

• 4]

5.0

# Quiz