DATE: 29/06/2026 GRADE – XI
WORK SHEET-OPERATIORS COMPUTER SCIENCE - 083
Part A – Fill in the Blanks (1 Mark Each)
1. The + operator is called the __________ operator.
2. The % operator returns the __________ of a division.
3. The ** operator is used for __________.
4. The // operator performs __________ division.
5. The == operator checks for __________.
PART B – Choose the best
1. Which operator is used for exponentiation?
a) ^ b) ** c) // d) %
2. What is the output of 10 // 4?
a) 2.5 b) 2 c) 3 d) 4
3. Which operator checks equality?
a) = b) == c) != d) <=
4. Which operator belongs to Logical Operators?
a) % b) + c) and d) >
5. Which operator checks membership?
a) in b) is c) == d) =
1. Predict and Explain
print(5 + 3 * 2)
print((5 + 3) * 2)
Question: Why are the outputs different?
2. Operator Precedence
print(20 - 4 * 2 + 6)
Question: Show the order in which Python evaluates the operators.
3. Analyze the Output
a = 10
b = 20
print(a < b)
print(a > b)
print(a <= b)
Question: Explain why each output is obtained.
4. Equality vs Identity
a = 100
b = 100
print(a == b)
print(a is b)
Question: What is the difference between == and is?
5. Membership Challenge
word = "PYTHON"
print("TH" in word)
print("th" in word)
Question: Why are the outputs different?
6. Logical Reasoning
print(True and False or True)
Question: Evaluate the expression step by step.
7. Predict the Output
x=5
print(x * 2 ** 3)
print((x * 2) ** 3)
Question: Which operator gets priority?
8. Find the Error
a = 10
b = 20
print(a >< b)
Questions:
1. Identify the error.
2. Which relational operators are valid in Python?
9. Compare the Expressions
print(15 // 4)
print(15 / 4)
print(15 % 4)
Question: Explain the purpose of each operator.
10. Think and Predict
a = [1,2,3]
b = [1,2,3]
print(a == b)
print(a is b)
Questions:
1. Predict the output.
2. Which operator compares values?
3. Which operator compares object identity?
Programs:
Simple Calculator using Arithmetic Operators
Find the output
score = 50 x = True a = 12
score += 10 y = False b=5
score /= 2 print(not x or y) print(a & b, a | b, a ^ b)
print(score)
a = 10 total_minutes = 135 value = 8
b=4 # Write your code below: value *= 2 + 1
print(a % b == 2) hours = value -= 4
minutes = print(value)
print(hours, "hours and", minutes, "minutes")
a = True p = True x = 10
b = False q = False y = 2.0
c = True output = not (p == q) or (10 / 2 == 5.0) answer = x // y
print(a or b and not c) print(output) print(answer)
val1 = "5" x = 17 print(10 + 2 * 3 ** 2 %
val2 = 3 y=5 4)
print(val1 * val2) ans = (x % y > 1) and (x // y == 3) print(True and False or
print(ans) True)
print(not False and True)