Computer Science I / Integrated Introductory Programming Practice
Practice question · True or false

A program that counts passing scores needs a loop, a conditional and an accumulator, and removing any one of the three breaks it.

Hints
  1. Each does a job the others cannot.
  2. Visit, test, remember.
Show the answer

True

Why

True. The loop visits every score, the conditional decides which count, and the accumulator remembers the running total across iterations. They are the three primitives most simple data processing reduces to, and recognising that shape is what makes an unfamiliar task tractable.

Read the lesson: Integrated Introductory Programming Practice →

Practise Integrated Introductory Programming Practice

The app has 5 more questions on this lesson, and keeps your place in the course. Computer Science I is free to start.

More questions on Integrated Introductory Programming Practice