ReasoningEasyIBPS PO · SBI PO · IBPS Clerk
Input–output: A machine rearranges a line of numbers. In each step, the machine takes the largest number not yet arranged and moves it to the left, just after the numbers already arranged; the other numbers keep their relative order. The machine stops when all the numbers are arranged. Input: 34 81 17 56 92 45. Which of the following is Step III?
- A. 92 81 34 17 56 45
- B. 92 81 56 34 17 45
- C. 92 81 56 45 34 17
- D. 92 81 56 34 45 17
Correct answer: B. 92 81 56 34 17 45
Working step by step: Step I: 92 34 81 17 56 45; Step II: 92 81 34 17 56 45; Step III: 92 81 56 34 17 45; Step IV: 92 81 56 45 34 17. So Step III is '92 81 56 34 17 45'.
हिंदी में
इनपुट-आउटपुट: एक मशीन संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे बड़ी संख्या को लेकर बाईं ओर, पहले से व्यवस्थित संख्याओं के ठीक बाद, रख देती है; बाकी संख्याएँ अपना सापेक्ष क्रम बनाए रखती हैं। जब सभी संख्याएँ व्यवस्थित हो जाती हैं तो मशीन रुक जाती है। इनपुट: 34 81 17 56 92 45. निम्नलिखित में से कौन-सा चरण III है?
- A. 92 81 34 17 56 45
- B. 92 81 56 34 17 45
- C. 92 81 56 45 34 17
- D. 92 81 56 34 45 17
उत्तर: B. चरण-दर-चरण हल करने पर: चरण I: 92 34 81 17 56 45; चरण II: 92 81 34 17 56 45; चरण III: 92 81 56 34 17 45; चरण IV: 92 81 56 45 34 17. इसलिए चरण III '92 81 56 34 17 45' है।
Practise more Data Sufficiency and Input–Output questionsData Sufficiency and Input–Output: notes and key points
More Data Sufficiency and Input–Output questions
- 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. In each step, the machine takes the word that comes first in dictionary order among…
- 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 numbers. In each step, the machine takes the largest 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…