A decision point in a program where execution can follow one of two paths is called a _______.

Prepare for the IT GACE Computer Science Test. Use flashcards and multiple choice questions with hints and explanations. Excel in your exam preparation!

Multiple Choice

A decision point in a program where execution can follow one of two paths is called a _______.

Explanation:
A branch is the point in a program where control flow can split based on a condition, guiding execution down one of two paths. When a condition is evaluated, the program follows the path that corresponds to the outcome: typically one path if the condition is true, another if it is false. This is exactly what happens with an if statement or a binary decision in code—the flow branches into two possible directions. Think of a simple example: if a user is logged in, show the dashboard; otherwise, show the login screen. That decision creates two possible routes in the program’s execution, i.e., a branch. Other terms aren’t as precise for this scenario. A node is just a point in a flow or graph, not the decision itself. A gateway is a broader notation concept used in some diagrams to indicate routing of flow, often with more complex conditions. A fork implies parallel or concurrent paths, which is more than just choosing between two alternatives.

A branch is the point in a program where control flow can split based on a condition, guiding execution down one of two paths. When a condition is evaluated, the program follows the path that corresponds to the outcome: typically one path if the condition is true, another if it is false. This is exactly what happens with an if statement or a binary decision in code—the flow branches into two possible directions.

Think of a simple example: if a user is logged in, show the dashboard; otherwise, show the login screen. That decision creates two possible routes in the program’s execution, i.e., a branch.

Other terms aren’t as precise for this scenario. A node is just a point in a flow or graph, not the decision itself. A gateway is a broader notation concept used in some diagrams to indicate routing of flow, often with more complex conditions. A fork implies parallel or concurrent paths, which is more than just choosing between two alternatives.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy