Practice30Create account

A word-and-number arranging machine rearranges an input line step by step. In each step it shifts the alphabetically-earliest word that is not yet arranged to the left (placing it just after any words already arranged) and shifts the lowest number not yet arranged to the right (just before any numbers already arranged); the other elements keep their relative order. Input: cow 45 bat 12 dog 78 ant 30. In Step 1, which element is third from the left end?

Competition practiceInput-Output
  • A45
  • Bcow
  • C78
  • Dbat

Step-by-Step Solution

Step 1 is 'ant cow 45 bat dog 78 30 12'. Counting from the left: ant, cow, 45 — the third element is 45.
Answer: A) 45

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 rearranges an input line step by step. In each step…Statements: No dependable machine is cheap. Some of the machines in this workshop are…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…