ReasoningEasyIBPS PO · SBI PO · SSC CGL

Input–output: A machine arranges words. In each step it takes the word that comes first in dictionary order among the words not yet arranged and moves it to the left, just after the words already arranged; the other words keep their order. It stops when all the words are in dictionary order. Input: sun ant pen cow. How many steps does the machine need?

  1. A. 3
  2. B. 5
  3. C. 2
  4. D. 4

Correct answer: A. 3

Step I: ant sun pen cow. Step II: ant cow sun pen. Step III: ant cow pen sun, which is in dictionary order, so 3 steps.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों को व्यवस्थित करती है। प्रत्येक चरण में वह उन शब्दों में से, जिन्हें अभी व्यवस्थित नहीं किया गया है, शब्दकोश क्रम में सबसे पहले आने वाले शब्द को लेकर बाईं ओर, पहले से व्यवस्थित शब्दों के ठीक बाद, रख देती है; बाकी शब्द अपना क्रम बनाए रखते हैं। जब सभी शब्द शब्दकोश क्रम में आ जाते हैं तो वह रुक जाती है। इनपुट: sun ant pen cow. मशीन को कितने चरण लगेंगे?

  1. A. 3
  2. B. 5
  3. C. 2
  4. D. 4

उत्तर: A. चरण I: ant sun pen cow। चरण II: ant cow sun pen। चरण III: ant cow pen sun, जो शब्दकोश क्रम में है, इसलिए 3 चरण।

More Data Sufficiency and Input–Output questions

Exams that ask this topic