Input–output: A machine rearranges a line of words and numbers. In each step, the machine moves the smallest number not yet arranged to the left, just after the numbers already arranged there, and then moves the word that comes last 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: gold 72 iron 35 zinc 94 lead 18 tin 56. Which of the following is Step III?
- A. 18 35 gold 72 iron 94 lead 56 tin zinc
- B. 18 35 56 72 gold 94 iron lead tin zinc
- C. 18 35 56 gold 72 iron 94 lead zinc tin
- D. 18 35 56 gold 72 iron 94 lead tin zinc
Correct answer: D. 18 35 56 gold 72 iron 94 lead tin zinc
हिंदी में
इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे छोटी संख्या को बाईं ओर, वहाँ पहले से व्यवस्थित संख्याओं के ठीक बाद, ले जाती है, और फिर अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे अंत में आने वाले शब्द को दाएँ छोर पर, वहाँ पहले से व्यवस्थित शब्दों के ठीक पहले, ले जाती है। अन्य सभी तत्व अपना सापेक्ष क्रम बनाए रखते हैं। जब प्रत्येक तत्व व्यवस्थित हो जाता है तो मशीन रुक जाती है। इनपुट: gold 72 iron 35 zinc 94 lead 18 tin 56. निम्नलिखित में से कौन-सा चरण III है?
- A. 18 35 gold 72 iron 94 lead 56 tin zinc
- B. 18 35 56 72 gold 94 iron lead tin zinc
- C. 18 35 56 gold 72 iron 94 lead zinc tin
- D. 18 35 56 gold 72 iron 94 lead tin zinc
उत्तर: D. चरण-दर-चरण हल करने पर: चरण I: 18 gold 72 iron 35 94 lead tin 56 zinc; चरण II: 18 35 gold 72 iron 94 lead 56 tin zinc; चरण III: 18 35 56 gold 72 iron 94 lead tin zinc; चरण IV: 18 35 56 72 gold 94 iron lead tin zinc; चरण V: 18 35 56 72 94 gold iron lead tin zinc. इसलिए चरण III '18 35 56 gold 72 iron 94 lead tin zinc' है।
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 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…
- Input–output: A machine rearranges a line of words and numbers. In each step, the machine moves the smallest number not yet arranged to…