Achieve proficiency in practice tests by completing this worksheet
Develop strong exam preparation skills with practical problems
Improve your input-output (basic) solving speed through weakness targeting
Gain confidence in identifying competitive exams patterns
Master real-world applications of critical thinking
Your progress through Input-Output (Basic)
Worksheet 18 of 30 (60% complete)
Question 1
Input: 24 84 50 20 73 29
Step 1: 20 84 50 24 73 29
Step 2: 20 24 50 84 73 29
Step 3: 20 24 29 84 73 50
What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 20 24 29 50 73 84
Question 2
Input: 16 87 75 59 45 64
Step 2: 16 45 75 59 87 64
Step 3: 16 45 59 75 87 64
What is the final sorted output in ascending order?
Numbers are arranged in ascending order (smallest to largest): 16 45 59 64 75 87
Question 3
Input: 67 comet moon 89 12 asteroid
Step 1: Separate & sort words → asteroid comet moon
Step 2: Separate & sort numbers → 12 67 89
Step 3: Alternate (word, number, word, number...) → asteroid 12 comet 67 moon 89
What is the final arrangement?
Words sorted alphabetically, numbers sorted ascending, then placed alternately starting with a word: asteroid 12 comet 67 moon 89
Question 4
Input: dog cat elephant butterfly hippopotamus
Step 1: cat dog
Step 2: cat dog elephant
Rule: Arrange words by length (shortest first), then alphabetically for same length.
What is the final output?
Sorted by word length: cat dog elephant butterfly hippopotamus
Question 5
Input: apple monkey ice ball goat
Step 1: Identify vowel-starting words: apple ice
Step 2: Identify consonant-starting words: ball goat monkey
Step 3: Sort each group alphabetically
Step 4: Combine (vowels first, then consonants): apple ice ball goat monkey
What is the final output?
Words starting with vowels come first (sorted alphabetically), followed by words starting with consonants (sorted alphabetically): apple ice ball goat monkey
Question 6
Input: apple 31 12 elderberry 44 grape date
Step 1: Sorted words → apple date elderberry grape
Step 2: Sorted numbers → 12 31 44
Step 3: Interleave (2 words, 1 number, repeat) → apple date 12 elderberry grape 31 44
What is the final output?
Words sorted alphabetically, numbers sorted ascending, then interleaved in pattern: 2 words, 1 number, repeat → apple date 12 elderberry grape 31 44
Question 7
Input: umbrella lion goat ant ball
Step 1: Identify vowel-starting words: ant umbrella
Step 2: Identify consonant-starting words: ball goat lion
Step 3: Sort each group alphabetically
Step 4: Combine (vowels first, then consonants): ant umbrella ball goat lion
What is the final output?
Words starting with vowels come first (sorted alphabetically), followed by words starting with consonants (sorted alphabetically): ant umbrella ball goat lion
Question 8
Input: goat horse bird lion dog
Step 1: goat bird horse lion dog
Step 2: goat bird horse dog lion
Step 3: bird goat horse dog lion
What will be the final output after complete sorting?
The words are arranged in alphabetical (dictionary) order. goat horse bird lion dog → bird dog goat horse lion
Question 9
Input: 79 54 87 30 28 17
Step 1: Calculate digit sums → 79(16) 54(9) 87(15) 30(3) 28(10) 17(8)
Step 2: Sort by digit sum (ascending) → 30 17 54 28 87 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: 30 17 54 28 87 79
Question 10
Input: python level world hello madam
Step 1: Palindromic words (read same forwards/backwards): level madam
Step 2: Non-palindromic words: hello python world
Step 3: Combine (palindromes first, then others, each sorted alphabetically): level madam hello python world
What is the final output?
Palindromic words first (alphabetically sorted), then non-palindromic words (alphabetically sorted): level madam hello python world
Question 11
Input: cherry 12 78 23 fig banana
Step 1: Sorted words → banana cherry fig
Step 2: Sorted numbers → 12 23 78
Step 3: Interleave (number, word, number, word...) → 12 banana 23 cherry 78 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 fig
Question 12
Input: 45 34 sun 78 moon comet
Step 1: Separate & sort words → comet moon sun
Step 2: Separate & sort numbers → 34 45 78
Step 3: Alternate (word, number, word, number...) → comet 34 moon 45 sun 78
What is the final arrangement?
Words sorted alphabetically, numbers sorted ascending, then placed alternately starting with a word: comet 34 moon 45 sun 78
Question 13
Input: 78 sun 34 asteroid comet 67
Step 1: Separate & sort words → asteroid comet sun
Step 2: Separate & sort numbers → 34 67 78
Step 3: Alternate (word, number, word, number...) → asteroid 34 comet 67 sun 78
What is the final arrangement?
Words sorted alphabetically, numbers sorted ascending, then placed alternately starting with a word: asteroid 34 comet 67 sun 78
Question 14
Input: 23 cherry elderberry 56 date 5
Step 1: Sorted words → cherry date elderberry
Step 2: Sorted numbers → 5 23 56
Step 3: Interleave (2 words, 1 number, repeat) → cherry date 5 elderberry 23 56
What is the final output?
Words sorted alphabetically, numbers sorted ascending, then interleaved in pattern: 2 words, 1 number, repeat → cherry date 5 elderberry 23 56
Question 15
Input: mercury moon 73 jupiter 28 91
Step 1: Separate → Words: mercury moon jupiter, Numbers: 73 28 91
Step 2: Sort numbers ascending → 28 73 91
Step 3: Sort words by length (then alphabetically) → moon jupiter mercury
Step 4: Alternate (word, number, word, number...) → moon 28 jupiter 73 mercury 91
What is the final output?
Words sorted by length (shortest first, alphabetically for ties), numbers sorted ascending, then alternated: moon 28 jupiter 73 mercury 91
Question 16
Input: 35 32 34 53 67 78
Step 1: Calculate digit sums → 35(8) 32(5) 34(7) 53(8) 67(13) 78(15)
Step 2: Sort by digit sum (ascending) → 32 34 35 53 67 78
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 34 35 53 67 78
Question 17
Input: 44 fig banana 12 31 elderberry 23
Step 1: Sorted words → banana elderberry fig
Step 2: Sorted numbers → 12 23 31 44
Step 3: Interleave (number, word, number, word...) → 12 banana 23 elderberry 31 fig 44
What is the final output?
Words sorted alphabetically, numbers sorted ascending, then interleaved in pattern: number, word, number, word... → 12 banana 23 elderberry 31 fig 44
Question 18
Input: TEST
Step 1: Reverse the word → TSET
Step 2: Shift each letter +1 (A→B, B→C, ..., Z→A) → UTFU
Step 3: Rotate left by 2 positions → FUUT
Step 4: For even positions (0-indexed), keep letter; for odd positions, replace with position number (A=1, B=2...) → F21U20
What is the final output?
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?
Input: radar world python madam hello
Step 1: Palindromic words (read same forwards/backwards): madam radar
Step 2: Non-palindromic words: hello python world
Step 3: Combine (palindromes first, then others, each sorted alphabetically): madam radar hello python world
What is the final output?
Palindromic words first (alphabetically sorted), then non-palindromic words (alphabetically sorted): madam radar hello python world