ReasoningVery hardSSC CGL Tier 2 · IBPS PO Mains

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?

  1. A. 18 27 35 rose 42 vase 64 frog lamp tent
  2. B. 18 42 64 35 lamp tent 27 frog vase rose
  3. C. 18 42 64 35 rose 27 vase frog lamp tent
  4. D. 18 42 35 rose 27 vase 64 frog lamp tent

Correct answer: C. 18 42 64 35 rose 27 vase frog lamp tent

Even numbers go first: 18, 42, 64 in order. The words go by last letter: tent (t), then lamp (p), then frog (g). Left block: 18 42 64; the middle keeps 35 rose 27 vase; right block: frog lamp tent.

हिंदी में

इनपुट-आउटपुट: एक मशीन संख्याओं और शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में वह दो कार्य करती है: वह अभी तक व्यवस्थित न हुई सबसे छोटी सम संख्या लेती है (यदि कोई सम संख्या शेष न हो तो सबसे छोटी विषम संख्या) और उसे बाएँ सिरे पर, पहले से रखी संख्याओं के ठीक बाद रखती है; फिर वह वह शब्द लेती है जिसका अंतिम अक्षर वर्णमाला में सबसे बाद में आता है (यदि दो बराबर हों तो शब्दकोश में पहले आने वाला) और उसे दाएँ सिरे पर, पहले से रखे शब्दों के ठीक पहले रखती है। इनपुट: 35 rose 18 lamp 42 tent 27 vase 64 frog. इस इनपुट का चरण III निम्नलिखित में से कौन-सा है?

  1. A. 18 27 35 rose 42 vase 64 frog lamp tent
  2. B. 18 42 64 35 lamp tent 27 frog vase rose
  3. C. 18 42 64 35 rose 27 vase frog lamp tent
  4. 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

Exams that ask this topic