Exam 10: Multithreading Networks and Client Server Programming
Exam 1: Introduction50 Questions
Exam 2: Software Development Data Types and Expressions50 Questions
Exam 3: Loops and Selection Statements50 Questions
Exam 4: Strings and Text Files50 Questions
Exam 5: Lists and Dictionaries50 Questions
Exam 6: Design With Functions50 Questions
Exam 7: Simple Graphics and Image Processing50 Questions
Exam 8: Graphical User Interrfaces50 Questions
Exam 9: Design With Classes50 Questions
Exam 10: Multithreading Networks and Client Server Programming50 Questions
Exam 11: Searching Sorting and Complexity Analysis51 Questions
Select questions type
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)