Which term describes keeping track of how many items?

Enhance your understanding of IGCSE Algorithms and Pseudocode Foundations. Engage with flashcards and multiple-choice questions, each offering hints and explanations. Prepare thoroughly for your exam!

Multiple Choice

Which term describes keeping track of how many items?

Explanation:
Counting is used to determine how many items are present. In practice, you keep a counter that starts at zero and increases by one for each item you process, so after a loop you know exactly how many items you had. A string is just text, not a count. A boolean stores true or false, not a tally. Totalling means adding up numbers to get a sum, which is related but measures total value rather than the number of items. So counting is the best fit.

Counting is used to determine how many items are present. In practice, you keep a counter that starts at zero and increases by one for each item you process, so after a loop you know exactly how many items you had. A string is just text, not a count. A boolean stores true or false, not a tally. Totalling means adding up numbers to get a sum, which is related but measures total value rather than the number of items. So counting is the best fit.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy