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. Which element is third from the left in Step I?

Competition practiceInput-Output
  • A46
  • Bcat
  • Cant
  • D73

Step-by-Step Solution

Step I moves 'ant' to the left: ant 46 cat 73 28 dog 15 bee. Third from the left is cat.
Answer: B) cat

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 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…