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 at the extreme right (last position) in Step II?

Competition practiceInput-Output
  • A28
  • Bbee
  • C15
  • Ddog

Step-by-Step Solution

Step I: ant 46 cat 73 28 dog 15 bee. Step II: ant bee 46 cat 73 28 dog 15. The last element in Step II is 15.
Answer: C) 15

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