Input-Output (Basic) - Intermediate Level: complex scenario handling INTERMEDIATE

Boost your speed and accuracy with this adaptive style 📈 worksheet. Worksheet 15 of 30 presents 20 intermediate-level input-output (basic) problems. Focus on complex scenario handling while practicing reasoning questions, logical thinking, problem solving. Difficulty: moderate complexity with mixed patterns. Perfect for mid-level test takers.

📝 Worksheet 15 of 30 • 20 questions • ⏱️ Estimated time: 20 minutes • 🎯 Intermediate level

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

Question 1

Input: 15 94 96 73 20 42 Step 2: 15 20 96 73 94 42 Step 3: 15 20 42 73 94 96 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 15 20 42 73 94 96

Question 2

Input: 13 27 84 14 99 40 71 24 Step 1: Even numbers (sorted): 14 24 40 84 Step 2: Odd numbers (sorted): 13 27 71 99 Step 3: Combine (evens then odds): 14 24 40 84 13 27 71 99 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 14 24 40 84 13 27 71 99

Question 3

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

Question 4

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

Question 5

Input: 10 55 60 73 58 81 Step 3: 10 55 58 73 60 81 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 10 55 58 60 73 81

Question 6

Input: 88 84 16 98 5 76 25 21 Step 1: Identify prime numbers: 5 Step 2: Identify composite numbers: 16 21 25 76 84 88 98 Step 3: Combine (primes first, then composites, each sorted ascending): 5 16 21 25 76 84 88 98 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 5 16 21 25 76 84 88 98

Question 7

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

Question 8

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

Question 9

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

Question 10

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

Question 11

Input: 46 23 85 96 8 52 67 28 Step 1: Identify prime numbers: 23 67 Step 2: Identify composite numbers: 8 28 46 52 85 96 Step 3: Combine (primes first, then composites, each sorted ascending): 23 67 8 28 46 52 85 96 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 23 67 8 28 46 52 85 96

Question 12

Input: butterfly cat dog butterfly bat 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 13

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

Question 14

Input: 12 21 39 67 65 56 95 51 Step 1: Identify prime numbers: 67 Step 2: Identify composite numbers: 12 21 39 51 56 65 95 Step 3: Combine (primes first, then composites, each sorted ascending): 67 12 21 39 51 56 65 95 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 67 12 21 39 51 56 65 95

Question 15

Input: 92 79 59 78 73 21 15 66 Step 1: Identify prime numbers: 59 73 79 Step 2: Identify composite numbers: 15 21 66 78 92 Step 3: Combine (primes first, then composites, each sorted ascending): 59 73 79 15 21 66 78 92 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 59 73 79 15 21 66 78 92

Question 16

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

Question 17

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

Question 18

Input: 41 8 82 5 38 20 73 92 Step 1: Identify prime numbers: 5 41 73 Step 2: Identify composite numbers: 8 20 38 82 92 Step 3: Combine (primes first, then composites, each sorted ascending): 5 41 73 8 20 38 82 92 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 5 41 73 8 20 38 82 92

Question 19

Input: 87 48 53 9 2 61 73 91 Step 1: Even numbers (sorted): 2 48 Step 2: Odd numbers (sorted): 9 53 61 73 87 91 Step 3: Combine (evens then odds): 2 48 9 53 61 73 87 91 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 2 48 9 53 61 73 87 91

Question 20

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
Previous Worksheet Next Worksheet