🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Python Introduction: all 15 questions

Quiz: Python Introduction · Question 15 of 15

An error message has several lines. Which line should you read first?

An error message has several lines. Which line should you read first?

  1. A.The first line
  2. B.The line with the file name
  3. C.The last line, which names the error and what went wrong
  4. D.None; error messages cannot be read
Answer & explanation

Correct answer: The last line, which names the error and what went wrong

The last line shows the error type (such as NameError) and the line above it shows where it happened.

Can you get the rest right without peeking?

Take the timed Quiz: Python Introduction quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →