Khan.randRange(25, 50)

Suppose that Selection Sort is given an input of 100 records, and it has completed NUM iterations of the main loop. How many records are now guaranteed to be in their final position (never to be moved again by the sort)?

NUM

On each pass, Selection Sort puts a record into its final position.

So, if Selection Sort has done NUM passes, then at least NUM records are in their final positions.