Input-Output (Basic) - Advanced Level: common mistakes to avoid ADVANCED

Master input-output (basic) concepts through this hard problem set practice set. Worksheet 26 of 30 contains 20 advanced-level problems. Deep dive into common mistakes to avoid while learning exam preparation, competitive exams, aptitude training. Recommended for advanced learners aiming for complex scenarios and multi-step problems.

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

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

Question 1

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

Question 2

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

Question 3

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

Question 4

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

Question 5

Input: 48 65 41 56 98 59 Step 1: 41 65 48 56 98 59 Step 2: 41 48 65 56 98 59 Step 3: 41 48 56 65 98 59 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 41 48 56 59 65 98

Question 6

Input: 72 60 55 32 50 66 Step 1: Calculate digit sums → 72(9) 60(6) 55(10) 32(5) 50(5) 66(12) Step 2: Sort by digit sum (ascending) → 32 50 60 72 55 66 What is the final sorted output?
Numbers sorted by sum of their digits (smallest sum first). If sums are equal, numbers sorted by value: 32 50 60 72 55 66

Question 7

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

Question 8

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

Question 9

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 10

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

Question 11

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

Question 12

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

Question 13

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

Question 14

Input: 26 62 87 92 79 35 Step 2: 26 35 87 92 79 62 Step 3: 26 35 62 92 79 87 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 26 35 62 79 87 92

Question 15

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

Question 16

Input: 93 99 2 41 62 58 55 23 Step 1: Even numbers (sorted): 2 58 62 Step 2: Odd numbers (sorted): 23 41 55 93 99 Step 3: Combine (evens then odds): 2 58 62 23 41 55 93 99 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 2 58 62 23 41 55 93 99

Question 17

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

Question 18

Input: 40 35 22 64 92 86 Step 1: Calculate digit sums → 40(4) 35(8) 22(4) 64(10) 92(11) 86(14) Step 2: Sort by digit sum (ascending) → 22 40 35 64 92 86 What is the final sorted output?
Numbers sorted by sum of their digits (smallest sum first). If sums are equal, numbers sorted by value: 22 40 35 64 92 86

Question 19

Input: 63 25 9 64 55 76 16 45 Step 1: Even numbers (sorted): 16 64 76 Step 2: Odd numbers (sorted): 9 25 45 55 63 Step 3: Combine (evens then odds): 16 64 76 9 25 45 55 63 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 16 64 76 9 25 45 55 63

Question 20

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