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: apple 19 grape 83 melon 47 berry 65 lemon 32. In Step III, which element is 4th from the right end?
- A. lemon
- B. grape
- C. 32
- D. berry
Correct answer: C. 32
हिंदी में
इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे बड़ी संख्या को बाईं ओर, वहाँ पहले से व्यवस्थित संख्याओं के ठीक बाद, ले जाती है, और फिर अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे पहले आने वाले शब्द को दाएँ छोर पर, वहाँ पहले से व्यवस्थित शब्दों के ठीक पहले, ले जाती है। अन्य सभी तत्व अपना सापेक्ष क्रम बनाए रखते हैं। जब प्रत्येक तत्व व्यवस्थित हो जाता है तो मशीन रुक जाती है। इनपुट: apple 19 grape 83 melon 47 berry 65 lemon 32. चरण III में दाएँ छोर से चौथा तत्व कौन-सा है?
- A. lemon
- B. grape
- C. 32
- D. berry
उत्तर: C. चरण I: 83 19 grape melon 47 berry 65 lemon 32 apple; चरण II: 83 65 19 grape melon 47 lemon 32 berry apple; चरण III: 83 65 47 19 melon lemon 32 grape berry apple; चरण IV: 83 65 47 32 19 melon lemon grape berry apple. चरण III ('83 65 47 19 melon lemon 32 grape berry apple') में दाएँ छोर से चौथा तत्व 32 है।
More Data Sufficiency and Input–Output questions
- 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…
- Data sufficiency: decide whether the statements are sufficient to answer the question. How is M related to K? I. K is the brother of N…
- Data sufficiency: decide whether the statements are sufficient to answer the question. On which day of the week does 25 March fall in a…
- Data sufficiency: decide whether the statements are sufficient to answer the question. Is P > R? I. P ≥ Q < S, and R < S. II. P > T ≥ R.