Input-Output (Basic) - Beginner Level: core concepts BEGINNER

This foundation builder 🌟 worksheet contains 20 beginner-level input-output (basic) problems. Worksheet 1 of 30 focuses on core concepts. Practice reasoning questions, logical thinking, problem solving with our step-by-step solutions. Difficulty: foundational concepts and basic patterns. Recommended for entry-level learners.

📝 Worksheet 1 of 30 • 20 questions • ⏱️ Estimated time: 20 minutes • 🎯 Beginner level

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

Question 1

Input: 15 46 73 12 75 63 4 52 Step 1: Even numbers (sorted): 4 12 46 52 Step 2: Odd numbers (sorted): 15 63 73 75 Step 3: Combine (evens then odds): 4 12 46 52 15 63 73 75 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 4 12 46 52 15 63 73 75

Question 2

Input: 55 23 22 46 48 59 Step 1: 22 23 55 46 48 59 Step 3: 22 23 46 55 48 59 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 22 23 46 48 55 59

Question 3

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

Question 4

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

Question 5

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

Question 6

Input: 58 15 36 77 45 55 Step 1: 15 58 36 77 45 55 Step 2: 15 36 58 77 45 55 Step 3: 15 36 45 77 58 55 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 15 36 45 55 58 77

Question 7

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

Question 8

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 9

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

Question 10

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

Question 11

Input: 31 90 13 49 25 36 Step 1: Calculate digit sums → 31(4) 90(9) 13(4) 49(13) 25(7) 36(9) Step 2: Sort by digit sum (ascending) → 13 31 25 36 90 49 What is the final sorted output?
Numbers sorted by sum of their digits (smallest sum first). If sums are equal, numbers sorted by value: 13 31 25 36 90 49

Question 12

Input: 15 47 52 73 16 5 95 40 Step 1: Even numbers (sorted): 16 40 52 Step 2: Odd numbers (sorted): 5 15 47 73 95 Step 3: Combine (evens then odds): 16 40 52 5 15 47 73 95 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 16 40 52 5 15 47 73 95

Question 13

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

Question 14

Input: 27 95 67 85 35 72 Step 1: Calculate digit sums → 27(9) 95(14) 67(13) 85(13) 35(8) 72(9) Step 2: Sort by digit sum (ascending) → 35 27 72 67 85 95 What is the final sorted output?
Numbers sorted by sum of their digits (smallest sum first). If sums are equal, numbers sorted by value: 35 27 72 67 85 95

Question 15

Input: 12 91 90 30 6 34 17 52 Step 1: Even numbers (sorted): 6 12 30 34 52 90 Step 2: Odd numbers (sorted): 17 91 Step 3: Combine (evens then odds): 6 12 30 34 52 90 17 91 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 6 12 30 34 52 90 17 91

Question 16

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

Question 17

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

Question 18

Input: 49 70 48 43 74 10 Step 1: 10 70 48 43 74 49 Step 2: 10 43 48 70 74 49 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 10 43 48 49 70 74

Question 19

Input: 8 61 19 95 35 76 29 59 Step 1: Identify prime numbers: 19 29 59 61 Step 2: Identify composite numbers: 8 35 76 95 Step 3: Combine (primes first, then composites, each sorted ascending): 19 29 59 61 8 35 76 95 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 19 29 59 61 8 35 76 95

Question 20

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