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
What two items must be given to the socket function in order to create a socket object?
Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
B,C
In order to utilize the socket module's recv method, what must you pass as an argument?
Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
C
A thread's block method is invoked automatically by start.
Free
(True/False)
4.9/5
(30)
Correct Answer:
False
To properly handle functions that may raise exceptions, you can embed these function calls in a try-catch statement.
(True/False)
4.8/5
(29)
The notify() method of the Condition class lets all threads waiting on the lock know that it's available.
(True/False)
4.7/5
(34)
Because an IDLE itself runs in a thread, it is not generally a good idea to test a multithreaded application in that environment.
(True/False)
4.8/5
(37)
The procedure by which a process's state is saved before being swapped out of the CPU, then us restored to the state when the process is about to execute, is known as?
(Multiple Choice)
4.9/5
(29)
After the creation of a thread, what makes a thread "ready"?
(Multiple Choice)
4.8/5
(42)
A program starting another program or a new process is known by what term?
(Multiple Choice)
4.9/5
(37)
The most common way to create a thread is to define a class that extends the class threading.Runnable.
(True/False)
4.9/5
(39)
Producer/consumer threads can suffer from synchronization problems.
(True/False)
5.0/5
(42)
A thread that is waiting for user input is most likely in what state?
(Multiple Choice)
4.8/5
(34)
The release() method of the Condition class relinquishes the lock, leaving it to be acquired by others.
(True/False)
4.7/5
(38)
You cannot create and open several sockets on the same port of a host computer.
(True/False)
4.9/5
(40)
What two thread condition methods can be used to release a lock? (Choose two.)
(Multiple Choice)
4.9/5
(46)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)