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: bear lion wolf deer fox hare yak. Which of the following is Step III?
- A. yak wolf bear lion deer fox hare
- B. yak wolf lion hare bear deer fox
- C. yak wolf lion bear deer hare fox
- D. yak wolf lion bear deer fox hare
Correct answer: D. yak wolf lion bear deer fox hare
हिंदी में
इनपुट-आउटपुट: एक मशीन शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन उन शब्दों में से, जिन्हें अभी व्यवस्थित नहीं किया गया है, शब्दकोश क्रम में सबसे अंत में आने वाले शब्द को लेकर बाईं ओर, पहले से व्यवस्थित शब्दों के ठीक बाद, रख देती है; बाकी शब्द अपना सापेक्ष क्रम बनाए रखते हैं। जब सभी शब्द व्यवस्थित हो जाते हैं तो मशीन रुक जाती है। इनपुट: bear lion wolf deer fox hare yak. निम्नलिखित में से कौन-सा चरण III है?
- A. yak wolf bear lion deer fox hare
- B. yak wolf lion hare bear deer fox
- C. yak wolf lion bear deer hare fox
- D. yak wolf lion bear deer fox hare
उत्तर: D. चरण-दर-चरण हल करने पर: चरण I: yak bear lion wolf deer fox hare; चरण II: yak wolf bear lion deer fox hare; चरण III: yak wolf lion bear deer fox hare; चरण IV: yak wolf lion hare bear deer fox; चरण V: yak wolf lion hare fox bear deer; चरण VI: yak wolf lion hare fox deer bear. इसलिए चरण III 'yak wolf lion bear deer fox hare' है।
More Data Sufficiency and Input–Output questions
- Input–output: A machine rearranges a line of words and numbers. In each step, the machine moves the smallest number not yet arranged to…
- Input–output: A machine rearranges a line of numbers. In each step, the machine takes the smallest number not yet arranged and moves it to…
- Input–output: A machine rearranges a line of words and numbers. In each step, the machine moves the largest number not yet arranged to the…
- Input–output: A machine rearranges a line of words. In each step, the machine takes the word that comes first in dictionary order among…
- Data sufficiency: decide whether the statements are sufficient to answer the question. In which direction is point Q from point P? I. P is…
- Data sufficiency: decide whether the statements are sufficient to answer the question. Forty students stand in a row facing north. What is…