LearnFrenzy
Sign in Take a free test

Input-Output · Discussion forum

Diagram-Based Questions 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:

StepArrangement
Input65 54 apple lion yarn 33 95
Step Iapple 95 65 54 lion yarn 33
Step IIapple 95 lion 65 54 yarn 33
Step IIIapple 95 lion 65 yarn 54 33

Following the same rule, the machine is given this input: 29 33 20 desk 55 bell moon

In Step I, which element is 3rd from the right end?

  • A bell
  • B 20 Correct
  • C 29
  • D desk
Correct Answer: Option B

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: bell 55 29 33 20 desk moon; Step II: bell 55 desk 33 29 20 moon; Step III: bell 55 desk 33 moon 29 20.

Answer: 20

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