# Quiz Discussion

What will be the output of the following Python code?

>>>str="hello"
>>>str[:2]
>>>

Course Name: Python

• 1]

he

• 2]

olleh

• 3]

lo

• 4]

hello

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

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
2
Discuss

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

apple = mango

• 1]

SyntaxError

• 2]

NameError

• 3]

ValueError

• 4]

TypeError

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

What will be the value of the following Python expression?

4 + 3 % 5

• 1]

4

• 2]

7

• 3]

2

• 4]

0

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

Which is the correct operator for power(xy)?

• 1]

X^y

• 2]

X**y

• 3]

X^^y

• 4]

None of the mentioned

##### Solution
8
Discuss

Which one of the following has the same precedence level?

• 1]

Addition and Subtraction

• 2]

Multiplication, Division and Addition

• 3]

Multiplication, Division, Addition and Subtraction

• 4]

Addition and Multiplication

##### Solution
9
Discuss

What is the value of the following expression?

8/4/2, 8/(4/2)

• 1]

(1.0, 4.0)

• 2]

(1.0, 1.0)

• 3]

(4.0. 1.0)

• 4]

(4.0, 4.0)

##### Solution
10
Discuss

Mathematical operations can be performed on a string.

• 1]

True

• 2]

False

# Quiz