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 2 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:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...1 Answers 0 Vote Up Vote Down Lokesh Kumar Staff answered 2 years ago c. SyntaxError Explanation:SyntaxError is raised when the parser encounters a syntax error.Share this:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...