# Quiz Discussion

Which of the following results in a SyntaxError?

Course Name: Python

• 1]

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

• 2]

“He said, ‘Yes!'”

• 3]

‘3\’

• 4]

”’That’s okay”’

##### 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 will run without errors?

• 1]

round(45.8)

• 2]

round(7463.123,2,1)

• 3]

round()

• 4]

round(6352.898,2,5)

##### Solution
2
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’)

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

What is the value of the following expression?

float(22//3+3/3)

• 1]

8

• 2]

8.0

• 3]

8.3

• 4]

8.33

##### Solution
5
Discuss

Which one of the following has the same precedence level?

• 1]

• 2]

• 3]

• 4]

##### Solution
6
Discuss

Mathematical operations can be performed on a string.

• 1]

True

• 2]

False

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

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

• 1]

True

• 2]

False

##### Solution
9
Discuss

What data type is the object below?

L = [1, 23, 'hello', 1]

• 1]

list

• 2]

dictionary

• 3]

array

• 4]

tuple

##### Solution
10
Discuss

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

x = int(43.55+2/2)

• 1]

43

• 2]

44

• 3]

22

• 4]

23

# Quiz