We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
1. What Is an Operator?
2. What are types of Operators?
3. What are arithmetic operators in Python? 4. What are comparison operators in Python? 5. What are logical operators in Python? 6. What are bitwise operators in Python? 7. What are assignment operators in Python? 8. What are membership operators in Python? 9. What is the difference between == and != operators? 10.What is the in operator used for in Python? 11.What is the purpose of the is operator in Python? 12.How do you use the % operator in Python? 13.What is the purpose of the ** operator in Python? 14.Explain the difference between the & and ‘and’ operators in Python. 15.What is the purpose of the // operator in Python? 16.How does the in operator work in Python? 17.What is the difference between == and is operators in Python? 18.Which operator is used to calculate the remainder of a division? 19.What is the result of the expression 5 < 6 and 6 < 7? 20.What does the expression not(100 == 100) evaluate to? 21.Which operator is used to perform floor division? 22.What does the expression 3 != 3 or 5 > 4 evaluate to? 23.What will be the output of 2**0? 24.What does the expression (5 != 5) or (6 >= 6) evaluate to ? 25.What is the result of the expression 10 * (3 + 5) // 2 ? 26.What is the result of the 8 / 2 + 2 * 3 27.What is the result of the 3 * "Hello" ? 28.What is the result of the -5 // 2 ? 29.What does the expression bool(0) evaluate to ? 30.What is the output of the expression round(2.564, 2) ? 31.What is the output of the expression abs(-5.5) ? 32.How do you swap two variables in Python using a single line of code? 33.Write a Python program to increment a variable by 5 using the += operator.