LearnFrenzy
Sign in Take a free test

Input-Output · Discussion forum

Easy Level Question 21 – answer, explanation & discussion

  • 0 comments
  • Answer explained
  • Moderated community
Question 21 Back to Exercise

A word and number arrangement machine rearranges an input line step by step, following a rule. Here is an illustration of the input and the steps:

Input: queen 79 86 43 gate flag
Step I: 43 queen 79 86 gate flag
Step II: 43 79 queen 86 gate flag
Step III: 43 79 86 queen gate flag

Following the same rule, the machine is given this input: house fish 41 71 85 jug

Which of the following is Step II?

  • A jug 85 fish house 71 41
  • B 71 41 house fish 85 jug
  • C 41 71 85 house fish jug
  • D 41 71 house fish 85 jug Correct
Correct Answer: Option D

Rule (from the illustration): In each step the smallest number not yet arranged moves to the left end, after the numbers already arranged; the words keep their order.

For the new input: Step I: 41 house fish 71 85 jug; Step II: 41 71 house fish 85 jug; Step III: 41 71 85 house fish jug.

Answer: 41 71 house fish 85 jug

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links