ReasoningHardIBPS PO · SBI PO · SSC CGL

Input–output: A machine arranges a mix of words and numbers. In each step it takes the smallest number not yet arranged and, immediately after it, the word that comes first in dictionary order among the words not yet arranged, and places this pair at the left, just after the pairs already arranged; the other elements keep their order. It stops when no further change takes place. Input: lamp 47 cart 12 zone 35 bird 28. In how many steps is the arrangement complete?

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

Correct answer: A. 3

Step I: 12 bird lamp 47 cart zone 35 28. Step II: 12 bird 28 cart lamp 47 zone 35. Step III: 12 bird 28 cart 35 lamp 47 zone. The last pair (47, zone) is already in place, so nothing changes after Step III and 3 steps are enough, not 4.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं के मिश्रण को व्यवस्थित करती है। प्रत्येक चरण में वह अभी तक व्यवस्थित न की गई सबसे छोटी संख्या को लेती है और उसके ठीक बाद, अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे पहले आने वाले शब्द को लेती है, और इस जोड़ी को बाईं ओर, पहले से व्यवस्थित जोड़ियों के ठीक बाद, रख देती है; बाकी तत्व अपना क्रम बनाए रखते हैं। जब कोई और परिवर्तन नहीं होता तो वह रुक जाती है। इनपुट: lamp 47 cart 12 zone 35 bird 28. कितने चरणों में व्यवस्था पूर्ण हो जाती है?

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

उत्तर: A. चरण I: 12 bird lamp 47 cart zone 35 28। चरण II: 12 bird 28 cart lamp 47 zone 35। चरण III: 12 bird 28 cart 35 lamp 47 zone। अंतिम जोड़ी (47, zone) पहले से अपनी जगह पर है, इसलिए चरण III के बाद कुछ नहीं बदलता और 3 चरण पर्याप्त हैं, 4 नहीं।

More Data Sufficiency and Input–Output questions

Exams that ask this topic