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. Which step reads '52 34 15 apple 71 kite 88 zebra tiger mango'?
- A. Step 5
- B. Step 2
- C. Step 4
- D. Step 3
Correct answer: D. Step 3
Step 1: 15 tiger 34 apple 71 mango 52 kite 88 zebra. Step 2: 34 15 apple 71 mango 52 kite 88 zebra tiger. Step 3 moves 52 to the left and mango to the right, giving the line shown.
हिंदी में
इनपुट-आउटपुट: एक मशीन शब्दों और संख्याओं की एक पंक्ति को पुनर्व्यवस्थित करती है। प्रत्येक चरण में वह अभी तक व्यवस्थित न की गई सबसे छोटी संख्या को पंक्ति के बाएँ छोर पर ले जाती है, और अभी तक व्यवस्थित न किए गए शब्दों में से शब्दकोश क्रम में सबसे अंत में आने वाले शब्द को पंक्ति के दाएँ छोर पर ले जाती है। इनपुट: tiger 34 apple 71 mango 15 zebra 52 kite 88. कौन-सा चरण '52 34 15 apple 71 kite 88 zebra tiger mango' है?
- A. चरण 5
- B. चरण 2
- C. चरण 4
- D. चरण 3
उत्तर: D. चरण 1: 15 tiger 34 apple 71 mango 52 kite 88 zebra। चरण 2: 34 15 apple 71 mango 52 kite 88 zebra tiger। चरण 3 में 52 बाईं ओर और mango दाईं ओर जाता है, जिससे दी गई पंक्ति बनती है।
Practise more Data Sufficiency and Input–Output questionsData Sufficiency and Input–Output: notes and key points
More Data Sufficiency and Input–Output questions
- 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…
- 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…
- 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…