Input-Output - Beginner-Intermediate Level: input manipulation BEGINNER-INTERMEDIATE

Quick intensive drill ★ session: 20 beginner-intermediate-level input-output questions. Worksheet 7 of 30 - Focus: input manipulation. Practice input manipulation, operation sequences, logical machines with instant feedback. Great for developing students needing building on fundamentals with moderate challenges practice.

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

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

Question 1

Input: FOCUS Step 1 (uppercase): FOCUS Step 2 (shift-1): ENBTR What is the final output after all 3 transformations?
Applied uppercase, shift-1, swapcase sequentially: FOCUS → enbtr

Question 2

Input: WORLD Step 1 (double_letters): WWOORRLLDD What is the final output after all 2 transformations?
Applied double_letters, remove_vowels sequentially: WORLD → WWRRLLDD

Question 3

Input: bat dog 42 cat 31 fig apple 19 Step 1: 19 31 42 apple bat cat dog fig Step 2: 38 62 84 APPLE BAT CAT DOG FIG Step 3: 43 67 89 *PPLE B*T C*T DOG FIG Step 4: Reverse every alternate word (1st, 3rd, 5th...) What is Step 4 output?
From Step 3, reverse every other word: 34 67 98 *PPLE T*B C*T GOD FIG

Question 4

Word: CLEVER Step 1: Alternate encoding - letter followed by its position number What is the encoded output?
Each letter followed by its position (A=1, B=2...): CLEVER → C3L12E5V22E5R18

Question 5

Input: 38 89 102 76 Rule: Apply right shift on first number Output: ?
Right shift by 1 bits: 38 >> 1 = 19

Question 6

Input: 16 200 116 107 Rule: Count set bits (1's) in binary of first number Output: ?
Count of 1's in binary representation of 16 = 1

Question 7

Word: LOGIC Step 1: Alternate encoding - letter followed by its position number What is the encoded output?
Each letter followed by its position (A=1, B=2...): LOGIC → L12O15G7I9C3

Question 8

Input: 32 56 47 18 Coding Scheme: 0→!, 1→?, 2→~, 3→^, 4→&, ... Rule: Replace each digit with its corresponding symbol Output: ?
Each digit replaced by its symbol: 32 56 47 18 → ^~ *@ &# ?$

Question 9

Input: mango 35 cherry 42 peach Apply conditional rules based on item type and properties Output: ?
Applied specific rules to each element based on its type and characteristics: Mango 8 diessz 24 hcaep

Question 10

Input: fig 31 42 apple cat dog 19 bat Step 1: 19 31 42 apple bat cat dog fig Step 2: 38 62 84 APPLE BAT CAT DOG FIG Step 3: 43 67 89 *PPLE B*T C*T DOG FIG Step 4: Reverse every alternate word (1st, 3rd, 5th...) What is Step 4 output?
From Step 3, reverse every other word: 34 67 98 *PPLE T*B C*T GOD FIG

Question 11

Rule: alternate case - Convert to alternate case starting with uppercase Example: hello world → HeLlO WoRlD Input: python code Output: ?
Following the 'alternate case' rule: python code → PyThOn CoDe

Question 12

Input: 230 241 45 178 Rule: Count set bits (1's) in binary of first number Output: ?
Count of 1's in binary representation of 230 = 5

Question 13

Rule: add number prefix - Add sequential numbers as prefix (1, 2, 3...) Example: red blue green → 1red 2blue 3green Input: fast slow quick Output: ?
Following the 'add number prefix' rule: fast slow quick → 1fast 2slow 3quick

Question 14

Input: apple 42 banana 16 kiwi Apply conditional rules based on item type and properties Output: ?
Applied specific rules to each element based on its type and characteristics: Apple 24 Banana 36 iwik

Question 15

Input: cat dog 19 bat 42 fig apple 31 Step 1: 19 31 42 apple bat cat dog fig Step 2: 38 62 84 APPLE BAT CAT DOG FIG Step 3: Add 5 to numbers, replace 'A' with '*' What is Step 3 output?
From Step 2, numbers increased by 5, 'A' replaced with '*': 43 67 89 *PPLE B*T C*T DOG FIG

Question 16

Rule: swap first and last - Swap first and last letter of each word Example: code logic brain → eod cigol nairb Input: code logic brain Output: ?
Following the 'swap first and last' rule: code logic brain → eodc cogil nraib

Question 17

Input: lily 17 tulip rose 32 84 45 daisy Step 1: 17 32 45 84 daisy lily rose tulip Step 2: Alternate elements reversed (positions 2,4,6...) What is Step 2 output?
From Step 1, reverse every second element: 17 23 45 48 daisy ylil rose pilut

Question 18

Input: 153 109 71 61 Rule: Apply right shift on first number Output: ?
Right shift by 2 bits: 153 >> 2 = 38

Question 19

Input Matrix: 56 54 15 51 49 51 52 13 26 Apply transformation: flip_vertical What is the output?
Matrix flipped vertically (top-bottom mirror)
56 54 15
51 49 51
52 13 26 → 52 13 26
51 49 51
56 54 15

Question 20

Input Matrix: 4 23 96 49 59 7 99 46 45 Apply transformation: transpose What is the output?
Matrix transposition (rows become columns, columns become rows)
4 23 96
49 59 7
99 46 45 → 4 49 99
23 59 46
96 7 45
Previous Worksheet Next Worksheet