SNAP Input Output Questions

SNAP Input Output Questions

Instructions

Study the following information carefully and answer the given questions.

A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement.
Input: pepsi 56 coke sprite 12 fanta 32 48 rasna 15
Step 1: coke pepsi sprite 12 fanta 32 48 rasna 15 56
Step 2: coke 12 pepsi fanta 32 48 rasna 15 sprite 56
Step 3: coke 12 fanta pepsi 32 rasna 15 48 sprite 56
Step 4: coke 12 fanta 15 pepsi 32 rasna 48 sprite 56
Step 4 is the final step of the process.
Another input is processed through the same machine.
Input: 68 fly 24 38 pig 91 star 56 eagle air

Question 1

How many steps are required to get the desired output from the given input?

Join CAT 2026 course by 5-Time CAT 100%iler

Crack CAT 2026 & Other Exams with Cracku!