Input-Output (Basic) - Advanced Level: step-by-step approach ADVANCED

Quick competitive exam prep session: 20 advanced-level input-output (basic) questions. Worksheet 27 of 30 - Focus: step-by-step approach. Practice competitive exams, aptitude training, reasoning skills with instant feedback. Great for advanced students needing complex scenarios and multi-step problems practice.

📝 Worksheet 27 of 30 • 20 questions • ⏱️ Estimated time: 20 minutes • 🎯 Advanced level

What you'll learn in this worksheet:
Your progress through Input-Output (Basic)
Worksheet 27 of 30 (90% complete)

Question 1

Input: 12 cherry 5 56 78 apple grape Step 1: Sorted words → apple cherry grape Step 2: Sorted numbers → 5 12 56 78 Step 3: Interleave (number, word, number, word...) → 5 apple 12 cherry 56 grape 78 What is the final output?
Words sorted alphabetically, numbers sorted ascending, then interleaved in pattern: number, word, number, word... → 5 apple 12 cherry 56 grape 78

Question 2

Input: 38 22 29 84 56 26 Step 1: 22 38 29 84 56 26 Step 2: 22 26 29 84 56 38 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 22 26 29 38 56 84

Question 3

Input: 95 6 85 88 69 8 74 4 Step 1: Even numbers (sorted): 4 6 8 74 88 Step 2: Odd numbers (sorted): 69 85 95 Step 3: Combine (evens then odds): 4 6 8 74 88 69 85 95 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 4 6 8 74 88 69 85 95

Question 4

Input: 56 mars 15 mercury 28 sun Step 1: Separate → Words: mars mercury sun, Numbers: 56 15 28 Step 2: Sort numbers ascending → 15 28 56 Step 3: Sort words by length (then alphabetically) → sun mars mercury Step 4: Alternate (word, number, word, number...) → sun 15 mars 28 mercury 56 What is the final output?
Words sorted by length (shortest first, alphabetically for ties), numbers sorted ascending, then alternated: sun 15 mars 28 mercury 56

Question 5

Input: bird ant dog elephant lion Step 1: ant bird dog elephant lion What will be the final output after complete sorting?
The words are arranged in alphabetical (dictionary) order. bird ant dog elephant lion → ant bird dog elephant lion

Question 6

Input: 34 planet sun 78 moon 45 Step 1: Separate & sort words → moon planet sun Step 2: Separate & sort numbers → 34 45 78 Step 3: Alternate (word, number, word, number...) → moon 34 planet 45 sun 78 What is the final arrangement?
Words sorted alphabetically, numbers sorted ascending, then placed alternately starting with a word: moon 34 planet 45 sun 78

Question 7

Input: 26 6 69 37 84 36 12 64 Step 1: Even numbers (sorted): 6 12 26 36 64 84 Step 2: Odd numbers (sorted): 37 69 Step 3: Combine (evens then odds): 6 12 26 36 64 84 37 69 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 6 12 26 36 64 84 37 69

Question 8

Input: grape 5 elderberry 23 31 78 date Step 1: Sorted words → date elderberry grape Step 2: Sorted numbers → 5 23 31 78 Step 3: Interleave (number, word, number, word...) → 5 date 23 elderberry 31 grape 78 What is the final output?
Words sorted alphabetically, numbers sorted ascending, then interleaved in pattern: number, word, number, word... → 5 date 23 elderberry 31 grape 78

Question 9

Input: coding hello world madam deed Step 1: Palindromic words (read same forwards/backwards): deed madam Step 2: Non-palindromic words: coding hello world Step 3: Combine (palindromes first, then others, each sorted alphabetically): deed madam coding hello world What is the final output?
Palindromic words first (alphabetically sorted), then non-palindromic words (alphabetically sorted): deed madam coding hello world

Question 10

Input: 84 14 91 45 98 16 69 92 Step 1: Identify prime numbers: Step 2: Identify composite numbers: 14 16 45 69 84 91 92 98 Step 3: Combine (primes first, then composites, each sorted ascending): 14 16 45 69 84 91 92 98 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 14 16 45 69 84 91 92 98

Question 11

Input: 67 mercury 42 saturn neptune 28 Step 1: Separate → Words: mercury saturn neptune, Numbers: 67 42 28 Step 2: Sort numbers ascending → 28 42 67 Step 3: Sort words by length (then alphabetically) → saturn mercury neptune Step 4: Alternate (word, number, word, number...) → saturn 28 mercury 42 neptune 67 What is the final output?
Words sorted by length (shortest first, alphabetically for ties), numbers sorted ascending, then alternated: saturn 28 mercury 42 neptune 67

Question 12

Input: deed coding world hello civic Step 1: Palindromic words (read same forwards/backwards): civic deed Step 2: Non-palindromic words: coding hello world Step 3: Combine (palindromes first, then others, each sorted alphabetically): civic deed coding hello world What is the final output?
Palindromic words first (alphabetically sorted), then non-palindromic words (alphabetically sorted): civic deed coding hello world

Question 13

Input: ox rat butterfly cat hippopotamus Step 1: ox Step 2: ox cat rat Rule: Arrange words by length (shortest first), then alphabetically for same length. What is the final output?
Sorted by word length: ox cat rat butterfly hippopotamus

Question 14

Input: ant goat fish apple hat Step 1: Identify vowel-starting words: ant apple Step 2: Identify consonant-starting words: fish goat hat Step 3: Sort each group alphabetically Step 4: Combine (vowels first, then consonants): ant apple fish goat hat What is the final output?
Words starting with vowels come first (sorted alphabetically), followed by words starting with consonants (sorted alphabetically): ant apple fish goat hat

Question 15

Input: 25 4 88 8 48 39 37 26 Step 1: Identify prime numbers: 37 Step 2: Identify composite numbers: 4 8 25 26 39 48 88 Step 3: Combine (primes first, then composites, each sorted ascending): 37 4 8 25 26 39 48 88 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 37 4 8 25 26 39 48 88

Question 16

Input: butterfly butterfly elephant rat a Step 1: a Step 2: a rat Rule: Arrange words by length (shortest first), then alphabetically for same length. What is the final output?
Sorted by word length: a rat elephant butterfly butterfly

Question 17

Input: lion kite apple insect cat Step 1: Identify vowel-starting words: apple insect Step 2: Identify consonant-starting words: cat kite lion Step 3: Sort each group alphabetically Step 4: Combine (vowels first, then consonants): apple insect cat kite lion What is the final output?
Words starting with vowels come first (sorted alphabetically), followed by words starting with consonants (sorted alphabetically): apple insect cat kite lion

Question 18

Input: 34 93 56 91 82 79 Step 2: 34 56 93 91 82 79 Step 3: 34 56 79 91 82 93 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 34 56 79 82 91 93

Question 19

Input: 23 elderberry 44 5 78 cherry apple grape Step 1: Sorted words → apple cherry elderberry grape Step 2: Sorted numbers → 5 23 44 78 Step 3: Interleave (number, word, number, word...) → 5 apple 23 cherry 44 elderberry 78 grape What is the final output?
Words sorted alphabetically, numbers sorted ascending, then interleaved in pattern: number, word, number, word... → 5 apple 23 cherry 44 elderberry 78 grape

Question 20

Input: deed coding level hello python Step 1: Palindromic words (read same forwards/backwards): deed level Step 2: Non-palindromic words: coding hello python Step 3: Combine (palindromes first, then others, each sorted alphabetically): deed level coding hello python What is the final output?
Palindromic words first (alphabetically sorted), then non-palindromic words (alphabetically sorted): deed level coding hello python
Previous Worksheet Next Worksheet