Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.Chuck downloaded, installed, and ran a Python program. To Chuck\'s dismay, the

ID: 3773959 • Letter: 1

Question

1.Chuck downloaded, installed, and ran a Python program. To Chuck's dismay, the program did not seem to be doing anything at all -- not even terminating. What could be a reason for this behavior? (Check all that apply.)

The program had a syntax error.

The program entered an infinite loop.

The program called input() without a prompt and waited for Chuck's input.

The program had a run-time error.

2.Why parallel lists are bad?

They cannot be processed with one 'for' loop.

Items in both lists must be of the same data type, which is not always desirable.

They may be modified inconsistently.

The program had a syntax error.

The program entered an infinite loop.

The program called input() without a prompt and waited for Chuck's input.

The program had a run-time error.

Explanation / Answer

Question 1:

Answer:

The program entered an infinite loop.

The program called input() without a prompt and waited for Chuck's input.

Question 2:

Answer:

They cannot be processed with one 'for' loop

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote