ReasoningVery hardIBPS PO · SBI PO · IBPS Clerk

Input–output: A machine rearranges a line of words. In each step, the machine takes the word that comes last 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 relative order. The machine stops when all the words are arranged. Input: egg milk bread jam honey rice tea. Which step of this input reads 'tea rice milk jam egg bread honey'?

  1. A. Step III
  2. B. Step V
  3. C. There is no such step
  4. D. Step IV

Correct answer: D. Step IV

Step I: tea egg milk bread jam honey rice; Step II: tea rice egg milk bread jam honey; Step III: tea rice milk egg bread jam honey; Step IV: tea rice milk jam egg bread honey; Step V: tea rice milk jam honey egg bread. The arrangement 'tea rice milk jam egg bread honey' appears at Step IV.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन उन शब्दों में से, जिन्हें अभी व्यवस्थित नहीं किया गया है, शब्दकोश क्रम में सबसे अंत में आने वाले शब्द को लेकर बाईं ओर, पहले से व्यवस्थित शब्दों के ठीक बाद, रख देती है; बाकी शब्द अपना सापेक्ष क्रम बनाए रखते हैं। जब सभी शब्द व्यवस्थित हो जाते हैं तो मशीन रुक जाती है। इनपुट: egg milk bread jam honey rice tea. इस इनपुट का कौन-सा चरण 'tea rice milk jam egg bread honey' है?

  1. A. चरण III
  2. B. चरण V
  3. C. ऐसा कोई चरण नहीं है
  4. D. चरण IV

उत्तर: D. चरण I: tea egg milk bread jam honey rice; चरण II: tea rice egg milk bread jam honey; चरण III: tea rice milk egg bread jam honey; चरण IV: tea rice milk jam egg bread honey; चरण V: tea rice milk jam honey egg bread. व्यवस्था 'tea rice milk jam egg bread honey' चरण IV में आती है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic