Machine-translated by Google. Questions are authored in English.
Top

Discussion

Input : every and peer to an for

Which of the following steps would be 'an and every for peer  to' ?

  • A. II
  • B. III
  • C. IV 
  • D. V
  • E.None of these

Answer: B

Correct answer: III

The machine sorts the words alphabetically, one position per step, skipping any word already in its correct place. The six words sort to an, and, every, for, peer, to. From the input “every and peer to an for”: Step I brings “an” to the front, giving “an every and peer to for”; Step II brings “and” to second place, giving “an and every peer to for”; “every” is then already third, so Step III moves “for” into fourth place and gives “an and every for peer to”.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.