Input-Output (Basic) - Beginner Level: tricky variations BEGINNER

Level up your input-output (basic) skills with this entry level practice. 20 beginner-level problems await in Worksheet 4 of 30. Focus area: tricky variations. Learn practice tests, exam preparation, competitive exams through systematic practice. Designed for entry-level learners seeking foundational concepts and basic patterns.

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

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

Question 1

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

Question 2

Input: 91 76 52 32 35 25 41 15 Step 1: Even numbers (sorted): 32 52 76 Step 2: Odd numbers (sorted): 15 25 35 41 91 Step 3: Combine (evens then odds): 32 52 76 15 25 35 41 91 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 32 52 76 15 25 35 41 91

Question 3

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

Question 4

Input: 88 53 52 58 93 86 Step 1: 52 53 88 58 93 86 Step 3: 52 53 58 88 93 86 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 52 53 58 86 88 93

Question 5

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

Question 6

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

Question 7

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

Question 8

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

Question 9

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

Question 10

Input: 48 88 67 46 45 85 Step 1: 45 88 67 46 48 85 Step 2: 45 46 67 88 48 85 Step 3: 45 46 48 88 67 85 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 45 46 48 67 85 88

Question 11

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

Question 12

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

Question 13

Input: 46 75 43 39 12 85 Step 1: 12 75 43 39 46 85 Step 2: 12 39 43 75 46 85 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 12 39 43 46 75 85

Question 14

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

Question 15

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

Question 16

Input: 34 76 82 97 27 87 Step 1: Calculate digit sums → 34(7) 76(13) 82(10) 97(16) 27(9) 87(15) Step 2: Sort by digit sum (ascending) → 34 27 82 76 87 97 What is the final sorted output?
Numbers sorted by sum of their digits (smallest sum first). If sums are equal, numbers sorted by value: 34 27 82 76 87 97

Question 17

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

Question 18

Input: 94 8 11 90 42 69 96 70 Step 1: Even numbers (sorted): 8 42 70 90 94 96 Step 2: Odd numbers (sorted): 11 69 Step 3: Combine (evens then odds): 8 42 70 90 94 96 11 69 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 8 42 70 90 94 96 11 69

Question 19

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

Question 20

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