# Quiz Discussion

Which of the following represents the bitwise XOR operator?

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 can be used to multiply a given number ‘a’ by 4?

• 1]

a>>4

• 2]

a>>2

• 3]

a<<4

• 4]

a<<2

##### Solution
2
Discuss

Which of the following expressions is an example of type conversion?

• 1]

3 + 7

• 2]

5.0 + 3

• 3]

5.3 + 6.3

• 4]

4.0 + float(3)

##### Solution
3
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
4
Discuss

What will be the output of the following Python expression?

int(1011)?

• 1]

1101

• 2]

13

• 3]

11

• 4]

1011

##### Solution
5
Discuss

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

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

• 1]

%

• 2]

|

• 3]

**

• 4]

<<, >>

##### Solution
6
Discuss

What is the two’s complement of -44?

• 1]

10110011

• 2]

11101011

• 3]

11010100

• 4]

1011011

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

What is the value of the following Python expression?

bin(0x8)

• 1]

‘0b1000’

• 2]

1000

• 3]

8

• 4]

‘0bx1000’

##### Solution
9
Discuss

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

not(10<20) and not(10>30)

• 1]

Error

• 2]

No output

• 3]

True

• 4]

False

##### Solution
10
Discuss

What will be the value of X in the following Python expression?

X = 2+9*((3*12)-8)/10

• 1]

27.2

• 2]

28.4

• 3]

30.8

• 4]

30.0

# Quiz