In an algorithm, what term describes a conditional statement that dictates the flow of execution?

Study for the SQA Higher Computing Science Exam with flashcards and multiple choice questions. Each question offers hints and explanations. Prepare effectively for your exam!

In an algorithm, a conditional statement that dictates the flow of execution is termed a "Decision." This refers to structures that evaluate certain conditions and allow the program to follow different paths based on whether those conditions evaluate to true or false. For instance, an "if" statement is a type of decision structure that checks a condition and can lead to different executions depending on the result.

While a loop refers to a section of code that repeats a certain number of times or until a condition is met, it does not inherently dictate multiple pathways based on conditions but rather focuses on repetition. A function is a block of code designed to perform a specific task and can be called as needed, but it does not inherently manage flow based on conditions. Lastly, iteration is a process closely related to loops, emphasizing the concept of repeating code, but again does not pertain to making decisions based on conditional logic. Therefore, the term "Decision" specifically highlights the conditional evaluation aspect that influences the program's execution flow, making it the correct term in this context.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy