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'?
- A. 6
- B. 7
- C. 5
- 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' के बीच कितने तत्व हैं?
- A. 6
- B. 7
- C. 5
- 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 पढ़ता है।
Practise more Data Sufficiency and Input–Output questionsData Sufficiency and Input–Output: notes and key points
More Data Sufficiency and Input–Output questions
- Data sufficiency: decide whether the statements are sufficient to answer the question. Five persons P, Q, R, S and T are compared by…
- Data sufficiency: decide whether the statements are sufficient to answer the question. Five students K, L, M, N and O are compared by…
- Data sufficiency: decide whether the statements are sufficient to answer the question. Five persons A, B, C, D and E are compared by age…
- Data sufficiency: decide whether the statements are sufficient to answer the question. Six persons K, L, M, N, O and P are compared by…
- Data sufficiency: decide whether the statements are sufficient to answer the question. Six students K, L, M, N, O and P are compared by…
- Data sufficiency: decide whether the statements are sufficient to answer the question. Five persons A, B, C, D and E are compared by age…