In the lesson, I said an "error" is a flaw in the implementation of a program which causes a bug. False True A NameErro
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
In the lesson, I said an "error" is a flaw in the implementation of a program which causes a bug. False True A NameErro
A NameError occurs when the interpreter encounters a variable name that hasn't yet been assigned a value. True Felse Which of the following describes a SyntaxError? the interpreter tries to access on index outside the bounds of a sist e function receives an object as an argument which is the right type of object, but which has o value which is not within the range of acceptable values a function or operator is handed an object of the incorrect type as input some part of the program is not following Python's rules for a valid statement
Which of the following describes a ValueError? some part of the program is not following Python's rules for a valid statement a function receives an object as an argument which is the right type of object, but which has a value which is not within the range of acceptable values a function of operator is handed an object of the incorrect type as input the interpreter tries to access on index outside the bounds of a list
Which of the following describes a TypeError? some part of the program is not following Python's rules for a valid statement e function receives an object as an argument which is the right type of object, but which has a value which is not within the range of acceptable values a function or operator is handed an object of the incorrect type as input the interpreter tries to access an index outside the bounds of a list