Practice30Create account

A word arrangement machine, when given an input line of words and numbers, rearranges them one step at a time. In each step it moves the word that comes earliest in alphabetical order (among the words not yet arranged) to the extreme left, immediately after the already-arranged words, while the remaining elements keep their existing order. Input: 45 tap 27 sun 63 mat 19. Which of the following is Step II?

Competition practiceInput-Output
  • Amat 45 sun tap 27 63 19
  • Bmat sun tap 45 27 63 19
  • Cmat sun 45 tap 27 63 19
  • Dsun mat 45 tap 27 63 19

Step-by-Step Solution

Words in alphabetical order: mat, sun, tap. Step I moves 'mat' left: mat 45 tap 27 sun 63 19. Step II moves 'sun' next to it: mat sun 45 tap 27 63 19.
Answer: C) mat sun 45 tap 27 63 19

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, when given an input line of words and numbers, rearranges…A word arrangement machine, when given an input line of words and numbers, rearranges…A word-and-number arrangement machine rearranges an input line one step at a time.…A word-and-number arrangement machine rearranges an input line one step at a time.…A word-and-number arranging machine, when given an input line, rearranges it step by…