Input-Output (Basic) - Intermediate Level: multi-step reasoning INTERMEDIATE

Master input-output (basic) concepts through this excellence pursuit practice set. Worksheet 16 of 30 contains 20 intermediate-level problems. Deep dive into multi-step reasoning while learning logical thinking, problem solving, practice tests. Recommended for mid-level learners aiming for moderate complexity with mixed patterns.

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

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

Question 1

Input: 9 92 30 24 73 35 40 97 Step 1: Even numbers (sorted): 24 30 40 92 Step 2: Odd numbers (sorted): 9 35 73 97 Step 3: Combine (evens then odds): 24 30 40 92 9 35 73 97 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 24 30 40 92 9 35 73 97

Question 2

Input: 54 64 78 65 87 67 Step 1: Calculate digit sums → 54(9) 64(10) 78(15) 65(11) 87(15) 67(13) Step 2: Sort by digit sum (ascending) → 54 64 65 67 78 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: 54 64 65 67 78 87

Question 3

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

Question 4

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

Question 5

Input: dog elephant monkey zebra cat Step 1: dog elephant monkey cat zebra Step 2: dog elephant cat monkey zebra Step 3: dog cat elephant monkey zebra What will be the final output after complete sorting?
The words are arranged in alphabetical (dictionary) order. dog elephant monkey zebra cat → cat dog elephant monkey zebra

Question 6

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

Question 7

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

Question 8

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

Question 9

Input: 51 90 92 87 63 32 Step 1: 32 90 92 87 63 51 Step 2: 32 51 92 87 63 90 Step 3: 32 51 63 87 92 90 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 32 51 63 87 90 92

Question 10

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

Question 11

Input: 10 20 23 26 84 67 Step 1: Calculate digit sums → 10(1) 20(2) 23(5) 26(8) 84(12) 67(13) Step 2: Sort by digit sum (ascending) → 10 20 23 26 84 67 What is the final sorted output?
Numbers sorted by sum of their digits (smallest sum first). If sums are equal, numbers sorted by value: 10 20 23 26 84 67

Question 12

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

Question 13

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

Question 14

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

Question 15

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

Question 16

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

Question 17

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

Question 18

Input: 12 27 58 84 70 77 Step 1: Calculate digit sums → 12(3) 27(9) 58(13) 84(12) 70(7) 77(14) Step 2: Sort by digit sum (ascending) → 12 70 27 84 58 77 What is the final sorted output?
Numbers sorted by sum of their digits (smallest sum first). If sums are equal, numbers sorted by value: 12 70 27 84 58 77

Question 19

Input: 11 6 18 72 66 85 81 57 Step 1: Identify prime numbers: 11 Step 2: Identify composite numbers: 6 18 57 66 72 81 85 Step 3: Combine (primes first, then composites, each sorted ascending): 11 6 18 57 66 72 81 85 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 11 6 18 57 66 72 81 85

Question 20

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