GIAC Python Coder (GPYC) Free Practice Exam Questions

16 real GIAC Python Coder (GPYC) exam questions with answers and AI explanations. GIAC certification prep — page 1 of 2.

  1. Question 1: Which of the following would produce this list? [65, 66, 67, 68]
  2. Question 2: What is the output of the following line of code typed into a Python interactive session? >>> print (int(`1111`,2))
  3. Question 5: What happens if a programmer fails to build exception handling into a program, and the program encounters an unexpected error condition?
  4. Question 7: What does the LIMIT function restrict in an SQL SELECT statement?
  5. Question 8: Variable `traffic` contains a Scapy packet list. A programmer runs the following command: p1=traffic[1] Which of the following describes the contents of p1, wi…
  6. Question 9: A log file is stored in variable `a`. The file has the following format for each log entry, in order, stored in big endian: Field 1: 2-byte integer - Field 2:…
  7. Question 11: What does the attacker do in a SQL Injection attack?
  8. Question 13: What is the output of the following command typed in Python interactive mode? >>> print(`and` in `And now for something completely different`)
  9. Question 16: A user enters unexpected data into program. Which functionality can the programmer use to present an understandable error message to the user?
  10. Question 19: What is the output of the ls (TCP) function?