PCEP Control Flow, Loops, Lists and Logic • Set 10
PCEP Control Flow, Loops, Lists and Logic Practice Test 10 — 15 questions with explanations. Free, no signup.
A Python developer is building a quiz application. The program stores correct answers in a list named `key` and user responses in a list named `answers`. The developer wants to count how many positions match between the two lists, stopping the comparison as soon as the first mismatch is found so that a diagnostic message can be shown. Which control-flow statement should be used inside the loop to stop iterating immediately when a mismatch occurs?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.