2025 May OPPE 1 -Set 3¶
Section 1 · Question 1
Decreasing 4-Digit Number
Check if each digit is strictly less than the one before it. Covers zip(s, s[1:]) and all().
Section 1 · Question 2
Parse Equation and Solve for x
Parse a linear equation string and return the value of x. Covers string splitting and edge case handling.
SolvedSection 1 · Question 3
Divide Into Almost Equal Parts
Split n into k nearly equal parts with larger values first. Covers divmod() and list multiplication.
Section 2 · Question 1
Compute Polynomial Value
Evaluate a polynomial from its coefficients. Covers Horner's method and reduce() + lambda.
Section 2 · Question 2
Update Todo List
Mark todo items complete by index. Full I/O problem covering set lookup and str.replace().
Section 3 · Question 1
Batsman Performance Analysis
Five functions on cricket career data -stats, century rate, yearly averages. Covers flattening, min() with key, and function reuse.
Section 3 · Question 2
Horizontal Bar Chart
Print a right-aligned bar chart using #. Full I/O problem covering f-string alignment and str.rjust().