ReasoningVery hardIBPS PO Mains · SBI PO Mains · SSC CGL Tier 2

Input–output: A machine rearranges a line of numbers and words. In each step it first takes the number with the greatest sum of digits among the numbers not yet arranged (if two numbers tie, the smaller number) and places it at the right end, just before the numbers already placed there; it then takes the shortest word among the words not yet arranged (if two words tie, the one that comes first in dictionary order) and places it at the left end, just after the words already placed there. Input: 48 plum 15 oak 72 fig 39 pear 27 tree. In the last step of the arrangement, what is the position of 72 from the right end?

  1. A. 5th
  2. B. 3rd
  3. C. 6th
  4. D. 4th

Correct answer: D. 4th

Digit sums are 48 → 12, 39 → 12, 72 → 9, 27 → 9 and 15 → 6, so numbers move right in the order 39, 48, 27, 72, 15. Words move left as fig, oak, pear, plum, tree. The last step is fig oak pear plum tree 15 72 27 48 39, so 72 is 4th from the right.

हिंदी में

इनपुट-आउटपुट: एक मशीन संख्याओं और शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में वह पहले अभी तक व्यवस्थित न की गई संख्याओं में से अंकों के सबसे बड़े योग वाली संख्या को (यदि दो संख्याओं में बराबरी हो, तो छोटी संख्या को) दाएँ छोर पर, वहाँ पहले से रखी संख्याओं के ठीक पहले, रखती है; फिर अभी तक व्यवस्थित न किए गए शब्दों में से सबसे छोटे शब्द को (यदि दो शब्दों में बराबरी हो, तो शब्दकोश क्रम में पहले आने वाले को) बाएँ छोर पर, वहाँ पहले से रखे शब्दों के ठीक बाद, रखती है। इनपुट: 48 plum 15 oak 72 fig 39 pear 27 tree. व्यवस्था के अंतिम चरण में 72 की दाएँ छोर से स्थिति क्या है?

  1. A. 5वाँ
  2. B. 3रा
  3. C. 6ठा
  4. D. 4था

उत्तर: D. अंकों के योग हैं 48 → 12, 39 → 12, 72 → 9, 27 → 9 और 15 → 6, इसलिए संख्याएँ दाईं ओर 39, 48, 27, 72, 15 के क्रम में जाती हैं। शब्द बाईं ओर fig, oak, pear, plum, tree के क्रम में जाते हैं। अंतिम चरण fig oak pear plum tree 15 72 27 48 39 है, इसलिए 72 दाएँ से 4था है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic