Select the accurate description of Conditional statement.
- A. The process of translating source code written in a high-level language into machine code before execution.
- B. A type system where variable types are checked at compile time rather than at runtime.
- C. A programming mechanism used to detect and respond to runtime errors gracefully.
- D. A control structure that executes different code blocks depending on whether a condition is true or false. ✓
Correct answer
D. A control structure that executes different code blocks depending on whether a condition is true or false.
Explanation
Conditional statement refers to a control structure that executes different code blocks depending on whether a condition is true or false.