ReasoningHardIBPS PO Mains · SBI PO Mains · SSC CGL Tier 2

Input–output: A machine rearranges a line of words and numbers. In each step, it moves the word that comes first in dictionary order among the words not yet arranged to the right end of the line, and then moves the largest number not yet arranged to the right end, just after that word. Input: 58 gate 17 bird 93 lamp 42 echo 26 fan. Which of the following is Step 2?

  1. A. 58 gate 17 lamp 42 26 fan bird 93 echo
  2. B. gate 17 lamp 42 26 fan bird 93 echo 58
  3. C. gate 17 lamp 26 bird 93 echo 58 fan 42
  4. D. gate 17 lamp 42 echo 26 fan bird 93 58

Correct answer: B. gate 17 lamp 42 26 fan bird 93 echo 58

Step 1 sends bird and 93 to the right end; Step 2 sends echo and then 58 there: gate 17 lamp 42 26 fan bird 93 echo 58. The other lines are Step 3, or Step 2 with only one of the two moves made.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में वह अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे पहले आने वाले शब्द को पंक्ति के दाएँ छोर पर ले जाती है, और फिर अभी तक व्यवस्थित न की गई सबसे बड़ी संख्या को उस शब्द के ठीक बाद दाएँ छोर पर ले जाती है। इनपुट: 58 gate 17 bird 93 lamp 42 echo 26 fan. निम्नलिखित में से कौन-सा चरण 2 है?

  1. A. 58 gate 17 lamp 42 26 fan bird 93 echo
  2. B. gate 17 lamp 42 26 fan bird 93 echo 58
  3. C. gate 17 lamp 26 bird 93 echo 58 fan 42
  4. D. gate 17 lamp 42 echo 26 fan bird 93 58

उत्तर: B. चरण 1 bird और 93 को दाएँ छोर पर भेजता है; चरण 2 echo और फिर 58 को वहाँ भेजता है: gate 17 lamp 42 26 fan bird 93 echo 58। अन्य पंक्तियाँ चरण 3 हैं, या चरण 2 जिसमें दोनों में से केवल एक चाल हुई है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic