🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Input–Output: all 15 questions

Quiz: Input–Output · Question 6 of 15

A shifting machine moves the last three items to the front each step. Input: A B C D E F. What is Step I?

A shifting machine moves the last three items to the front each step. Input: A B C D E F. What is Step I?

  1. A.D E F A B C
  2. B.C B A F E D
  3. C.F E D A B C
  4. D.B C D E F A
Answer & explanation

Correct answer: D E F A B C

The last three items (D E F) come to the front, followed by A B C.

Can you get the rest right without peeking?

Take the timed Quiz: Input–Output quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →