Page 119 - Touchpad_Plus_V3.2_Class 6
P. 119
Operators can be defined as special symbols which perform arithmetic and logical
computation.
Arithmetic operators perform arithmetic operations between two operands.
The assignment operators are used to assign the value of the right expression to the left
operand.
Relational operators are used to compare the value of the two operands and returns
True or False accordingly.
Precedence of operators determines the order in which the operators are executed.
Checkpoint
A. Tick ( ) the correct option.
1. What will be the output of the following expression:
22 % 3
a. 7 b. 1
c. 0 d. 5
2. The statement using AND operator results true if .........................
a. Both operands are true
b. Both operands are false
c. Either of the operands is true
d. Neither of the operands is true
3. Which one of the following has the highest precedence in a logical expression?
a. Addition b. Multiplication
c. Exponential d. Parentheses
4. Which of the following is true?
a. Comments are for programmers for better understanding of the program.
b. Python Interpreter ignores comments.
c. You can write multi-line comments in Python using triple quotes, either ''' or """
d. All of these
Introduction to Python 117

