ReasoningVery hardIBPS PO · SBI PO · IBPS Clerk

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?

  1. A. 18 35 gold 72 iron 94 lead 56 tin zinc
  2. B. 18 35 56 72 gold 94 iron lead tin zinc
  3. C. 18 35 56 gold 72 iron 94 lead zinc tin
  4. D. 18 35 56 gold 72 iron 94 lead tin zinc

Correct answer: D. 18 35 56 gold 72 iron 94 lead tin zinc

Working step by step: Step I: 18 gold 72 iron 35 94 lead tin 56 zinc; Step II: 18 35 gold 72 iron 94 lead 56 tin zinc; Step III: 18 35 56 gold 72 iron 94 lead tin zinc; Step IV: 18 35 56 72 gold 94 iron lead tin zinc; Step V: 18 35 56 72 94 gold iron lead tin zinc. So Step III is '18 35 56 gold 72 iron 94 lead tin zinc'.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे छोटी संख्या को बाईं ओर, वहाँ पहले से व्यवस्थित संख्याओं के ठीक बाद, ले जाती है, और फिर अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे अंत में आने वाले शब्द को दाएँ छोर पर, वहाँ पहले से व्यवस्थित शब्दों के ठीक पहले, ले जाती है। अन्य सभी तत्व अपना सापेक्ष क्रम बनाए रखते हैं। जब प्रत्येक तत्व व्यवस्थित हो जाता है तो मशीन रुक जाती है। इनपुट: gold 72 iron 35 zinc 94 lead 18 tin 56. निम्नलिखित में से कौन-सा चरण III है?

  1. A. 18 35 gold 72 iron 94 lead 56 tin zinc
  2. B. 18 35 56 72 gold 94 iron lead tin zinc
  3. C. 18 35 56 gold 72 iron 94 lead zinc tin
  4. 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

Exams that ask this topic