Input–output: A machine rearranges a line of numbers and words. In odd-numbered steps it takes the smallest number not yet arranged and moves it to the left end, just after the numbers already placed there; in even-numbered steps it takes the word with the most letters not yet arranged (if two tie, the one that comes first in dictionary order) and moves it to the right end, just before the words already placed there. The other elements keep their relative order. Input: 56 garden 23 lemon 81 tiger 47 pen 12. Which of the following is Step V of this input?
- A. 12 23 47 56 81 tiger pen lemon garden
- B. 81 56 47 23 tiger pen 12 lemon garden
- C. 12 23 56 81 tiger 47 pen lemon garden
- D. 12 23 47 56 lemon 81 pen tiger garden
Correct answer: A. 12 23 47 56 81 tiger pen lemon garden
हिंदी में
इनपुट-आउटपुट: एक मशीन संख्याओं और शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। विषम संख्या वाले चरणों में वह अभी तक व्यवस्थित न हुई सबसे छोटी संख्या लेती है और उसे बाएँ सिरे पर, पहले से रखी संख्याओं के ठीक बाद रखती है; सम संख्या वाले चरणों में वह अभी तक व्यवस्थित न हुआ सबसे अधिक अक्षरों वाला शब्द (यदि दो बराबर हों तो शब्दकोश में पहले आने वाला) लेती है और उसे दाएँ सिरे पर, पहले से रखे शब्दों के ठीक पहले रखती है। अन्य अवयव अपना सापेक्ष क्रम बनाए रखते हैं। इनपुट: 56 garden 23 lemon 81 tiger 47 pen 12. इस इनपुट का चरण V निम्नलिखित में से कौन-सा है?
- A. 12 23 47 56 81 tiger pen lemon garden
- B. 81 56 47 23 tiger pen 12 lemon garden
- C. 12 23 56 81 tiger 47 pen lemon garden
- D. 12 23 47 56 lemon 81 pen tiger garden
उत्तर: A. चरण I, III, V में 12, 23, 47 बाईं ओर जाते हैं। चरण II और IV में garden और फिर lemon दाईं ओर जाते हैं (lemon और tiger दोनों में 5 अक्षर हैं, पर शब्दकोश में lemon पहले है)। शेष क्रम में रहते हैं: 56 81 tiger pen।
More Data Sufficiency and Input–Output questions
- Input–output: A machine rearranges a line of numbers and words. In every step it does two things: it takes the smallest even number not…
- Input–output: A machine rearranges a line of numbers and words. In every step it takes the word that comes first in dictionary order among…
- Data sufficiency: decide whether the statements are sufficient to answer the question. How is A related to B? I. A is the daughter of C…
- Decide which of the given statements are needed to answer the question. Who is the father of Rina? I. The husband of Rina's mother is…
- Data sufficiency: decide whether the statements are sufficient to answer the question. How is Tara related to Uma? I. Tara is a woman. II…
- Decide which of the given statements are needed to answer the question. Is M a grandparent of N on the father's side? I. M's son is N's…