nerdexam
GIAC

GPYC · Question #36

GPYC Question #36: Real Exam Question with Answer & Explanation

Sign in or unlock GPYC to reveal the answer and full explanation for question #36. The question stem and answer options stay visible for context.

Question

A connection between a python raw socket server and a netcat client is being made over port 1100 on the same computer. The last command in the Python terminal is:
connection.remoteip=pyserver.accept() In the netcat terminal the following 2 lines were typed:

nc 127.0.0.1 1100 This is a test

What needs to be typed in the python terminal to display the input from the netcat session?

Options

  • ANothing, as the connection is complete
  • Bconnection.recv(1024)
  • Cprint(remoteip)
  • DNothing, port 1100 is too low to bind the python server to

Unlock GPYC to see the answer

You've previewed enough free GPYC questions. Unlock GPYC for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full GPYC Practice