Practice30Create account

A word-arrangement machine, given an input line, rearranges it in steps. In each step the word that comes first in alphabetical order among the remaining words is moved to the left end, the rest shifting right in the same order. Input: 46 cat 73 ant 28 dog 15 bee. In Step III, which element is immediately to the right of 'cat'?

Competition practiceInput-Output
  • A46
  • B73
  • Cdog
  • Dbee

Step-by-Step Solution

Step III is: ant bee cat 46 73 28 dog 15. The element immediately to the right of cat is 46.
Answer: A) 46

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