Input-Output (Basic) - Intermediate-Advanced Level: core concepts INTERMEDIATE-ADVANCED

This fundamentals focus worksheet contains 20 intermediate-advanced-level input-output (basic) problems. Worksheet 21 of 30 focuses on core concepts. Practice aptitude training, reasoning skills, logical ability with our step-by-step solutions. Difficulty: advanced concepts with increasing complexity. Recommended for advanced developing learners.

📝 Worksheet 21 of 30 • 20 questions • ⏱️ Estimated time: 20 minutes • 🎯 Intermediate-advanced level

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

Question 1

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

Question 2

Input: 87 31 38 86 14 40 Step 1: Calculate digit sums → 87(15) 31(4) 38(11) 86(14) 14(5) 40(4) Step 2: Sort by digit sum (ascending) → 31 40 14 38 86 87 What is the final sorted output?
Numbers sorted by sum of their digits (smallest sum first). If sums are equal, numbers sorted by value: 31 40 14 38 86 87

Question 3

Input: 37 17 67 28 11 94 Step 1: 11 17 67 28 37 94 Step 3: 11 17 28 67 37 94 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 11 17 28 37 67 94

Question 4

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

Question 5

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

Question 6

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

Question 7

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

Question 8

Input: 23 asteroid star 67 12 planet Step 1: Separate & sort words → asteroid planet star Step 2: Separate & sort numbers → 12 23 67 Step 3: Alternate (word, number, word, number...) → asteroid 12 planet 23 star 67 What is the final arrangement?
Words sorted alphabetically, numbers sorted ascending, then placed alternately starting with a word: asteroid 12 planet 23 star 67

Question 9

Input: 69 44 66 51 78 86 Step 1: 44 69 66 51 78 86 Step 2: 44 51 66 69 78 86 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 44 51 66 69 78 86

Question 10

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

Question 11

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

Question 12

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

Question 13

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

Question 14

Input: LOGIC Step 1: Reverse the word → CIGOL Step 2: Shift each letter +1 (A→B, B→C, ..., Z→A) → DJHPM Step 3: Rotate left by 2 positions → HPMDJ Step 4: For even positions (0-indexed), keep letter; for odd positions, replace with position number (A=1, B=2...) → H16M4J What is the final output?
Multiple transformations applied sequentially: LOGIC → CIGOL → DJHPM → HPMDJ → H16M4J

Question 15

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

Question 16

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

Question 17

Input: 84 61 45 28 77 90 Step 1: 28 61 45 84 77 90 Step 2: 28 45 61 84 77 90 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 28 45 61 77 84 90

Question 18

Input: 54 94 51 18 63 88 29 32 Step 1: Even numbers (sorted): 18 32 54 88 94 Step 2: Odd numbers (sorted): 29 51 63 Step 3: Combine (evens then odds): 18 32 54 88 94 29 51 63 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 18 32 54 88 94 29 51 63

Question 19

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

Question 20

Input: 92 44 42 38 61 99 64 13 Step 1: Identify prime numbers: 13 61 Step 2: Identify composite numbers: 38 42 44 64 92 99 Step 3: Combine (primes first, then composites, each sorted ascending): 13 61 38 42 44 64 92 99 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 13 61 38 42 44 64 92 99
Previous Worksheet Next Worksheet