🎙 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 1 of 15

Using the arrangement rule from this lesson (next word A–Z and next smallest number move left), what is Step I for the…

Using the arrangement rule from this lesson (next word A–Z and next smallest number move left), what is Step I for the input: rose 55 cup 21 fan 39?

  1. A.cup 21 fan 39 rose 55
  2. B.cup 21 rose 55 fan 39
  3. C.rose 21 cup 55 fan 39
  4. D.cup 55 rose 21 fan 39
Answer & explanation

Correct answer: cup 21 rose 55 fan 39

"cup" is first alphabetically and 21 is the smallest number. Both move to the front; rose 55 fan 39 keep their order.

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 →