GIAC Python Coder (GPYC) - GPYC Exam Practice Test

Question 1
What does the following command do?
pip search syslog

Correct Answer: D
Question 2
What will the contents of the "__name__" variable be if the program "gpyc.py" is run as a standalone program?

Correct Answer: B
Question 3
How many lines will the following code print?

Correct Answer: B
Question 4
What will be printed when the code in the screen capture is run?

Correct Answer: D
Question 5
When the following program "question.py" is executed with Python what is the output?

Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 6
What happens if a programmer fails to build exception handling into a program, and the program encounters an unexpected error condition?

Correct Answer: A
Question 7
What is the output of the following command typed in Python interactive mode?

Correct Answer: C
Question 8
What does the "enumerate" function return when applied to a list?

Correct Answer: B