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 smallest number not yet arranged to the left, just after the numbers already arranged there, and then moves the word that comes last 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: coal 48 salt 93 sand 21 lime 76 clay 35. Which step of this input reads '21 35 48 coal 93 76 clay lime salt sand'?

  1. A. Step II
  2. B. Step III
  3. C. Step IV
  4. D. There is no such step

Correct answer: B. Step III

Step I: 21 coal 48 salt 93 lime 76 clay 35 sand; Step II: 21 35 coal 48 93 lime 76 clay salt sand; Step III: 21 35 48 coal 93 76 clay lime salt sand; Step IV: 21 35 48 76 93 clay coal lime salt sand. The arrangement '21 35 48 coal 93 76 clay lime salt sand' appears at Step III.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे छोटी संख्या को बाईं ओर, वहाँ पहले से व्यवस्थित संख्याओं के ठीक बाद, ले जाती है, और फिर अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे अंत में आने वाले शब्द को दाएँ छोर पर, वहाँ पहले से व्यवस्थित शब्दों के ठीक पहले, ले जाती है। अन्य सभी तत्व अपना सापेक्ष क्रम बनाए रखते हैं। जब प्रत्येक तत्व व्यवस्थित हो जाता है तो मशीन रुक जाती है। इनपुट: coal 48 salt 93 sand 21 lime 76 clay 35. इस इनपुट का कौन-सा चरण '21 35 48 coal 93 76 clay lime salt sand' है?

  1. A. चरण II
  2. B. चरण III
  3. C. चरण IV
  4. D. ऐसा कोई चरण नहीं है

उत्तर: B. चरण I: 21 coal 48 salt 93 lime 76 clay 35 sand; चरण II: 21 35 coal 48 93 lime 76 clay salt sand; चरण III: 21 35 48 coal 93 76 clay lime salt sand; चरण IV: 21 35 48 76 93 clay coal lime salt sand. व्यवस्था '21 35 48 coal 93 76 clay lime salt sand' चरण III में आती है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic