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, freeSample questions
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.
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.
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'.
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.
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.
More questions in this quiz
Answers and explanations are in the full quiz.
- In Python, which operator is used to multiply two numbers?
- What will be the output of 5 % 2 in Python?
- In Python, what does the '==' operator do?
- What is the result of 15 // 2 in Python?
- Which operator will you use to check if two variables reference the same object?
- In Python, what does the '!=' operator signify?
- How does the '~' operator function for integers in Python?
- What will the statement bool(0) return in Python?
- What is the result of using `and` between two True values in Python?
- In Python, which value will the following expression return: 5 < 3 and 2 > 1?
- What does the expression 0 < 1 < 2 evaluate to?
- Which operator will change the sign of a number in Python?
- What will `not True` evaluate to in Python?
- Predict the output of the following: 4 > 3 > 2 == 2.
More quizzes
Browse all Programming with Python quizzes