Which of the following statements is true?

A. A name error occurs if the variable is referenced before it is declared
B. A name error occurs if a colon is put in the wrong place
C. A name error occurs if an else statement is used without an if statement
D. A name error occurs if two equals signs are used instead of one

A. A name error occurs if the variable is referenced before it is declared