ReasoningModerateIBPS PO · SBI PO · IBPS Clerk
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 words not yet arranged and moves it to the left, just after the words already arranged; the other words keep their relative order. The machine stops when all the words are arranged. Input: boat cart jeep auto taxi van. How many steps does the machine need to complete the arrangement?
- A. 3
- B. 4
- C. 5
- D. 6
Correct answer: B. 4
Step I: van boat cart jeep auto taxi; Step II: van taxi boat cart jeep auto; Step III: van taxi jeep boat cart auto; Step IV: van taxi jeep cart boat auto. The arrangement is complete after Step IV, so 4 steps are needed.
हिंदी में
इनपुट-आउटपुट: एक मशीन शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन उन शब्दों में से, जिन्हें अभी व्यवस्थित नहीं किया गया है, शब्दकोश क्रम में सबसे अंत में आने वाले शब्द को लेकर बाईं ओर, पहले से व्यवस्थित शब्दों के ठीक बाद, रख देती है; बाकी शब्द अपना सापेक्ष क्रम बनाए रखते हैं। जब सभी शब्द व्यवस्थित हो जाते हैं तो मशीन रुक जाती है। इनपुट: boat cart jeep auto taxi van. मशीन को व्यवस्था पूरी करने में कितने चरण लगते हैं?
- A. 3
- B. 4
- C. 5
- D. 6
उत्तर: B. चरण I: van boat cart jeep auto taxi; चरण II: van taxi boat cart jeep auto; चरण III: van taxi jeep boat cart auto; चरण IV: van taxi jeep cart boat auto. व्यवस्था चरण IV के बाद पूर्ण हो जाती है, इसलिए 4 चरण आवश्यक हैं।
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 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…
- 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 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…