Python sample question with answer 29
Question:
You run a Python program and the following text is displayed in the interactive window:
Traceback (most recent call last):
File "/home/hello_world.py", line 1, in <module>
print(Hello, world)
NameError: name 'Hello' is not defined
What does this mean? (Select all that apply.)
- The error happened on line 1 of the program
- Everything is fine
- The specific error was: name 'Hello' is not defined
- A NameError occurred
- The line that generated the error was: print(Hello, world)
- The error happened on line 9 of the program
- A Traceback error occurred
- The line that generated the error is unknown
Answer:
A, C, D, E - are the correct answers