2025 Jan OPPE 1 - Set 3¶
Section 1 · Question 1
Even & Second Last Digit is Two
Check if a number is even and its second last digit is 2. Covers modulo arithmetic and boolean logic.
SolvedSection 1 · Question 2
Capitalize nth Character
Uppercase a specific index in a string. Covers string immutability and slicing to rebuild a string.
SolvedSection 1 · Question 3
Merge and Remove Duplicates
Merge two lists and return unique elements. Covers set operations and the union pattern.
SolvedSection 2 · Question 1
Replace Vowels with Next Alphabet
Replace every vowel with the next letter in the alphabet. Covers ord(), chr(), and string building with join().
Section 2 · Question 2
Max Column Sum and Index
Find the column with the largest sum in an m×n matrix. Full I/O problem covering 2D lists and zip(*matrix).
Section 3 · Question 1
Analyze Sentences
A multi-task dispatcher - count words, find palindromes, detect repeated characters, and return the longest words.
SolvedSection 3 · Question 2
Centered Triangle of Zeroes
Print a centred triangle of space-separated zeroes. Full I/O pattern printing problem.
Solved