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?
- A. 3
- B. 4
- C. 5
- 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. कितने चरणों में व्यवस्था पूर्ण हो जाती है?
- A. 3
- B. 4
- C. 5
- 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 नहीं।
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 two steps. Input: 49 20 16 33 81. Step I: every number that is a perfect square is replaced by its square…
- Data sufficiency: decide whether the statements are sufficient to answer the question. In a row of 30 students, what is Ravi's position…
- Data sufficiency: decide whether the statements are sufficient to answer the question. How many sons does X have? I. P and Q are brothers…
- Data sufficiency: decide whether the statements are sufficient to answer the question. a and b are real numbers. Is a > b? I. a² > b². II…
- Data sufficiency: decide whether the statements are sufficient to answer the question. What is the profit percentage on an article? I. The…
- Data sufficiency: decide whether the statements are sufficient to answer the question. On which date in March is Meena's birthday? I. Her…