Practice30Create account

A word-and-number rearranging machine rearranges a given input line 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 left end, just to the right of any words already arranged, and moves the largest number (among the numbers not yet arranged) to the right end, just to the left of any numbers already arranged; all other elements keep their relative order. Input: sun 27 rat 60 ox 14 map 39. In Step 3, which element is third from the left?

Competition practiceInput-Output
  • A14
  • Box
  • Crat
  • Dsun

Step-by-Step Solution

Step 3 is 'map ox rat sun 14 27 39 60'. Counting from the left: map (1st), ox (2nd), rat (3rd).
Answer: C) rat

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-and-number rearranging machine rearranges a given input line one step at a time.…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 word-arrangement machine, given an input line, rearranges it in steps. In each step…