Question 1
Which of the following will be the value of the variable y?
- 7
- y has no value. The following error occurred: IndexError: list index out of range
- 6
- y has no value. The following error occurred: KeyError: 'b'
Question 2
What are the contents of the variable x when the following is executed in a Python interactive session?
- 'So'
- 'So you'
- 'So you want a GIAC Certification?'
- 'So', 'you'
Question 3
Which of the following commands would correct the error in the screenshot?
- import itertools
- modulus itertools
- return itertools
- define itertools
Question 4
A user enters unexpected data into program. Which functionality can the programmer use to present an understandable error message to the user?
- Casting
- Exception handling
- Dictionaries
- Regular expressions
Question 5
A programmer attempts to run the Python program hello.py as follows, but an error occurs. What is the cause of this error?
- hello.py is missing the line #!usr/bin/python
- smtp_mime was replaced with Python
- Python cannot find the script ג€helloג€
- hello.py is improperly encoded with UTF-16le