INDIAN SCHOOL AL GHUBRA
MOCK PERIODIC TEST–I: 2025–26
CLASS: XI – COMPUTER SCIENCE (083)
Time Allowed: 1 Hour Max Marks: 20
General Instructions:
1. All questions are compulsory.
2. Use Python programming language only.
3. Answer all parts of a question together.
SECTION A (5 Marks)
1. With step-by-step evaluation, give the final output:
10 - 2 * 3 + 5 // 2 ** 1
2. What will be the output of the following code fragment?
a, b = 2, 5
a += b
b -= a
print(a, b, sep=':', end='@')
a) 2:5@ b) 7:-2@ c) 5:2@ d) 7:5@
3. Which of the following statements is invalid in Python?
a) x = y = z = 0 b) if a = 5: c) print("Hello") d) x, y = 5, 10
4. Identify the invalid identifier among the following:
a) my_name b) 1stPrize c) _price2 d) total_Amount
5. Match the following and choose the correct option:
Tokens Type
1. and a. Keyword
2. 6.2 b. Literal
3. > c. Operator
4. () d. Punctuator
Options:
a) 1-a, 2-b, 3-c, 4-d b) 1-b, 2-a, 3-d, 4-c
c) 1-c, 2-d, 3-a, 4-b d) 1-d, 2-a, 3-b, 4-c
SECTION B (6 Marks)
6. A parking ticket machine charges 1 OMR per hour. It works as follows:
Asks the user for total money inserted
Repeats:
Asks how many hours the user wants to buy
Checks if the amount required is within the balance
If yes, deducts cost and prints ticket
If not, shows “Insufficient balance”
Asks if the user wants to purchase more hours
Ends if balance is insufficient or user selects “No”
Displays remaining balance
7. Differentiate between / and // in Python.
8. Predict the output of the following code:
for i in range(1, 6):
for j in range(65, 65 + i): # ASCII value of 'A' is 65
print(chr(j), end=" ")
print()
SECTION C (9 Marks)
9. Write a Python program to accept the age of a person and the membership type (Gold
/ Silver).
Discount rules:
- If age > 60 and type is Gold → 30%
- If age > 60 and type is Silver → 20%
- If age ≤ 60 and type is Gold → 15%
- If age ≤ 60 and type is Silver → 10%
If membership is invalid or age ≤ 0, show appropriate error and stop.
Display final discount percentage.
10. A circle is cut out of a square of card. A program is needed to calculate the area of the
excess card.
Use the following formulae:
- Area of square = s²
- Area of circle = πr²
- Diameter of circle = 2r (for reference only)
- where s is the side length of the square and r is the radius of the circle
Write a Python program that:
- Inputs the side length of the square (integer)
- Inputs the radius of the circle (integer)
- Calculates and displays the excess area (area of square minus area of circle)
(No input validation required.)
11. Write a Python program that keeps accepting numbers until the user enters 0.
Then display:
- Count of numbers entered (excluding 0)
- Sum of the numbers
- Average of the numbers