Python Operators Quiz
  There are 20 questions based on Python Operators
Sign in to Google to save your progress. Learn more
Q1. What is the output of the following code?
print(5 + 3 * 2)
*
4 points
Q2.  Which operator is used to check if two values are equal? *
4 points
Required
Q3.  What is the output of 10 // 3?   *
4 points
Q4.  What does the ^ operator do in Python's bitwise operations?   *
4 points
Q5.  What does the not operator do in Python?   *
4 points
Q6.  Which of the following is a membership operator? *
4 points
Q7.  What is the output of 2 ** 3?   *
4 points
Q8.  What is the result of the following expression?
print(4 > 2 and 3 < 5)
*
4 points
Q9.  What is the output of 5 % 2?   *
4 points
Q10.  What does the is operator do?   *
4 points
Q11.  What will be the output of this code?
a = 10
a += 5
print(a)
*
4 points
Q12.  Which operator is used to concatenate strings in Python? *
4 points
Q13.  What is the output of 10 < 5 or 3 > 1?   *
4 points
Q14.  What does the // operator do in Python?   *
4 points
Q15.  Which of the following is a comparison operator? *
4 points
Q16.  What is the result of the following code?
print("Python" in "Python Programming")
*
4 points
Q17.  Which of the following operators has the highest precedence? *
4 points
Q18.  What will be the output of this code?
x = [1, 2, 3]
y = [1, 2, 3]
print(x is y)
*
4 points
Q19.  What does the and operator do?   *
4 points
Q20.  What is the result of the following code?
print(4 * 2 // 3)
*
4 points
Submit
Clear form
This content is neither created nor endorsed by Google.