ReasoningHardIBPS PO · SBI PO · IBPS Clerk

Input–output: A machine rearranges a line of words and numbers. In each step, the machine moves the largest number not yet arranged to the left, just after the numbers already arranged there, and then moves the word that comes first in dictionary order among the words not yet arranged to the right end, just before the words already arranged there. All other elements keep their relative order. The machine stops when every element is arranged. Input: bus 64 car 28 van 91 jeep 47. How many steps does the machine need to complete the arrangement?

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

Correct answer: A. 3

Step I: 91 64 car 28 van jeep 47 bus; Step II: 91 64 28 van jeep 47 car bus; Step III: 91 64 47 28 van jeep car bus. The arrangement is complete after Step III, so 3 steps are needed.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे बड़ी संख्या को बाईं ओर, वहाँ पहले से व्यवस्थित संख्याओं के ठीक बाद, ले जाती है, और फिर अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे पहले आने वाले शब्द को दाएँ छोर पर, वहाँ पहले से व्यवस्थित शब्दों के ठीक पहले, ले जाती है। अन्य सभी तत्व अपना सापेक्ष क्रम बनाए रखते हैं। जब प्रत्येक तत्व व्यवस्थित हो जाता है तो मशीन रुक जाती है। इनपुट: bus 64 car 28 van 91 jeep 47. मशीन को व्यवस्था पूरी करने में कितने चरण लगते हैं?

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

उत्तर: A. चरण I: 91 64 car 28 van jeep 47 bus; चरण II: 91 64 28 van jeep 47 car bus; चरण III: 91 64 47 28 van jeep car bus. व्यवस्था चरण III के बाद पूर्ण हो जाती है, इसलिए 3 चरण आवश्यक हैं।

More Data Sufficiency and Input–Output questions

Exams that ask this topic