Exam 10: Multithreading Networks and Client Server Programming

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

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:
Verified

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:
Verified

C

A thread's block method is invoked automatically by start.

Free
(True/False)
4.9/5
(30)
Correct Answer:
Verified

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)

Ports are usually specified by IP addresses.

(True/False)
4.9/5
(30)

A program starting another program or a new process is known by what term?

(Multiple Choice)
4.9/5
(37)

What does the socket module function gethostname() do?

(Multiple Choice)
4.8/5
(38)

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)

A server can send data to a client using a socket's put method.

(True/False)
4.8/5
(41)

You cannot create and open several sockets on the same port of a host computer.

(True/False)
4.9/5
(40)

What is the socket bind method used for?

(Multiple Choice)
4.9/5
(30)

What two thread condition methods can be used to release a lock? (Choose two.)

(Multiple Choice)
4.9/5
(46)

Which of the following is an example of time slicing?

(Multiple Choice)
4.9/5
(49)
Showing 1 - 20 of 50
close modal

Filters

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