Practice30Create account

A word-and-number arrangement machine rearranges any input line in steps. In each step the word that comes first in alphabetical order among the words not already shifted in an earlier step is taken out and placed at the extreme right end of the line. All the remaining elements keep their relative order, and the machine stops when no further shift is possible.
Input: 72 19 fan ink 58 lamp 37 rose.
Which of the following is Step 3 of the above arrangement?

Competition practiceInput-Output
  • A72 19 58 37 fan ink lamp rose
  • B72 19 58 lamp 37 rose fan ink
  • C72 19 fan 58 37 rose lamp ink
  • D72 19 58 37 rose fan ink lamp

Step-by-Step Solution

Work the machine forward from the input. Step 1: 72 19 ink 58 lamp 37 rose fan. Step 2: 72 19 58 lamp 37 rose fan ink. Step 3: 72 19 58 37 rose fan ink lamp. Hence the line shown is Step 3.
Answer: D) 72 19 58 37 rose fan ink lamp

Master this topic in 30 minutes a day.

Don't just memorise the answer — build a daily practice habit.

Practice 5 Similar Questions Free →

All Input-Output practice questions

More Input-Output practice

A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps, alternating…