Practice30Create account

A word-and-number arranging machine, given an input line, rearranges it in steps. Rule: in each step the smallest number not yet moved is placed at the extreme left end and all other elements shift one place to the right. Input: cat 34 dog 12 box 56 ant 28. In Step 2, what is the position of 'dog' from the left?

Competition practiceInput-Output
  • AFifth
  • BSixth
  • CFourth
  • DThird

Step-by-Step Solution

Step 1 moves 12 left: 12 cat 34 dog box 56 ant 28. Step 2 moves 28 left: 28 12 cat 34 dog box 56 ant. Here 'dog' is fifth from the left.
Answer: A) Fifth

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