ReasoningModerateIBPS PO Mains · SBI PO Mains · SSC CGL Tier 2

Input–output: A machine rearranges a line of words and numbers. In each step, it moves the word that comes first in dictionary order among the words not yet arranged to the right end of the line, and then moves the largest number not yet arranged to the right end, just after that word. Input: 58 gate 17 bird 93 lamp 42 echo 26 fan. How many steps does the machine need to complete the arrangement?

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

Correct answer: A. 5

Step 5 reads bird 93 echo 58 fan 42 gate 26 lamp 17, and no earlier step is already in this final order, so 5 steps are needed. 10 counts the word and number moves separately.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में वह अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे पहले आने वाले शब्द को पंक्ति के दाएँ छोर पर ले जाती है, और फिर अभी तक व्यवस्थित न की गई सबसे बड़ी संख्या को उस शब्द के ठीक बाद दाएँ छोर पर ले जाती है। इनपुट: 58 gate 17 bird 93 lamp 42 echo 26 fan. मशीन को व्यवस्था पूरी करने में कितने चरण लगते हैं?

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

उत्तर: A. चरण 5 में bird 93 echo 58 fan 42 gate 26 lamp 17 मिलता है, और इससे पहले का कोई भी चरण इस अंतिम क्रम में नहीं है, इसलिए 5 चरण लगते हैं। 10 शब्द और संख्या की चालों को अलग-अलग गिनता है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic