# Quiz Discussion

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

x = int(43.55+2/2)

Course Name: Python

• 1]

43

• 2]

44

• 3]

22

• 4]

23

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

Which is the correct operator for power(xy)?

• 1]

X^y

• 2]

X**y

• 3]

X^^y

• 4]

None of the mentioned

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

Which one of these is floor division?

• 1]

/

• 2]

%

• 3]

//

• 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

In python we do not specify types, it is directly interpreted by the compiler, so consider the following operation to be performed.

>>>x = 13 ? 2

the objective is to make sure x has an integer value, select all that apply

• 1]

x = 13 // 2

• 2]

x = int(13 / 2)

• 3]

x = 13 % 2

• 4]

All of the mentioned

##### Solution
7
Discuss

Which of the following results in a SyntaxError?

• 1]

‘”Once upon a time…”, she said.’

• 2]

“He said, ‘Yes!'”

• 3]

‘3\’

• 4]

”’That’s okay”’

##### Solution
8
Discuss

Which of the following operators has its associativity from right to left?

• 1]

+

• 2]

//

• 3]

%

• 4]

**

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

The following is displayed by a print function call. Select all of the function calls that result in this output.

tom
dick
harry

• 1]

print(”’tomdickharry”’)

• 2]
print('''tom
\ndick
\nharry''')
• 3]
print('tom
dick
harry')
• 4]

print(‘tom\ndick\nharry’)

# Quiz