Quiz Discussion

Which one of these is floor division?

Course Name: Python

• 1]

/

• 2]

%

• 3]

//

• 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 order of precedence in python?

i) Parentheses ii) Exponential iii) Multiplication iv) Division v) Addition vi) Subtraction

• 1]

i,ii,iii,iv,v,vi

• 2]

ii,i,iii,iv,v,vi

• 3]

ii,i,iv,iii,v,vi

• 4]

i,ii,iii,iv,vi,v

Solution
2
Discuss

What is the output of this expression, 3*1**3?

• 1]

23

• 2]

13

• 3]

1

• 4]

3

Solution
3
Discuss

Given a function that does not return any value, What value is thrown by default when executed in shell.

• 1]

int

• 2]

bool

• 3]

void

• 4]

None

Solution
4
Discuss

Which is the correct operator for power(xy)?

• 1]

X^y

• 2]

X**y

• 3]

X^^y

• 4]

None of the mentioned

Solution
5
Discuss

Operators with the same precedence are evaluated in which manner?

• 1]

Left to Right

• 2]

Right to Left

• 3]

Can’t say

• 4]

None of the mentioned

Solution
6
Discuss

What is the return value of trunc()?

• 1]

int

• 2]

bool

• 3]

float

• 4]

None

Solution
7
Discuss

Mathematical operations can be performed on a string.

• 1]

True

• 2]

False

Solution
8
Discuss

Which of these in not a core data type?

• 1]

Lists

• 2]

Dictionary

• 3]

Tuples

• 4]

Class

Solution
9
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
10
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

# Quiz