ReasoningModerateIBPS PO · SBI PO · IBPS Clerk

Input–output: A machine rearranges a line of words. In each step, the machine takes the longest word not yet arranged (if two are equally long, the one that comes first in dictionary order) 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: sky planet moon comet star galaxy. In Step III, which element is 4th from the left end?

  1. A. comet
  2. B. sky
  3. C. moon
  4. D. star

Correct answer: B. sky

Step I: galaxy sky planet moon comet star; Step II: galaxy planet sky moon comet star; Step III: galaxy planet comet sky moon star; Step IV: galaxy planet comet moon sky star; Step V: galaxy planet comet moon star sky. In Step III ('galaxy planet comet sky moon star'), the 4th element from the left is sky.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न किए गए सबसे लंबे शब्द को (यदि दो शब्द समान लंबाई के हों तो शब्दकोश क्रम में पहले आने वाले को) लेकर बाईं ओर, पहले से व्यवस्थित शब्दों के ठीक बाद, रख देती है; बाकी शब्द अपना सापेक्ष क्रम बनाए रखते हैं। जब सभी शब्द व्यवस्थित हो जाते हैं तो मशीन रुक जाती है। इनपुट: sky planet moon comet star galaxy. चरण III में बाईं ओर से चौथा तत्व कौन-सा है?

  1. A. comet
  2. B. sky
  3. C. moon
  4. D. star

उत्तर: B. चरण I: galaxy sky planet moon comet star; चरण II: galaxy planet sky moon comet star; चरण III: galaxy planet comet sky moon star; चरण IV: galaxy planet comet moon sky star; चरण V: galaxy planet comet moon star sky. चरण III ('galaxy planet comet sky moon star') में बाईं ओर से चौथा तत्व sky है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic