Consider the following statements about syntax or semantic errors in Python programming language :
A – A program with syntax errors will not run to the end of the program.
B – A program with only semantic errors will not run to its end.
C – Syntax errors in programs are also called logical errors.
D – Programs with semantic errors may not produce correct outputs for some inputs.
Which of the following statements is correct ?