Input–output: A machine rearranges a line of words. In odd-numbered steps it takes, from the words not yet arranged, the word whose first letter comes latest in the alphabet (if two tie, the one that comes first in dictionary order) and moves it to the right end, just before the words already placed there. In even-numbered steps it takes the shortest word not yet arranged (if two tie, the one that comes first in dictionary order) and moves it to the left end, just after the words already placed there. Input: mango kiwi peach fig lemon grape plum. Which of the following is Step IV of this input?
- A. fig mango kiwi lemon grape plum peach
- B. fig kiwi lemon grape mango plum peach
- C. fig kiwi mango lemon grape plum peach
- D. fig kiwi mango lemon grape peach plum
Correct answer: C. fig kiwi mango lemon grape plum peach
हिंदी में
इनपुट-आउटपुट: एक मशीन शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। विषम संख्या वाले चरणों में वह अभी तक व्यवस्थित न किए गए शब्दों में से वह शब्द लेती है जिसका पहला अक्षर वर्णमाला में सबसे बाद में आता है (यदि दो बराबर हों तो शब्दकोश में पहले आने वाला) और उसे दाएँ सिरे पर, पहले से रखे शब्दों के ठीक पहले रखती है। सम संख्या वाले चरणों में वह अभी तक व्यवस्थित न हुआ सबसे छोटा शब्द (यदि दो बराबर हों तो शब्दकोश में पहले आने वाला) लेती है और उसे बाएँ सिरे पर, पहले से रखे शब्दों के ठीक बाद रखती है। इनपुट: mango kiwi peach fig lemon grape plum. इस इनपुट का चरण IV निम्नलिखित में से कौन-सा है?
- A. fig mango kiwi lemon grape plum peach
- B. fig kiwi lemon grape mango plum peach
- C. fig kiwi mango lemon grape plum peach
- D. fig kiwi mango lemon grape peach plum
उत्तर: C. चरण I: peach और plum में अक्षर p बराबर है और peach शब्दकोश में पहले है, इसलिए वह दाएँ जाता है। चरण II: fig बाएँ जाता है। चरण III: plum दाएँ, peach के ठीक पहले जाता है। चरण IV: शेष में सबसे छोटा kiwi, fig के बाद बाएँ जाता है।
More Data Sufficiency and Input–Output questions
- Input–output: A machine rearranges a line of numbers and words. In odd-numbered steps it takes the smallest number not yet arranged and…
- Input–output: A machine rearranges a line of numbers and words. In every step it does two things: it takes the smallest even number not…
- Input–output: A machine rearranges a line of numbers and words. In every step it takes the word that comes first in dictionary order among…
- Data sufficiency: decide whether the statements are sufficient to answer the question. How is A related to B? I. A is the daughter of C…
- Decide which of the given statements are needed to answer the question. Who is the father of Rina? I. The husband of Rina's mother is…
- Data sufficiency: decide whether the statements are sufficient to answer the question. How is Tara related to Uma? I. Tara is a woman. II…