GPYC GIAC Python Coder (GPYC)

Loading demo links...

Showing 4–6 of 6 questions

Question 4

After calling a subprocess in a Python program, the program returns an error code of “0”. What does this indicate?

Select an option, then click Submit answer.

  • The subprocess did not run

  • The subprocess terminated with no errors

  • The subprocess entered an infinite loop condition

  • The subprocess encountered a race condition

Question 5

What is the output of the following line of code typed into a Python interactive session?

>>> print (int(“1111”,2))

Select an option, then click Submit answer.

  • 1111

  • 16

  • “1111”

  • 15

Question 6

An attacker does not yet know the IP address of his target. He uses the “socket” module to create a backdoor program. He is writing the command to bind the computer’s current IP address and port 4444 to the “backdoor” socket. Which command should he use?

Select an option, then click Submit answer.

  • backdoor.bind(UDP, 4444)

  • backdoor.bind(4444)

  • backdoor.bind((*))

  • backdoor.bind((“”,4444)