🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Input–Output: all 15 questions

Quiz: Input–Output · Question 12 of 15

For the same input (pen 64 art 15 sky 38), how many steps are needed to finish the arrangement?

For the same input (pen 64 art 15 sky 38), how many steps are needed to finish the arrangement?

  1. A.1
  2. B.2
  3. C.3
  4. D.4
Answer & explanation

Correct answer: 3

Step II is art 15 pen 38 64 sky, which is not yet sorted; Step III gives art 15 pen 38 sky 64.

Can you get the rest right without peeking?

Take the timed Quiz: Input–Output quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →