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 largest number (among the numbers not yet arranged) to the extreme right end, while the remaining elements keep their existing order. Input: 36 pen 51 ink 24 bat 47. Which of the following is Step I?

Competition practiceInput-Output
  • A36 pen 24 ink bat 47 51
  • Bpen 36 ink 24 bat 47 51
  • C36 pen ink 24 bat 51 47
  • D36 pen ink 24 bat 47 51

Step-by-Step Solution

The largest number is 51. Step I moves 51 to the extreme right while the rest keep their order: 36 pen ink 24 bat 47 51.
Answer: D) 36 pen ink 24 bat 47 51

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-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…A word-and-number arranging machine, in each step, moves the largest of the…