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 left, just after the numbers already arranged there, and then moves the word that comes first in dictionary order among the words not yet arranged to the right end, just before the words already arranged there. All other elements keep their relative order. The machine stops when every element is arranged. Input: drum 39 flute 84 harp 12 sitar 67 veena 51. Which of the following is Step III?
- A. 84 67 39 harp 12 sitar veena 51 flute drum
- B. 84 67 51 39 12 veena sitar harp flute drum
- C. 84 67 51 39 12 sitar veena harp flute drum
- D. 84 67 51 39 12 sitar veena harp drum flute
Correct answer: C. 84 67 51 39 12 sitar veena harp flute drum
हिंदी में
इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे बड़ी संख्या को बाईं ओर, वहाँ पहले से व्यवस्थित संख्याओं के ठीक बाद, ले जाती है, और फिर अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे पहले आने वाले शब्द को दाएँ छोर पर, वहाँ पहले से व्यवस्थित शब्दों के ठीक पहले, ले जाती है। अन्य सभी तत्व अपना सापेक्ष क्रम बनाए रखते हैं। जब प्रत्येक तत्व व्यवस्थित हो जाता है तो मशीन रुक जाती है। इनपुट: drum 39 flute 84 harp 12 sitar 67 veena 51. निम्नलिखित में से कौन-सा चरण III है?
- A. 84 67 39 harp 12 sitar veena 51 flute drum
- B. 84 67 51 39 12 veena sitar harp flute drum
- C. 84 67 51 39 12 sitar veena harp flute drum
- D. 84 67 51 39 12 sitar veena harp drum flute
उत्तर: C. चरण-दर-चरण हल करने पर: चरण I: 84 39 flute harp 12 sitar 67 veena 51 drum; चरण II: 84 67 39 harp 12 sitar veena 51 flute drum; चरण III: 84 67 51 39 12 sitar veena harp flute drum; चरण IV: 84 67 51 39 12 veena sitar harp flute drum. इसलिए चरण III '84 67 51 39 12 sitar veena harp flute drum' है।
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 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 and numbers. In each step, the machine moves the smallest number not yet arranged to…
- 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…
- 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…
- 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…