Any2Quiz
Quizzes / CBSE / Class 9 / Computer Science / Programming with Python

Operators and Expressions Quiz - CBSE Class 9 Computer Science

Free practice quiz: Operators and Expressions (CBSE Class 9 Computer Science). 19 multiple-choice questions with answers and explanations. Play online, no sign-up needed.

This CBSE Class 9 Computer Science practice quiz has 19 multiple-choice questions on Operators and Expressions, and 19 of them come with an explanation. Try the 5 sample questions below (tap an option to check yourself), then play the full quiz online. No sign-up needed.

Start quiz: 19 questions, free

Sample questions

  1. Which operator is used in Python for addition?

    Show answer

    Answer: A. +

    The '+' operator is used for addition in Python, allowing you to add two numbers together.

  2. Which operator is used for exponentiation in Python?

    Show answer

    Answer: A. **

    The '**' operator is used for exponentiation in Python, meaning raising a number to the power of another.

  3. What is the result of 'Python' + '3'?

    Show answer

    Answer: B. Python3

    In Python, using the '+' operator with strings results in concatenation. 'Python' + '3' concatenates to 'Python3'.

  4. What does 2**3 evaluate to in Python?

    Show answer

    Answer: A. 8

    The '**' operator raises the number to the power of another. Hence, 2**3 means 2 raised to the power 3, which is 8.

  5. If x = True and y = False, what does the expression x or y evaluate to?

    Show answer

    Answer: A. True

    The 'or' operator returns True if at least one operand is True. Here, x is True, so the expression evaluates to True.

Take the full quiz

More questions in this quiz

Answers and explanations are in the full quiz.

  1. In Python, which operator is used to multiply two numbers?
  2. What will be the output of 5 % 2 in Python?
  3. In Python, what does the '==' operator do?
  4. What is the result of 15 // 2 in Python?
  5. Which operator will you use to check if two variables reference the same object?
  6. In Python, what does the '!=' operator signify?
  7. How does the '~' operator function for integers in Python?
  8. What will the statement bool(0) return in Python?
  9. What is the result of using `and` between two True values in Python?
  10. In Python, which value will the following expression return: 5 < 3 and 2 > 1?
  11. What does the expression 0 < 1 < 2 evaluate to?
  12. Which operator will change the sign of a number in Python?
  13. What will `not True` evaluate to in Python?
  14. Predict the output of the following: 4 > 3 > 2 == 2.

More quizzes

Browse all Programming with Python quizzes

More to play

Daily ChallengeA new quiz every day. Keep your streak.HangmanGuess the word, letter by letter.Story QuestLearn through short interactive stories.All quizzesCBSE, ICSE, competitive exams and more.