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. Which element is second from the left in Step 1?

Competition practiceInput-Output
  • A12
  • Bdog
  • Ccat
  • D34

Step-by-Step Solution

Step 1 moves the smallest number 12 to the extreme left: 12 cat 34 dog box 56 ant 28. The second element from the left is 'cat'.
Answer: C) cat

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 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.…A word-and-number rearranging machine rearranges a given input line one step at a time.…