Exam 10: Multithreading Networks and Client Server Programming

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

What statement accurately describes the role of a socket?

(Multiple Choice)
4.8/5
(38)

In the event that a thread loses access to the CPU, such as via a time-out, sleep, block, or wait state, what happens when the thread is ready to resume execution?

(Multiple Choice)
4.7/5
(35)

Clients connect to servers via objects known as channels.

(True/False)
4.8/5
(31)

A port serves as a channel through which several clients can exchange data with the same server or with different servers.

(True/False)
4.7/5
(41)

The late 1960s and early 1970s saw the rise of networked systems.

(True/False)
4.9/5
(39)

Assuming that a socket has been created with a name of server, what effect does the server.listen(10) have?

(Multiple Choice)
4.9/5
(43)

You have just captured data using the socket.recv method into a variable named client_data. What can you use to convert client_data to a string?

(Multiple Choice)
4.8/5
(37)

The process of saving or restoring a thread's state is called a scheduling switch.

(True/False)
4.7/5
(37)

When a thread's run method has executed its last instruction, the thread dies as a process but continues to exist as an object.

(True/False)
4.7/5
(33)

When working with sockets, it is important to synchronize the sending and the receiving of messages between the client and the server.

(True/False)
4.8/5
(31)

Few modern computers use threads to represent processes.

(True/False)
4.7/5
(38)

What two items must be passed in a tuple to the socket module's connect method in order to connect a socket? (Choose two.)

(Multiple Choice)
4.9/5
(43)

A thread object can die if it raises an exception that is not handled.

(True/False)
4.9/5
(42)

A socket is bound to an address (host, port) by running its bind method.

(True/False)
4.9/5
(39)

What two Python data structures are already thread-safe, because they provide automatic support for synchronizing multiple readers and writers? (Choose two.)

(Multiple Choice)
4.9/5
(47)

The discipline of building hardware architectures, operating systems, and specialized algorithms for running a program on a cluster of processors is known by what term?

(Multiple Choice)
4.9/5
(37)

What is the purpose of a condition object in a threaded application?

(Multiple Choice)
4.9/5
(41)

Time-sharing systems are still in widespread use in the form of Web servers, e-mail servers, print servers, and other kinds of servers on networked systems.

(True/False)
4.8/5
(35)

What kind of problem occurs in a producer/consumer relationship in which the consumer attempts to access data that are not there, or accesses the same data more than once?

(Multiple Choice)
4.8/5
(47)

You are designing a script that needs to get the current date and time as a string. What function can you use for this?

(Multiple Choice)
4.9/5
(35)
Showing 21 - 40 of 50
close modal

Filters

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