ReasoningEasyIBPS PO · SBI PO · IBPS Clerk
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 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: 61 13 77 29 48. How many steps does the machine need to complete the arrangement?
- A. 2
- B. 4
- C. 3
- D. 5
Correct answer: C. 3
Step I: 13 61 77 29 48; Step II: 13 29 61 77 48; Step III: 13 29 48 61 77. The arrangement is complete after Step III, so 3 steps are needed.
हिंदी में
इनपुट-आउटपुट: एक मशीन संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे छोटी संख्या को लेकर बाईं ओर, पहले से व्यवस्थित संख्याओं के ठीक बाद, रख देती है; बाकी संख्याएँ अपना सापेक्ष क्रम बनाए रखती हैं। जब सभी संख्याएँ व्यवस्थित हो जाती हैं तो मशीन रुक जाती है। इनपुट: 61 13 77 29 48। मशीन को व्यवस्था पूरी करने में कितने चरण लगते हैं?
- A. 2
- B. 4
- C. 3
- D. 5
उत्तर: C. चरण I: 13 61 77 29 48; चरण II: 13 29 61 77 48; चरण III: 13 29 48 61 77। व्यवस्था चरण III के बाद पूर्ण हो जाती है, इसलिए 3 चरण आवश्यक हैं।
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 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…
- Input–output: A machine rearranges a line of words and numbers. In each step, the machine moves the smallest number not yet arranged to…