Basic concepts of programming - Errors

4 important questions on Basic concepts of programming - Errors

Which three errors can occur in a program?

  1. Syntax errors
  2. Runtime error
  3. Semantic errors

What are syntax errors?

Python can only execute a program if the program is syntactically correct, otherwise the process fails and returns an error message (syntax errors).

What are runtime errors in programming?

Runtime errors occur when you run the program while the code has successfully compiled. These can happen when there is an invalid operation, unexpected condition or incorrect logic, causing it to crash.
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

What are semantic errors?

When you have a semantic error your program wil run successfully but will not generate any error messages, but it will not do the right thing. (The program you wrote is not the program you wanted to write)

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo