Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam GPYC topic 1 question 39 discussion

Actual exam question from GIAC's GPYC
Question #: 39
Topic #: 1
[All GPYC Questions]

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?

  • A. Nothing, as the connection is complete
  • B. connection.recv(1024)
  • C. print(remoteip)
  • D. Nothing, port 1100 is too low to bind the python server to
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
kyao
1 week, 5 days ago
connection.recv(1024)
upvoted 1 times
...
matts5150
2 months, 3 weeks ago
Selected Answer: C
best option
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...