What term describes the selection of one or two more branches under the control of a computer program?

Study for the IB Computer Science Exam. Utilize flashcards and multiple choice questions, each with hints and explanations to enhance your preparation. Ensure your success with comprehensive exam prep!

The term that describes the selection of one or two more branches under the control of a computer program is branching. Branching occurs when a program makes decisions based on certain conditions, leading to different paths of execution. For example, an if-else statement allows the program to execute one block of code if a condition is true and another block if it is false. In this context, branching effectively enables the program to handle various scenarios and control flow based on inputs or states.

While looping refers to executing a set of instructions repeatedly until a certain condition is met, and iterating describes the process of repeating actions or moving through a collection of data, forking involves creating a new process in operating systems, often for multitasking. Therefore, branching is the most suitable term that captures the essence of selecting different paths of execution depending on specific conditions.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy