ReasoningVery hardIBPS 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: lotus 28 iris 75 orchid 43 lily 96 tulip 61 poppy 12. Which of the following is Step IV?

  1. A. 96 75 61 28 orchid 43 tulip poppy 12 lotus lily iris
  2. B. 96 75 61 43 28 tulip poppy 12 orchid lotus lily iris
  3. C. 96 75 61 43 28 tulip 12 poppy orchid lotus lily iris
  4. D. 96 75 61 43 28 tulip poppy 12 orchid lotus iris lily

Correct answer: B. 96 75 61 43 28 tulip poppy 12 orchid lotus lily iris

Working step by step: Step I: 96 lotus 28 75 orchid 43 lily tulip 61 poppy 12 iris; Step II: 96 75 lotus 28 orchid 43 tulip 61 poppy 12 lily iris; Step III: 96 75 61 28 orchid 43 tulip poppy 12 lotus lily iris; Step IV: 96 75 61 43 28 tulip poppy 12 orchid lotus lily iris; Step V: 96 75 61 43 28 tulip 12 poppy orchid lotus lily iris; Step VI: 96 75 61 43 28 12 tulip poppy orchid lotus lily iris. So Step IV is '96 75 61 43 28 tulip poppy 12 orchid lotus lily iris'.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे बड़ी संख्या को बाईं ओर, वहाँ पहले से व्यवस्थित संख्याओं के ठीक बाद, ले जाती है, और फिर अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे पहले आने वाले शब्द को दाएँ छोर पर, वहाँ पहले से व्यवस्थित शब्दों के ठीक पहले, ले जाती है। अन्य सभी तत्व अपना सापेक्ष क्रम बनाए रखते हैं। जब प्रत्येक तत्व व्यवस्थित हो जाता है तो मशीन रुक जाती है। इनपुट: lotus 28 iris 75 orchid 43 lily 96 tulip 61 poppy 12. निम्नलिखित में से कौन-सा चरण IV है?

  1. A. 96 75 61 28 orchid 43 tulip poppy 12 lotus lily iris
  2. B. 96 75 61 43 28 tulip poppy 12 orchid lotus lily iris
  3. C. 96 75 61 43 28 tulip 12 poppy orchid lotus lily iris
  4. D. 96 75 61 43 28 tulip poppy 12 orchid lotus iris lily

उत्तर: B. चरण-दर-चरण हल करने पर: चरण I: 96 lotus 28 75 orchid 43 lily tulip 61 poppy 12 iris; चरण II: 96 75 lotus 28 orchid 43 tulip 61 poppy 12 lily iris; चरण III: 96 75 61 28 orchid 43 tulip poppy 12 lotus lily iris; चरण IV: 96 75 61 43 28 tulip poppy 12 orchid lotus lily iris; चरण V: 96 75 61 43 28 tulip 12 poppy orchid lotus lily iris; चरण VI: 96 75 61 43 28 12 tulip poppy orchid lotus lily iris. इसलिए चरण IV '96 75 61 43 28 tulip poppy 12 orchid lotus lily iris' है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic