ReasoningModerateIBPS PO · SBI PO · IBPS Clerk

Input–output: A machine rearranges a line of words. In each step, the machine takes the word that comes last in dictionary order among the words not yet arranged and moves it to the left, just after the words already arranged; the other words keep their relative order. The machine stops when all the words are arranged. Input: boat cart jeep auto taxi van. How many steps does the machine need to complete the arrangement?

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

Correct answer: B. 4

Step I: van boat cart jeep auto taxi; Step II: van taxi boat cart jeep auto; Step III: van taxi jeep boat cart auto; Step IV: van taxi jeep cart boat auto. The arrangement is complete after Step IV, so 4 steps are needed.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन उन शब्दों में से, जिन्हें अभी व्यवस्थित नहीं किया गया है, शब्दकोश क्रम में सबसे अंत में आने वाले शब्द को लेकर बाईं ओर, पहले से व्यवस्थित शब्दों के ठीक बाद, रख देती है; बाकी शब्द अपना सापेक्ष क्रम बनाए रखते हैं। जब सभी शब्द व्यवस्थित हो जाते हैं तो मशीन रुक जाती है। इनपुट: boat cart jeep auto taxi van. मशीन को व्यवस्था पूरी करने में कितने चरण लगते हैं?

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

उत्तर: B. चरण I: van boat cart jeep auto taxi; चरण II: van taxi boat cart jeep auto; चरण III: van taxi jeep boat cart auto; चरण IV: van taxi jeep cart boat auto. व्यवस्था चरण IV के बाद पूर्ण हो जाती है, इसलिए 4 चरण आवश्यक हैं।

More Data Sufficiency and Input–Output questions

Exams that ask this topic