Input-Output (Basic) - Advanced Level: quick solving techniques ADVANCED

Exam-focused holistic practice ★ worksheet: 20 advanced-level input-output (basic) questions. Worksheet 23 of 30 targets quick solving techniques. Build proficiency in logical thinking, problem solving, practice tests with detailed solutions. Ideal for advanced competitive exam preparation.

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

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

Question 1

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

Question 2

Input: monkey lion goat elephant ice Step 1: Identify vowel-starting words: elephant ice Step 2: Identify consonant-starting words: goat lion monkey Step 3: Sort each group alphabetically Step 4: Combine (vowels first, then consonants): elephant 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): elephant ice goat lion monkey

Question 3

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

Question 4

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

Question 5

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

Question 6

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

Question 7

Input: 52 32 40 71 46 10 Step 1: 10 32 40 71 46 52 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 10 32 40 46 52 71

Question 8

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

Question 9

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

Question 10

Input: 64 54 94 31 52 59 Step 1: 31 54 94 64 52 59 Step 2: 31 52 94 64 54 59 Step 3: 31 52 54 64 94 59 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 31 52 54 59 64 94

Question 11

Input: 65 77 20 76 79 58 36 39 Step 1: Even numbers (sorted): 20 36 58 76 Step 2: Odd numbers (sorted): 39 65 77 79 Step 3: Combine (evens then odds): 20 36 58 76 39 65 77 79 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 20 36 58 76 39 65 77 79

Question 12

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

Question 13

Input: 40 12 36 47 77 70 66 30 Step 1: Identify prime numbers: 47 Step 2: Identify composite numbers: 12 30 36 40 66 70 77 Step 3: Combine (primes first, then composites, each sorted ascending): 47 12 30 36 40 66 70 77 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 47 12 30 36 40 66 70 77

Question 14

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

Question 15

Input: 34 54 16 10 42 89 2 63 Step 1: Even numbers (sorted): 2 10 16 34 42 54 Step 2: Odd numbers (sorted): 63 89 Step 3: Combine (evens then odds): 2 10 16 34 42 54 63 89 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 2 10 16 34 42 54 63 89

Question 16

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

Question 17

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

Question 18

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

Question 19

Input: 15 21 45 20 76 41 Step 2: 15 20 45 21 76 41 Step 3: 15 20 21 45 76 41 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 15 20 21 41 45 76

Question 20

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