What exception do you expect if your code has a syntax error?Questions & Answers › Category: Python › What exception do you expect if your code has a syntax error? 0 Vote Up Vote Down Lokesh Kumar Staff asked 3 years ago What exception do you expect if your code has a syntax error? a. NameError b. RuntimeError c. SyntaxError d. IndexError e. ModuleNotFoundErrorShare this: Share on Facebook (Opens in new window) Facebook Share on X (Opens in new window) X Share on WhatsApp (Opens in new window) WhatsApp Print (Opens in new window) Print Share on LinkedIn (Opens in new window) LinkedIn Share on Pinterest (Opens in new window) Pinterest Like this:Like Loading...1 Answers 0 Vote Up Vote Down Lokesh Kumar Staff answered 3 years ago c. SyntaxError Explanation:SyntaxError is raised when the parser encounters a syntax error.Share this: Share on Facebook (Opens in new window) Facebook Share on X (Opens in new window) X Share on WhatsApp (Opens in new window) WhatsApp Print (Opens in new window) Print Share on LinkedIn (Opens in new window) LinkedIn Share on Pinterest (Opens in new window) Pinterest Like this:Like Loading...