Python Programming, End Term
January 2025 term, 13 Apr 2025, Set QEF1
It reverses the entire sub-list from left to right, regardless of whether the elements are odd or even.
It reverses only the odd elements in the range [left, right], leaving even elements in their original positions.
It moves all even elements to the left and all odd elements to the right (a partition), but does not change the relative order of the odd elements themselves.
It sorts the sub-list from left to right in ascending order, ignoring whether elements are odd or even.
Sign in to report a problem with this question.
You cannot change your answers after submitting.
The palette shows the status of every question. Pick a number to go straight to it.
Figure from the original question paper Figure from the original question paper Figure from the original question paper