LearnFrenzy
Sign in Take a free test

Input-Output · Discussion forum

Diagram-Based Questions Question 24 – answer, explanation & discussion

  • 0 comments
  • Answer explained
  • Moderated community
Question 24 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:

StepArrangement
Input42 90 house 63 nest 77 lamp
Step Ihouse 90 42 63 nest 77 lamp
Step IIhouse 90 lamp 77 42 63 nest
Step IIIhouse 90 lamp 77 nest 63 42

Following the same rule, the machine is given this input: 59 owl year 51 rose 95 83

Which step is the last step for this input?

  • A Step I
  • B Step V
  • C Step III Correct
  • D Step IV
Correct Answer: Option C

Rule (from the illustration): In each step the word that comes first in the dictionary moves to the left end, followed by the largest number, after the pairs already arranged.

For the new input: Step I: owl 95 59 year 51 rose 83; Step II: owl 95 rose 83 59 year 51; Step III: owl 95 rose 83 year 59 51.

Answer: Step III

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