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?
- A. 5th
- B. 3rd
- C. 6th
- 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' का स्थान दाएँ छोर से कौन-सा है?
- A. 5वाँ
- B. तीसरा
- C. छठा
- D. चौथा
उत्तर: D. शब्द दाएँ छोर से लंबाई के क्रम में तय होते हैं: river (5 अक्षर), cart (4), फिर तीन अक्षर वाले शब्द pen और sun (शब्दकोश क्रम में pen पहले), फिर go और ox। अंतिम व्यवस्था 94 73 56 31 18 ox go sun pen cart river है, इसलिए sun दाएँ छोर से चौथा है।
Practise more Data Sufficiency and Input–Output questionsData Sufficiency and Input–Output: notes and key points
More Data Sufficiency and Input–Output questions
- Input–output: A machine works in three steps. Input: stone metal cloud brick. Step I: in every word, the first and last letters are…
- Input–output: A machine arranges numbers. In each step, the largest number not yet arranged is moved to the left, just after the numbers…
- Input–output: A machine works in two steps. Input: 27 14 33 25 48. Step I: a number divisible by 3 is divided by 3; any other number is…
- Input–output: A machine arranges words. In each step it takes the word that comes first in dictionary order among the words not yet…
- Data sufficiency: decide whether the statements are sufficient to answer the question. The length of a rectangle is 12 cm. What is its…
- Data sufficiency: decide whether the statements are sufficient to answer the question. There are 40 students in a class. What is Neha's…