Quiz Discussion

Operators with the same precedence are evaluated in which manner?

Course Name: Python

• 1]

Left to Right

• 2]

Right to Left

• 3]

Can’t say

• 4]

None of the mentioned

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 is the value of the following expression?

2+4.00, 2**4.0

• 1]

(6.0, 16.0)

• 2]

(6.00, 16.00)

• 3]

(6, 16)

• 4]

(6.00, 16.0)

Solution
2
Discuss

Which one of these is floor division?

• 1]

/

• 2]

%

• 3]

//

• 4]

None of the mentioned

Solution
3
Discuss

What are the values of the following Python expressions?

 2**(3**2)
(2**3)**2
2**3**2

• 1]

64, 512, 64

• 2]

512, 512, 512

• 3]

512, 64, 512

• 4]

64, 64, 64

Solution
4
Discuss

The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.

• 1]

True

• 2]

False

Solution
5
Discuss

Evaluate the expression given below if A = 16 and B = 15.

A % B // A

• 1]
0.0
• 2]

0

• 3]

1.0

• 4]

1

Solution
6
Discuss

In order to store values in terms of key and value we use what core data type.

• 1]

tuple

• 2]

list

• 3]

class

• 4]

dictionary

Solution
7
Discuss

Which one of the following has the same precedence level?

• 1]

• 2]

• 3]

• 4]

Solution
8
Discuss

What error occurs when you execute the following Python code snippet?

apple = mango

• 1]

SyntaxError

• 2]

NameError

• 3]

ValueError

• 4]

TypeError

Solution
9
Discuss

What is the average value of the following Python code snippet?

>>>grade1 = 80
>>>average = (grade1 + grade2) / 2

• 1]

85.0

• 2]

85.1

• 3]

95.0

• 4]

95.1

Solution
10
Discuss

Which of the following is the truncation division operator?

• 1]

/

• 2]

%

• 3]

//

• 4]

|

# Quiz