Which term describes reusable groups of steps that do not return a value?

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 reusable groups of steps that do not return a value?

Explanation:
This question is about reusable blocks of code that perform actions without giving back a value. A block like this is used to carry out a task—like printing a report or updating records—without computing and returning a result to the caller. That’s what makes it a procedure: it runs, possibly uses inputs, and changes things or has side effects, but it doesn’t produce a value to be used in an expression. If it were a function, it would return a value after performing its actions, which you could use in further calculations or decisions. Parameters are simply the inputs you pass to these blocks to influence what they do; they don’t define whether the block returns a value. Global variables are storage that any part of the program can access, not a block of steps. So the term that fits this description is procedures.

This question is about reusable blocks of code that perform actions without giving back a value. A block like this is used to carry out a task—like printing a report or updating records—without computing and returning a result to the caller. That’s what makes it a procedure: it runs, possibly uses inputs, and changes things or has side effects, but it doesn’t produce a value to be used in an expression.

If it were a function, it would return a value after performing its actions, which you could use in further calculations or decisions. Parameters are simply the inputs you pass to these blocks to influence what they do; they don’t define whether the block returns a value. Global variables are storage that any part of the program can access, not a block of steps.

So the term that fits this description is procedures.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy