Computer Science for IGCSE & O level - Programming (Section 14 - No. 42)

What is the primary function of selection statements in programming?
To execute a block of code repeatedly.
To perform mathematical calculations.
To make decisions and control program flow based on conditions.
To declare and initialize variables.

Explanation

Selection statements allow the program to choose what code to execute based on whether conditions are true or false.

Comments (0)

Advertisement