ReasoningVery hardIBPS PO · SBI PO · SSC CGL

Input–output: A machine arranges words and numbers. In each step it moves the largest number not yet arranged to the left end (just after the numbers already arranged), and the longest word not yet arranged to the right end (just before the words already arranged there); if two words are equally long, the one that comes first in dictionary order is moved first. Input: go 73 river 18 sun 56 pen 31 ox 94 cart. In the final arrangement, what is the position of 'sun' from the right end?

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

Correct answer: D. 4th

Words are fixed from the right end in order of length: river (5 letters), cart (4), then the three-letter words pen and sun (pen first by dictionary order), then go and ox. The final arrangement is 94 73 56 31 18 ox go sun pen cart river, so sun is 4th from the right.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं को व्यवस्थित करती है। प्रत्येक चरण में वह अभी तक व्यवस्थित न की गई सबसे बड़ी संख्या को बाएँ छोर पर (पहले से व्यवस्थित संख्याओं के ठीक बाद) और अभी तक व्यवस्थित न किए गए सबसे लंबे शब्द को दाएँ छोर पर (वहाँ पहले से व्यवस्थित शब्दों के ठीक पहले) रख देती है; यदि दो शब्द समान लंबाई के हों तो शब्दकोश क्रम में पहले आने वाला शब्द पहले रखा जाता है। इनपुट: go 73 river 18 sun 56 pen 31 ox 94 cart. अंतिम व्यवस्था में 'sun' का स्थान दाएँ छोर से कौन-सा है?

  1. A. 5वाँ
  2. B. तीसरा
  3. C. छठा
  4. D. चौथा

उत्तर: D. शब्द दाएँ छोर से लंबाई के क्रम में तय होते हैं: river (5 अक्षर), cart (4), फिर तीन अक्षर वाले शब्द pen और sun (शब्दकोश क्रम में pen पहले), फिर go और ox। अंतिम व्यवस्था 94 73 56 31 18 ox go sun pen cart river है, इसलिए sun दाएँ छोर से चौथा है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic