# Quiz Discussion

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

Course Name: Python

• 1]

tuple

• 2]

list

• 3]

class

• 4]

dictionary

##### 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 return type of function id?

• 1]

int

• 2]

float

• 3]

dict

• 4]

bool

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

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

def example(a):
a = a + '2'
a = a*2
return a
>>>example("hello")

• 1]

indentation Error

• 2]

cannot perform mathematical operation on strings

• 3]

hello2

• 4]

hello2hello2

##### Solution
5
Discuss

Which one of the following has the highest precedence in the expression?

• 1]

Exponential

• 2]

• 3]

Parentheses

• 4]

Multiplication

##### Solution
6
Discuss

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

• 1]

23

• 2]

13

• 3]

1

• 4]

3

##### Solution
7
Discuss

Which of the following is the truncation division operator?

• 1]

/

• 2]

%

• 3]

//

• 4]

|

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

It is not possible for the two’s complement value to be equal to the original value in any case.

• 1]

True

• 2]

False

##### Solution
10
Discuss

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

• 1]

True

• 2]

False

# Quiz