A user enters unexpected data into a program. Which functionality can the programmer use to present an understandable error message to the user?
A. Casting
B. Exception handling
C. Dictionaries
D. Regular expressions
What does the attacker do in a SQL Injection attack?
A. Obtains an administrative login for a SQL database server
B. Finds and exploits CVSS-SIG vulnerabilities in a particular version of SQL database
C. Inject information into an SQL server via an undocumented administrative interface
D. Submits a string that is interpreted as a SQL database command
Which python regular expression method should be used to match any character in a-z, 0
A. \w
B. Greedy matching
C. A custom character set
D. \w
When the following program "question.py" is executed with Python what is the output?

A. 10
B. 5
C. FunctionOverride: function i assigned not called
D. Function i at 0xb7489764>
What is the output of the following line of code typed into a Python interactive session? >>>print (8 <<1)
A. False
B. 16
C. SyntaxError: invalid syntax
D. True
What are the contents of the variable x when the following is executed in a Python interactive session?

A. 'So'
B. 'So you'
C. 'So you want a GIAC Certification?'
D. 'So', 'you'
A programmer includes the following line in his program. What does this enable him to do?
from scapy. all import *
A. Run brute-force password attempts against a local service
B. Encrypt Python code using a private key
C. Read and manipulate network packets
D. Check imported code for malicious behavior
Using the Python "sockets" module, which of the following functions looks up the IP address of www.giac.org?
A. socket.gethostbyaddr(" www.giac.org")
B. socket.nslookup.www.giac.org
C. socket.get( www.giac.org)
D. socket. gethostbynameC'www.giac.org")
Which of the lambda definitions of the function some_code is equivalent to the following function definition?

Which of the lambda definitions of the function some_code is equivalent to the following function definition?
A. some_code = lambda outvalue:invalue*2
B. some_code = lambda invalue:outvalue*2
C. some code = lambda invalue:invalue*2
When using the Python "sockets" module, which of the following calls is used to transmit data to a specific IP address?
A. sendto
B. connect
C. bind
D. try