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 yet arranged (if no even number is left, the smallest odd number) and moves it to the left end, just after the numbers already placed there; it then takes the word whose last letter comes latest in the alphabet (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. Input: 35 rose 18 lamp 42 tent 27 vase 64 frog. Which of the following is Step III of this input?
- A. 18 27 35 rose 42 vase 64 frog lamp tent
- B. 18 42 64 35 lamp tent 27 frog vase rose
- C. 18 42 64 35 rose 27 vase frog lamp tent
- D. 18 42 35 rose 27 vase 64 frog lamp tent
Correct answer: C. 18 42 64 35 rose 27 vase frog lamp tent
हिंदी में
इनपुट-आउटपुट: एक मशीन संख्याओं और शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में वह दो कार्य करती है: वह अभी तक व्यवस्थित न हुई सबसे छोटी सम संख्या लेती है (यदि कोई सम संख्या शेष न हो तो सबसे छोटी विषम संख्या) और उसे बाएँ सिरे पर, पहले से रखी संख्याओं के ठीक बाद रखती है; फिर वह वह शब्द लेती है जिसका अंतिम अक्षर वर्णमाला में सबसे बाद में आता है (यदि दो बराबर हों तो शब्दकोश में पहले आने वाला) और उसे दाएँ सिरे पर, पहले से रखे शब्दों के ठीक पहले रखती है। इनपुट: 35 rose 18 lamp 42 tent 27 vase 64 frog. इस इनपुट का चरण III निम्नलिखित में से कौन-सा है?
- A. 18 27 35 rose 42 vase 64 frog lamp tent
- B. 18 42 64 35 lamp tent 27 frog vase rose
- C. 18 42 64 35 rose 27 vase frog lamp tent
- D. 18 42 35 rose 27 vase 64 frog lamp tent
उत्तर: C. पहले सम संख्याएँ जाती हैं: 18, 42, 64 क्रम से। शब्द अंतिम अक्षर के अनुसार जाते हैं: tent (t), फिर lamp (p), फिर frog (g)। बायाँ खंड: 18 42 64; बीच में 35 rose 27 vase क्रम में रहते हैं; दायाँ खंड: frog lamp tent।
More Data Sufficiency and Input–Output questions
- 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…
- Data sufficiency: decide whether the statements are sufficient to answer the question. How is G related to H? I. G's mother has two…