Programming (Year 12)
Control Structures
What is the purpose of an 'if' statement in programming?
To repeat a block of code
To execute code based on a condition
To define a function
To declare a variable
Next