Input-Output Questions with Solutions

5 questions4 medium1 hard

Input-output questions show a machine that rearranges a line of words, numbers or both, step by step, according to a fixed rule. You are given the input and several steps of the arrangement, then asked about the output for a new input, such as what step 4 looks like or how many steps it takes to finish. The first job is to discover the rule. Compare the input with step 1, then step 1 with step 2, and notice which element moves each time and where it goes. Common rules include arranging words in alphabetical order, arranging numbers in increasing or decreasing order, and alternately placing words and numbers at the left and right ends. Once the rule is clear, apply it carefully to the new input, writing each step out. Many machines finish in fewer steps than you might expect, because some elements are already in the right place. Practise the input-output questions below. Each solution explains the rule and shows every step.

  1. Q1.

    A hand-held gaming device takes and as two input values. These values get updated as and at each iteration, and the game stops when is greater than or equal to . For , and , what would be the final value of when the game stops?

    A. 5450B. 9450C. 12860D. 13450
    mediumAsked in NIMCET 2026View solution ›
  2. Q2.

    For the input 'toy pen axe kite map', which step will read 'axe kite map toy pen'?

    A. Step IIB. Step IIIC. Step IVD. Step V
    mediumView solution ›
  3. Q3.

    A number machine applies the same rule in every step: each even number is halved and each odd number is increased by 1. Input: 12 35 7 48 21 What is the sum of the numbers in Step III?

    A. 31B. 33C. 35D. 29
    mediumView solution ›
  4. Q4.

    For the input 'harbour on stone tide market sky', which word is third from the right in Step III?

    A. tideB. harbourC. stoneD. sky
    mediumView solution ›