LearnFrenzy
Sign in Take a free test

Input-Output · Discussion forum

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

  • 0 comments
  • Answer explained
  • Moderated community
Question 1 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
Inputflag lion 98 13 88 ink
Step I13 flag lion 98 88 ink
Step II13 88 flag lion 98 ink
Step III13 88 98 flag lion ink

Following the same rule, the machine is given this input: van 79 39 year 78 eagle

In Step I, which element is 6th from the right end?

  • A 39 Correct
  • B eagle
  • C 78
  • D year
Correct Answer: Option A

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: 39 van 79 year 78 eagle; Step II: 39 78 van 79 year eagle; Step III: 39 78 79 van year eagle.

Answer: 39

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