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: jar knob 48 94 lotus 17 mint 61.
In Step 3 of the above arrangement, which element is second from the right end?

Competition practiceInput-Output
  • A94
  • B17
  • Cknob
  • D48

Step-by-Step Solution

Step 1: knob 48 94 lotus 17 mint 61 jar. Step 2: 48 94 lotus 17 mint 61 jar knob. Step 3: 48 94 17 mint 61 jar knob lotus. Counting from the right end of Step 3, the second element is "knob".
Answer: C) knob

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, alternating…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine, when given an input line of words and numbers,…A word-and-number arrangement machine, when given an input line of words and numbers,…