Operators, Expressions and Python Statements Set-2

Instruction:-

  • Number of Questions : 25
  • Total Marks : 25
  • Each question carry 1 Marks.
  • No negative marking

  •  

    Results

    #1. Which operator is used to perform bitwise AND operation in Python?

    #2. What is the result of the expression 5 // 2 in Python?

    #3. Which of the following is a valid Python identifier?

    #4. What does the is operator check in Python?

    #5. What is the output of the following code?
    x = 5
    y = 2
    print(x % y)

    #6. Which operator is used for exponentiation in Python?

    #7. What is the output of the following code?
    x = 10
    y = 3
    print(x / y)

    #8. Which of the following is a logical operator in Python?

    #9. What is the result of the expression True and False in Python?

    #10. Which of the following is NOT a valid Python statement?

    #11. What is the output of the following code?
    x = 5
    x += 3
    print(x)

    #12. Which of the following is a valid Python identifier?

    #13. What is the output of the following code?
    x = 10
    y = 5
    print(x // y)

    #14. What is the output of the following?
    x = 7
    y = 3
    print(x % y)

    #15. Which one of the following is a compound statement in Python?

    #16. What is the purpose of the not operator in Python?

    #17. Which operator is used to check if a value is in a sequence in Python?

    #18. What is the output of the following code?
    print(10 > 9 > 8)

    #19. What does the is operator do in Python?

    #20. Which of the following is NOT a valid comparison operator in Python?

    #21. What does the and operator do in Python?

    #22. What is the output of the following code?
    print(10 != 10)

    #23. Which of the following statements about Python statements is true?

    #24. What is the output of the following code?
    print(not True)

    #25. Which of the following statements about Python operators is true?

    Previous
    Finish

    Leave a Comment

    Your email address will not be published. Required fields are marked *