Exam 10: Multithreading Networks and Client Server Programming

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When a client connects to a server, what does the socket accept method return?

(Multiple Choice)
4.9/5
(41)

When developing a network application, the programmer can first try it out on a local host-that is, on a standalone computer that may or may not be connected to the Internet.

(True/False)
4.9/5
(28)

What thread method can be used to test if the thread is dead or not?

(Multiple Choice)
4.9/5
(33)

Using the "gethostbyname('localhost')" function of the socket module will return what IP address?

(Multiple Choice)
4.9/5
(40)

In Python, a thread is an object like any other in that it can hold data, be run with methods, be stored in data structures, and be passed as parameters to methods.

(True/False)
4.9/5
(44)

The Python function time.currenttime returns a string representing the day/time.

(True/False)
4.9/5
(35)

A socket resembles a file object, in that the programmer opens it, receives data from it, and closes it when finished.

(True/False)
4.9/5
(47)

Threads cannot share data between them.

(True/False)
4.8/5
(42)

In order to execute code in a thread as a process, what must be done?

(Multiple Choice)
4.7/5
(39)

After using the socket.recv method, what type of data is returned?

(Multiple Choice)
4.9/5
(38)
Showing 41 - 50 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)