ICT Gaming Essentials Practice Exam

Access More Questions
The sequence 'Move Forward; If not at end, move forward; Else stop' is an example of which programming structure?
Correct Answer:
Selection
Explanation:
At its heart, this sequence uses a decision to choose what to do next. The line “If not at end, move forward; else stop” checks a condition and then selects one of two possible actions based on that condition. That choice between continuing or stopping is the essence of a selection structure, where the program follows different paths depending on a boolean test. It's not just a straight line of steps (that would be a simple sequence), and it isn't demonstrating a looping repeat (no explicit repetition is described), nor is it driven by an external event (it's a direct conditional decision). So the best fit is a selection structure.

Access more questions from this quiz

Continue to ICT Gaming Essentials Practice Exam for more practice questions and the full quiz experience.

Access More Questions