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 smallest number not yet arranged to the left end of the line, and moves the word that comes last in dictionary order among the words not yet arranged to the right end of the line. Input: tiger 34 apple 71 mango 15 zebra 52 kite 88. In Step 2, how many elements lie between 15 and 'tiger'?

  1. A. 6
  2. B. 7
  3. C. 5
  4. D. 8

Correct answer: B. 7

Step 1: 15 tiger 34 apple 71 mango 52 kite 88 zebra; Step 2: 34 15 apple 71 mango 52 kite 88 zebra tiger. 15 is 2nd and tiger 10th, so 7 elements lie between. 8 subtracts positions without −1, 6 puts tiger before zebra, and 5 reads Step 3 instead.

हिंदी में

इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में वह अभी तक व्यवस्थित न की गई सबसे छोटी संख्या को पंक्ति के बाएँ छोर पर ले जाती है, और अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे अंत में आने वाले शब्द को पंक्ति के दाएँ छोर पर ले जाती है। इनपुट: tiger 34 apple 71 mango 15 zebra 52 kite 88. चरण 2 में 15 और 'tiger' के बीच कितने तत्व हैं?

  1. A. 6
  2. B. 7
  3. C. 5
  4. D. 8

उत्तर: B. चरण 1: 15 tiger 34 apple 71 mango 52 kite 88 zebra; चरण 2: 34 15 apple 71 mango 52 kite 88 zebra tiger। 15 दूसरे और tiger दसवें स्थान पर है, इसलिए उनके बीच 7 तत्व हैं। 8 स्थानों का अंतर बिना −1 के लेता है, 6 tiger को zebra से पहले मान लेता है, और 5 चरण 3 पढ़ता है।

More Data Sufficiency and Input–Output questions

Exams that ask this topic