Operators, Expressions and Python Statements Set-1

Instruction:-

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

  •  

    Results

    #1. What will be the output of the following expression in Python?
    3 + 2 * 2

    #2. Which of the following is not a valid assignment statement in Python?

    #3. What type of operator is and in Python?

    #4. Which operator has the highest precedence in Python?

    #5. Which of these is a compound assignment operator?

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

    #7. Which of the following is a statement in Python?

    #8. What is the output of:
    x = 5
    y = 2
    print(x // y)

    #9. What does the following expression evaluate to?
    (True and False) or True

    #10. Which of the following is not a relational operator in Python?

    #11. Which operator is used to calculate the remainder of a division?

    #12. What is the result of the expression 4 < 5 and 5 < 6?

    #13. What will be the output of the following code?

    #14. What does the expression not(10 == 10) evaluate to?

    #15. Which operator is used to perform floor division?

    #16. What is the output of the following code?
    print(10 / 3)

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

    #18. What is the purpose of the += operator in Python?

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

    #20. What is the output of the following code?
    x = 5
    if x > 2:
    print(“Greater”)
    else:
    print(“Smaller”)

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

    #22. Which of the following statements is true about Python variables and data types?

    #23. What is the result of True or False in Python?

    #24. Which of the following is NOT a valid Python comment format?

    #25. What is the output of the following code?
    print(“Hello” * 3)

    Previous
    Finish

    Leave a Comment

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