ReasoningHardIBPS 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: 18 45 73 62 90 27 51. In Step III, which element is 2nd from the right end?
- A. 45
- B. 51
- C. 27
- D. 18
Correct answer: C. 27
Step I: 90 18 45 73 62 27 51; Step II: 90 73 18 45 62 27 51; Step III: 90 73 62 18 45 27 51; Step IV: 90 73 62 51 18 45 27; Step V: 90 73 62 51 45 18 27; Step VI: 90 73 62 51 45 27 18. In Step III ('90 73 62 18 45 27 51'), the 2nd element from the right is 27.
हिंदी में
इनपुट-आउटपुट: एक मशीन संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न की गई सबसे बड़ी संख्या को लेकर बाईं ओर, पहले से व्यवस्थित संख्याओं के ठीक बाद, रख देती है; बाकी संख्याएँ अपना सापेक्ष क्रम बनाए रखती हैं। जब सभी संख्याएँ व्यवस्थित हो जाती हैं तो मशीन रुक जाती है। इनपुट: 18 45 73 62 90 27 51. चरण III में दाएँ छोर से दूसरा तत्व कौन-सा है?
- A. 45
- B. 51
- C. 27
- D. 18
उत्तर: C. चरण I: 90 18 45 73 62 27 51; चरण II: 90 73 18 45 62 27 51; चरण III: 90 73 62 18 45 27 51; चरण IV: 90 73 62 51 18 45 27; चरण V: 90 73 62 51 45 18 27; चरण VI: 90 73 62 51 45 27 18. चरण III ('90 73 62 18 45 27 51') में दाएँ छोर से दूसरा तत्व 27 है।
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 longest word not yet arranged (if two are equally…
- 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 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. 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 smallest number not yet arranged to…