GPYC GIAC Python Coder (GPYC)

Loading demo links...

Showing 1–3 of 6 questions

Question 1

When creating a new socket using the Python “sockets” module, which of the following parameters is used to specify the socket will send and receive TCP traffic? (Choose two)

Select all that apply, then click Submit answer.

  • socket.SOCK_STREAM

  • socket.AF_INET

  • socket.SOCK_DGRAM

  • socket.socket

Question 2

What happens if a programmer fails to build exception handling into a program, and the program encounters an unexpected error condition?

Select an option, then click Submit answer.

  • The interpreter will ignore the error and move to the next line.

  • The application will print a warning to the console and continue to the end

  • The computer will “fuzz” input until it finds one that generates no error

  • The application will terminate immediately or after resources are exhausted

Question 3

A programmer includes the following line in his program. What does this enable him to do? from scapy.all import *

Select an option, then click Submit answer.

  • Run brute-force password attempts against a local service.

  • Encrypt Python code using a private key.

  • Read and manipulate network packets.

  • Check imported code for malicious behavior.