ReasoningVery hardIBPS 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. Step III of a certain input is: ant bee cat yak owl dog. Which of the following could NOT be the input?

  1. A. yak ant owl bee dog cat
  2. B. owl yak ant dog bee cat
  3. C. yak owl cat dog bee ant
  4. D. bee yak cat owl ant dog

Correct answer: B. owl yak ant dog bee cat

Moving ant, bee and cat never changes the relative order of the other words, so the input must have yak before owl before dog. In 'owl yak ant dog bee cat', owl comes before yak, and its Step III would be ant bee cat owl yak dog.

हिंदी में

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

  1. A. yak ant owl bee dog cat
  2. B. owl yak ant dog bee cat
  3. C. yak owl cat dog bee ant
  4. D. bee yak cat owl ant dog

उत्तर: B. ant, bee और cat को आगे ले जाने से बाकी शब्दों का आपसी क्रम कभी नहीं बदलता, इसलिए इनपुट में yak, owl से पहले और owl, dog से पहले होना चाहिए। 'owl yak ant dog bee cat' में owl, yak से पहले है, और उसका चरण III ant bee cat owl yak dog होगा।

More Data Sufficiency and Input–Output questions

Exams that ask this topic