ReasoningModerateIBPS PO · SBI PO · IBPS Clerk
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 long, the one that comes first in dictionary order) 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: ink pencil ruler chalk duster map. Which of the following is Step II?
- A. duster pencil ink ruler chalk map
- B. duster ink pencil ruler chalk map
- C. duster pencil chalk ink ruler map
- D. duster pencil ink ruler map chalk
Correct answer: A. duster pencil ink ruler chalk map
Working step by step: Step I: duster ink pencil ruler chalk map; Step II: duster pencil ink ruler chalk map; Step III: duster pencil chalk ink ruler map; Step IV: duster pencil chalk ruler ink map. So Step II is 'duster pencil ink ruler chalk map'.
हिंदी में
इनपुट-आउटपुट: एक मशीन शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में मशीन अभी तक व्यवस्थित न किए गए सबसे लंबे शब्द को (यदि दो शब्द समान लंबाई के हों तो शब्दकोश क्रम में पहले आने वाले को) लेकर बाईं ओर, पहले से व्यवस्थित शब्दों के ठीक बाद, रख देती है; बाकी शब्द अपना सापेक्ष क्रम बनाए रखते हैं। जब सभी शब्द व्यवस्थित हो जाते हैं तो मशीन रुक जाती है। इनपुट: ink pencil ruler chalk duster map. निम्नलिखित में से कौन-सा चरण II है?
- A. duster pencil ink ruler chalk map
- B. duster ink pencil ruler chalk map
- C. duster pencil chalk ink ruler map
- D. duster pencil ink ruler map chalk
उत्तर: A. चरण-दर-चरण हल करने पर: चरण I: duster ink pencil ruler chalk map; चरण II: duster pencil ink ruler chalk map; चरण III: duster pencil chalk ink ruler map; चरण IV: duster pencil chalk ruler ink map. इसलिए चरण II 'duster pencil ink ruler chalk map' है।
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 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…
- 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…