• +91 9971497814
• info@interviewmaterial.com

# Chapter 9- Operators in Python Interview Questions Answers

### Related Subjects

Question 1 :
Write the output of the given Python code :
a = 0
a+ =2
print (a)

Question 2 :
Write the output of the given Python code :

print (3 + 4)
print (3 – 4)
print (3 * 4) print (3/4)
print (3 % 2)
print (3**4) #3 to the fourth power
print (3 // 4) #floor division

7
-1
12
0.75
1
81
0

Question 3 :
Write the output of the given Python code :

a = 20
if a > = 22:
print(“if”)
elif a >= 21:
print(“elif”)
else:
print(“else”)

else

Question 4 :
What is the another name of Comparison Operators?

Relational Operators.

Question 5 :
What is the use of “+” operator?

The “+” operator adds values on either side of the operator.

Question 6 :
What is the use of operator?

The operator subtracts right hand operand from left hand operand.

Question 7 :
What is the use of “*” operator?

The “*” operator multiplies values on either side of the operator.

Question 8 :
What is the use of “%” operator?

The “%” operator divides left hand operand by right hand operand and returns remainder.

Question 9 :
What is the use of “**” operator?

The “**” operator performs exponential (power) calculation on operators.

Question 10 :
What is the use of 7/” operator?

The 7/” operator results is the quotient in which the digits after the decimal point are removed.

krishan