Input-Output (Basic) - Beginner-Intermediate Level: application-based problems BEGINNER-INTERMEDIATE

This deep dive ★ worksheet contains 20 beginner-intermediate-level input-output (basic) problems. Worksheet 11 of 30 focuses on application-based problems. Practice practice tests, exam preparation, competitive exams with our step-by-step solutions. Difficulty: building on fundamentals with moderate challenges. Recommended for developing learners.

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

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

Question 1

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

Question 2

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

Question 3

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

Question 4

Input: 93 68 63 39 55 48 Step 1: 39 68 63 93 55 48 Step 2: 39 48 63 93 55 68 Step 3: 39 48 55 93 63 68 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 39 48 55 63 68 93

Question 5

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

Question 6

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

Question 7

Input: 35 48 38 64 94 29 49 54 Step 1: Identify prime numbers: 29 Step 2: Identify composite numbers: 35 38 48 49 54 64 94 Step 3: Combine (primes first, then composites, each sorted ascending): 29 35 38 48 49 54 64 94 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 29 35 38 48 49 54 64 94

Question 8

Input: 33 41 96 59 79 47 Step 1: Calculate digit sums → 33(6) 41(5) 96(15) 59(14) 79(16) 47(11) Step 2: Sort by digit sum (ascending) → 41 33 47 59 96 79 What is the final sorted output?
Numbers sorted by sum of their digits (smallest sum first). If sums are equal, numbers sorted by value: 41 33 47 59 96 79

Question 9

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

Question 10

Input: 85 97 93 26 29 90 24 51 Step 1: Identify prime numbers: 29 97 Step 2: Identify composite numbers: 24 26 51 85 90 93 Step 3: Combine (primes first, then composites, each sorted ascending): 29 97 24 26 51 85 90 93 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 29 97 24 26 51 85 90 93

Question 11

Input: 94 97 62 89 64 41 49 21 Step 1: Identify prime numbers: 41 89 97 Step 2: Identify composite numbers: 21 49 62 64 94 Step 3: Combine (primes first, then composites, each sorted ascending): 41 89 97 21 49 62 64 94 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 41 89 97 21 49 62 64 94

Question 12

Input: 38 3 72 84 44 50 90 25 Step 1: Identify prime numbers: 3 Step 2: Identify composite numbers: 25 38 44 50 72 84 90 Step 3: Combine (primes first, then composites, each sorted ascending): 3 25 38 44 50 72 84 90 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 3 25 38 44 50 72 84 90

Question 13

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

Question 14

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

Question 15

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

Question 16

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

Question 17

Input: cat a 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 18

Input: 56 20 15 84 38 10 Step 1: Calculate digit sums → 56(11) 20(2) 15(6) 84(12) 38(11) 10(1) Step 2: Sort by digit sum (ascending) → 10 20 15 38 56 84 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 15 38 56 84

Question 19

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

Question 20

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