ReasoningHardSSC CGL Tier 2 · IBPS PO Mains

Input–output: A machine rearranges a line of words. In each step it takes, from the words not yet arranged, the word with the greatest number of vowels (if two words are equal, the one that comes first in dictionary order) and places it at the left end, just after the words already placed there. The other words keep their relative order. Input: window planet orange tulip eagle river. Which of the following is Step III of this input?

  1. A. eagle orange window planet tulip river
  2. B. eagle orange planet window tulip river
  3. C. window tulip river planet orange eagle
  4. D. orange eagle window planet tulip river

Correct answer: B. eagle orange planet window tulip river

Orange and eagle both have three vowels: eagle (dictionary first) goes first, then orange. In Step III the four words with two vowels tie, and planet is first in dictionary order, giving eagle orange planet window tulip river.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में वह अभी तक व्यवस्थित न किए गए शब्दों में से सबसे अधिक स्वरों वाला शब्द (यदि दो शब्द बराबर हों तो शब्दकोश में पहले आने वाला) लेती है और उसे बाएँ सिरे पर, पहले से रखे शब्दों के ठीक बाद रखती है। अन्य शब्द अपना सापेक्ष क्रम बनाए रखते हैं। इनपुट: window planet orange tulip eagle river. इस इनपुट का चरण III निम्नलिखित में से कौन-सा है?

  1. A. eagle orange window planet tulip river
  2. B. eagle orange planet window tulip river
  3. C. window tulip river planet orange eagle
  4. D. orange eagle window planet tulip river

उत्तर: B. orange और eagle दोनों में तीन स्वर हैं: eagle (शब्दकोश में पहले) पहले जाता है, फिर orange। चरण III में दो स्वरों वाले चारों शब्द बराबर हैं और planet शब्दकोश में पहले है, इसलिए eagle orange planet window tulip river बनता है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic