NMAT/SNAP (Input Output)
My answers are :
1) b. V
2) e. no such step
3) c. 68
4) d. 19 27 39 56 68 96 67


Comments2

Superman - iQuanta
All 4 are correct. Here is the full arrangement for confirmation. Rule: each step finds the smallest of the remaining unsorted elements and swaps it into the next sorted position; if a number is already the minimum at that spot, that position is skipped. Input: 27 68 39 19 56 96 67 Step I: 19 68 39 27 56 96 67 (19 swaps with 27) Step II: 19 27 39 68 56 96 67 (27 swaps with 68; 39 at pos 3 is already minimum so pos 3 skipped) Step III: 19 27 39 56 68 96 67 (56 swaps with 68) Step IV: 19 27 39 56 67 96 68 (67 swaps with 68) Step V: 19 27 39 56 67 68 96 (68 swaps with 96) - fully sorted, last step Q1: last step is V, (b) V Q2: '19 27 39 56 68 67 96' appears nowhere in the steps, (e) no such step Q3: Step II is 19 27 39 68 56 96 67; from the right: 67, 96, 56, 68 - 4th is 68, (c) 68 Q4: Step III is 19 27 39 56 68 96 67, (d)
Log in to see all 2 comments and join the discussion.