
Prepare for the Class 10 Computer Science and Entrepreneurship Chapter 3: Introduction to Python Programming – Test 2, based on the latest PECTAA Punjab New Syllabus 2026–27 and Punjab Board 2027 Model Papers. This full unit test is part of our comprehensive Class 10 Computer Science Chapter Wise Test Series, designed to help students strengthen their Python programming concepts, improve problem-solving skills, and practice important examination questions. Attempt this Class 10 Python Programming Test 2 to evaluate your preparation and build confidence for the Matric Annual Examinations 2027 under all Punjab Boards.
Test No. 2
1. Which of the following is a power operator?
2. Which of the following have highest precedence?
3. Which of the following is an assignment operator?
4. Guess the output of 10 % 3?
5. In Python logical-and operator represented by:
6. What will be the output of: print(10 // 3)?
7. What does the += operator do?
8. Which symbol is used for comments in Python?
10 // 3 gives 3.Modulus:
10 % 3 gives 1.Power:
2 ** 3 gives 8.x += 5 means x = x + 5. Others are -=, *=, /=.True or False. They are ==, !=, >, <, >=, <=. Example: 5 > 3 gives True.input() function, e.g. name = input("Enter name: "). For numbers, convert it: age = int(input("Enter age: ")).#.x = 10.Float: numbers with a decimal point, e.g.
y = 3.14.| Operator | Name | Example | Use |
|---|---|---|---|
+ | Addition | 5 + 2 = 7 | Totals, sums |
- | Subtraction | 5 - 2 = 3 | Differences, change |
* | Multiplication | 5 * 2 = 10 | Price × quantity |
/ | Division | 5 / 2 = 2.5 | Exact result with decimals |
// | Floor division | 5 // 2 = 2 | Whole-number part of a division |
% | Modulus | 5 % 2 = 1 | Remainder, even/odd check |
** | Power | 2 ** 3 = 8 | Squares, cubes, exponents |

