Machine Input-Output - Advanced Level: conditional operations ADVANCED

Quick competitive exam prep session: 20 advanced-level machine input-output questions. Worksheet 27 of 30 - Focus: conditional operations. Practice input processing, machine rules, automation logic with instant feedback. Great for advanced students needing complex scenarios and multi-step problems practice.

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

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

Question 1

Input: cherry 67 25 banana 41 apple grape 38 Step 1: 67 25 cherry banana 41 apple grape 38 Step 2: 25 cherry banana 41 apple grape 38 67 Step 3: cherry banana 41 apple 25 grape 38 67 ... What is the final output?
Final output: apple banana cherry grape 25 38 41 67

Question 2

Input: cherry 12 41 grape 67 89 mango plum What is Step 1 output?
Step 1: Step 1: cherry 41 grape 67 12 89 mango plum

Question 3

Input: hen 45 bat 55 65 cat Machine moves largest number to left each step Step 1: 45 bat 55 hen 65 cat What is Step 2 output?
Step 1: Step 1: 45 bat 55 hen 65 cat
Step 2: Step 2: bat 55 45 hen 65 cat

Question 4

Input: CODE Step 1 (Remove Vowels): CD What is the final output after all operations?
Final output after applying Remove Vowels, Uppercase: CD

Question 5

Study the pattern: Input: hello world python Output: olleh dlrow nohtyp Now, what will be the output for: Input: php ruby cplus
The machine applies 'reverse_words' rule.
php ruby cplus → php ybur sulpc

Question 6

Machine Input: Row 1: sun planet moon Row 2: red blue purple Rule: Words are paired by total length (shortest pairs first) Step 1: Pair by length → Row 1: sun planet moon Step 2: Row 2: red blue purple What is the final arrangement?
Final output:
Row 1: sun planet moon
Row 2: red blue purple

Question 7

Input: umbrella 45 fox dog 37 ice 55 Step 1: Check condition for each element Step 2: Elements satisfying condition: Step 3: Rearranged output: umbrella fox dog ice 45 37 55 What is the final output?
Final output after conditional rearrangement: umbrella fox dog ice 45 37 55

Question 8

Input: 15 dog pig 65 45 cat Step 1: 15 pig 65 dog 45 cat Step 2: 15 65 dog 45 pig cat What is Step 3 output?
Following the pattern: Step 3: 15 dog 65 45 pig cat

Question 9

Input: WORLD Step 1 (Reverse): DLROW Step 2 (Shift +1): EMSPX What is the final output after all operations?
Final output after applying Reverse, Shift +1, Uppercase: EMSPX

Question 10

Input: plum 67 cherry berry banana 12 38 73 Step 1: 67 cherry berry plum banana 12 38 73 Step 2: cherry berry plum banana 12 38 67 73 Step 3: berry plum cherry banana 12 38 67 73 ... How many steps will the machine take to complete the rearrangement?
The machine takes 8 steps to complete the rearrangement.

Question 11

Input: 30 60 50 40 20 70 Step 1: 30 60 50 40 20 70 Step 2: 60 50 20 30 40 70 Step 3: 50 20 40 60 30 70 What is Step 4?
Step 4: Step 4: 20 40 30 50 60 70

Question 12

Input: cat 19 12 fox bat 45 elephant Step 1: Check condition for each element Step 2: Elements satisfying condition: elephant Step 3: Rearranged output: elephant 19 12 45 cat fox bat What is the final output?
Final output after conditional rearrangement: elephant 19 12 45 cat fox bat

Question 13

Input: plum berry 38 12 cherry peach 41 56 Step 1: berry 38 12 cherry peach 41 plum 56 Step 2: berry 12 cherry 38 peach 41 plum 56 What is the final output?
Final output: berry 12 cherry 38 peach 41 plum 56

Question 14

Step 1: Step 1: 67 41 56 73 peach mango apple banana Step 2: Step 2: 41 56 67 73 peach mango apple banana What was the original Input?
The original input was: 73 67 41 56 peach mango apple banana

Question 15

Input: CODE Step 1 (Lowercase): code What is the output after 1 operation(s)?
After 1 operation(s): edoc

Question 16

Study the pattern: Input: hello world python Output: olleh dlrow nohtyp Now, what will be the output for: Input: cplus ruby python
The machine applies 'reverse_words' rule.
cplus ruby python → sulpc ybur nohtyp

Question 17

Input: cat 45 dog 35 25 fox Step 1: 45 dog 35 cat 25 fox Step 2: 45 35 cat 25 dog fox What is Step 3 output?
Following the pattern: Step 3: 45 35 25 cat dog fox

Question 18

Input: H B G F A D Step 1: H B G F A D Step 2: H G A B F D Step 3: H A F G B D What is Step 4?
Step 4: Step 4: H F B A G D

Question 19

Study the pattern: Input: elephant cat dog ant Output: ant cat dog elephant Now, what will be the output for: Input: hi to a butterfly
The machine applies 'length_sort' rule.
hi to a butterfly → a hi to butterfly

Question 20

Study the pattern: Input: apple cat umbrella dog Output: apple umbrella cat dog Now, what will be the output for: Input: dog ice ball umbrella
The machine applies 'vowel_first' rule.
dog ice ball umbrella → ice umbrella dog ball
Previous Worksheet Next Worksheet