Input-Output (Basic) - Advanced Level: time management ADVANCED

Boost your speed and accuracy with this high difficulty set 📈 worksheet. Worksheet 25 of 30 presents 20 advanced-level input-output (basic) problems. Focus on time management while practicing practice tests, exam preparation, competitive exams. Difficulty: complex scenarios and multi-step problems. Perfect for advanced test takers.

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

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

Question 1

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

Question 2

Input: 65 42 22 60 76 34 Step 1: Calculate digit sums → 65(11) 42(6) 22(4) 60(6) 76(13) 34(7) Step 2: Sort by digit sum (ascending) → 22 42 60 34 65 76 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 42 60 34 65 76

Question 3

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

Question 4

Input: 47 51 60 4 57 64 10 81 Step 1: Identify prime numbers: 47 Step 2: Identify composite numbers: 4 10 51 57 60 64 81 Step 3: Combine (primes first, then composites, each sorted ascending): 47 4 10 51 57 60 64 81 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 47 4 10 51 57 60 64 81

Question 5

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

Question 6

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

Question 7

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 8

Input: python level hello coding racecar 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 9

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

Question 10

Input: 22 17 99 65 36 74 3 42 Step 1: Identify prime numbers: 3 17 Step 2: Identify composite numbers: 22 36 42 65 74 99 Step 3: Combine (primes first, then composites, each sorted ascending): 3 17 22 36 42 65 74 99 What is the final output?
Prime numbers first (sorted ascending), followed by composite numbers (sorted ascending): 3 17 22 36 42 65 74 99

Question 11

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

Question 12

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

Question 13

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

Question 14

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

Question 15

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

Question 16

Input: 55 98 17 76 49 90 71 65 Step 1: Even numbers (sorted): 76 90 98 Step 2: Odd numbers (sorted): 17 49 55 65 71 Step 3: Combine (evens then odds): 76 90 98 17 49 55 65 71 What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 76 90 98 17 49 55 65 71

Question 17

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

Question 18

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

Question 19

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

Question 20

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