ReasoningEasyIBPS PO · SBI PO · IBPS Clerk

Input–output: A machine rearranges a line of numbers. In each step, the machine takes the smallest number not yet arranged and moves it to the left, just after the numbers already arranged; the other numbers keep their relative order. The machine stops when all the numbers are arranged. Input: 61 13 77 29 48. How many steps does the machine need to complete the arrangement?

  1. A. 2
  2. B. 4
  3. C. 3
  4. D. 5

Correct answer: C. 3

Step I: 13 61 77 29 48; Step II: 13 29 61 77 48; Step III: 13 29 48 61 77. The arrangement is complete after Step III, so 3 steps are needed.

हिंदी में

इनपुट-आउटपुट: एक मशीन संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे छोटी संख्या को लेकर बाईं ओर, पहले से व्यवस्थित संख्याओं के ठीक बाद, रख देती है; बाकी संख्याएँ अपना सापेक्ष क्रम बनाए रखती हैं। जब सभी संख्याएँ व्यवस्थित हो जाती हैं तो मशीन रुक जाती है। इनपुट: 61 13 77 29 48। मशीन को व्यवस्था पूरी करने में कितने चरण लगते हैं?

  1. A. 2
  2. B. 4
  3. C. 3
  4. D. 5

उत्तर: C. चरण I: 13 61 77 29 48; चरण II: 13 29 61 77 48; चरण III: 13 29 48 61 77। व्यवस्था चरण III के बाद पूर्ण हो जाती है, इसलिए 3 चरण आवश्यक हैं।

More Data Sufficiency and Input–Output questions

Exams that ask this topic