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: hawk 57 crow 82 dove 14 kite 69 swan 33 wren 46. In Step IV, which element is 5th from the left end?

  1. A. 14
  2. B. 46
  3. C. swan
  4. D. kite

Correct answer: A. 14

Step I: 82 hawk 57 dove 14 kite 69 swan 33 wren 46 crow; Step II: 82 69 hawk 57 14 kite swan 33 wren 46 dove crow; Step III: 82 69 57 14 kite swan 33 wren 46 hawk dove crow; Step IV: 82 69 57 46 14 swan 33 wren kite hawk dove crow; Step V: 82 69 57 46 33 14 wren swan kite hawk dove crow. In Step IV ('82 69 57 46 14 swan 33 wren kite hawk dove crow'), the 5th element from the left is 14.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे बड़ी संख्या को बाईं ओर, वहाँ पहले से व्यवस्थित संख्याओं के ठीक बाद, ले जाती है, और फिर अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे पहले आने वाले शब्द को दाएँ छोर पर, वहाँ पहले से व्यवस्थित शब्दों के ठीक पहले, ले जाती है। अन्य सभी तत्व अपना सापेक्ष क्रम बनाए रखते हैं। जब प्रत्येक तत्व व्यवस्थित हो जाता है तो मशीन रुक जाती है। इनपुट: hawk 57 crow 82 dove 14 kite 69 swan 33 wren 46. चरण IV में बाईं ओर से 5वाँ तत्व कौन-सा है?

  1. A. 14
  2. B. 46
  3. C. swan
  4. D. kite

उत्तर: A. चरण I: 82 hawk 57 dove 14 kite 69 swan 33 wren 46 crow; चरण II: 82 69 hawk 57 14 kite swan 33 wren 46 dove crow; चरण III: 82 69 57 14 kite swan 33 wren 46 hawk dove crow; चरण IV: 82 69 57 46 14 swan 33 wren kite hawk dove crow; चरण V: 82 69 57 46 33 14 wren swan kite hawk dove crow. चरण IV ('82 69 57 46 14 swan 33 wren kite hawk dove crow') में बाईं ओर से 5वाँ तत्व 14 है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic