Input-Output (Basic) - Expert Level: exam-oriented practice EXPERT

Strategic basic drills ★ for input-output (basic): 20 expert-level problems. Worksheet 29 of 30 - Focus: exam-oriented practice. Develop expertise in reasoning questions, logical thinking, problem solving with step-by-step solutions. Ideal for expert-level learners targeting challenging problems and time-bound practice.

📝 Worksheet 29 of 30 • 20 questions • ⏱️ Estimated time: 20 minutes • 🎯 Expert level

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

Question 1

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

Question 2

Input: 20 51 45 86 11 21 Step 1: Calculate digit sums → 20(2) 51(6) 45(9) 86(14) 11(2) 21(3) Step 2: Sort by digit sum (ascending) → 11 20 21 51 45 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: 11 20 21 51 45 86

Question 3

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

Question 4

Input: 17 41 97 84 48 82 10 3 Step 1: Identify prime numbers: 3 17 41 97 Step 2: Identify composite numbers: 10 48 82 84 Step 3: Combine (primes first, then composites, each sorted ascending): 3 17 41 97 10 48 82 84 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 3 17 41 97 10 48 82 84

Question 5

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

Question 6

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 7

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

Question 8

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

Question 9

Input: 44 95 53 67 48 81 Step 1: Calculate digit sums → 44(8) 95(14) 53(8) 67(13) 48(12) 81(9) Step 2: Sort by digit sum (ascending) → 44 53 81 48 67 95 What is the final sorted output?
Numbers sorted by sum of their digits (smallest sum first). If sums are equal, numbers sorted by value: 44 53 81 48 67 95

Question 10

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

Question 11

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

Question 12

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 13

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

Question 14

Input: 74 62 98 8 50 49 17 68 Step 1: Identify prime numbers: 17 Step 2: Identify composite numbers: 8 49 50 62 68 74 98 Step 3: Combine (primes first, then composites, each sorted ascending): 17 8 49 50 62 68 74 98 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 17 8 49 50 62 68 74 98

Question 15

Input: 11 44 82 22 10 24 Step 1: 10 44 82 22 11 24 Step 2: 10 11 82 22 44 24 Step 3: 10 11 22 82 44 24 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 10 11 22 24 44 82

Question 16

Input: 46 47 26 3 85 23 59 50 Step 1: Identify prime numbers: 3 23 47 59 Step 2: Identify composite numbers: 26 46 50 85 Step 3: Combine (primes first, then composites, each sorted ascending): 3 23 47 59 26 46 50 85 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 3 23 47 59 26 46 50 85

Question 17

Input: 17 69 78 43 10 29 Step 1: 10 69 78 43 17 29 Step 2: 10 17 78 43 69 29 Step 3: 10 17 29 43 69 78 What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 10 17 29 43 69 78

Question 18

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

Question 19

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

Question 20

Input: level python world hello civic 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
Previous Worksheet Next Worksheet