πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!

  • google app store apple app store
  • βœ–

      Question

      How many steps will be required to get the final output

      from the following input? Input: 117, 63, 11, 18, 93, 4, 6, 13, 17 Directions : A number arrangement machine,when given a particular input, rearranges it following a particular rule. The following is the illustration of the input and the steps of arrangement: Input: 18, 7, 45, 23, 21, 91, 12, 16, 19 Step I: 7, 18, 45, 23, 21, 91, 12, 16, 19 Step II: 7, 19, 45, 23, 21, 91, 12, 16, 18 Step III: 7, 19, 23, 45, 21, 91, 12, 16, 18 Step IV: 7, 19, 23, 21, 45, 91, 12, 16, 18 This is the final arrangement and step IV is the last step for the given in put.
      A seven Correct Answer Incorrect Answer
      B eight Correct Answer Incorrect Answer
      C nine Correct Answer Incorrect Answer
      D less than six Correct Answer Incorrect Answer
      E None of these Correct Answer Incorrect Answer

      Solution

      Clearly, in the given arrangement, the numbers of each type have been arranged in ascending order, ie prime numbers are arranged first in ascending order,then non-prime odd numbers, and finally even numbers.Also, when a number is arranged, it interchanges its position with the wrongly placed number. Input: 117, 63, 11, 18, 93, 4, 6, 13, 17 Step I: 11, 63, 117, 18, 93, 4, 6, 13, 17 Step II: 11, 13, 117, 18, 93, 4, 6, 63, 17 Step III: 11, 13, 17, 18, 93, 4, 6, 63, 117 Step IV: 11, 13, 17, 63, 93, 4, 6, 18, 117 Step V: 11, 13, 17, 63, 93, 117, 6, 18, 4 Step VI: 11, 13, 17, 63, 93, 117, 4, 18, 6 Step VII: 11, 13, 17, 63, 93, 117, 4, 6, 18

      Practice Next
      More Input Output Questions
      ask-question