# Quiz Discussion

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

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

Course Name: Python

• 1]

%

• 2]

|

• 3]

**

• 4]

<<, >>

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

Which of the following expressions results in an error?

• 1]

int(‘1011’)

• 2]

int(1011,2)

• 3]

int(‘1011’,23)

• 4]

int(1011)

##### Solution
2
Discuss

What will be the output of the following Python code?

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

• 1]

Error

• 2]

No output

• 3]

f

• 4]

t

##### Solution
3
Discuss

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

• 1]

True

• 2]

False

##### Solution
4
Discuss

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

• 1]

a>>4

• 2]

a>>2

• 3]

a<<4

• 4]

a<<2

##### Solution
5
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
6
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
7
Discuss

What will be the output of the following Python expression?

0x35 | 0x75

• 1]

118

• 2]

117

• 3]

119

• 4]

116

##### Solution
8
Discuss

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

bool(‘False’)
bool()

• 1]
True
True
• 2]

False
True

• 3]

True
False

• 4]

False
False

##### Solution
9
Discuss

What is the two’s complement of -44?

• 1]

10110011

• 2]

11101011

• 3]

11010100

• 4]

1011011

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