ReasoningVery hardSSC CGL Tier 2 · IBPS PO Mains

Input–output: A machine rearranges a line of words. In odd-numbered steps it takes, from the words not yet arranged, the word whose first 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. In even-numbered steps it takes the shortest word not yet arranged (if two tie, the one that comes first in dictionary order) and moves it to the left end, just after the words already placed there. Input: mango kiwi peach fig lemon grape plum. Which of the following is Step IV of this input?

  1. A. fig mango kiwi lemon grape plum peach
  2. B. fig kiwi lemon grape mango plum peach
  3. C. fig kiwi mango lemon grape plum peach
  4. D. fig kiwi mango lemon grape peach plum

Correct answer: C. fig kiwi mango lemon grape plum peach

Step I: peach and plum tie on the letter p, and peach is first in dictionary order, so it goes right. Step II: fig goes left. Step III: plum goes right, just before peach. Step IV: kiwi, the shortest left, goes left after fig.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। विषम संख्या वाले चरणों में वह अभी तक व्यवस्थित न किए गए शब्दों में से वह शब्द लेती है जिसका पहला अक्षर वर्णमाला में सबसे बाद में आता है (यदि दो बराबर हों तो शब्दकोश में पहले आने वाला) और उसे दाएँ सिरे पर, पहले से रखे शब्दों के ठीक पहले रखती है। सम संख्या वाले चरणों में वह अभी तक व्यवस्थित न हुआ सबसे छोटा शब्द (यदि दो बराबर हों तो शब्दकोश में पहले आने वाला) लेती है और उसे बाएँ सिरे पर, पहले से रखे शब्दों के ठीक बाद रखती है। इनपुट: mango kiwi peach fig lemon grape plum. इस इनपुट का चरण IV निम्नलिखित में से कौन-सा है?

  1. A. fig mango kiwi lemon grape plum peach
  2. B. fig kiwi lemon grape mango plum peach
  3. C. fig kiwi mango lemon grape plum peach
  4. D. fig kiwi mango lemon grape peach plum

उत्तर: C. चरण I: peach और plum में अक्षर p बराबर है और peach शब्दकोश में पहले है, इसलिए वह दाएँ जाता है। चरण II: fig बाएँ जाता है। चरण III: plum दाएँ, peach के ठीक पहले जाता है। चरण IV: शेष में सबसे छोटा kiwi, fig के बाद बाएँ जाता है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic