Socket Programming and Threading
Socket Programming and Threading
PROGRAMMIN
G
AND
THREADING
MCQs:
Notify
Wait
InputStream access
Sleep
10-What state does Thread enter in when it has been created and started?
a) New
b) Runnable
c) Sleep
d) Terminated
UDP
TCP
SCTP
None
UDP
TCP
SCTP
None
UDP
TCP
SCTP
None
connectionless, iterative
connectionless, concurrent
connection-oriented, iterative
connection-oriented, concurrent
d) Both b & c
36- SOCK_SEQPACKET sockets are used by ______ processes.
a) UDP
b) TCP
c) SCTP
d) None
37- SOCK_RAW sockets are used by ______ processes.
a) UDP
b) TCP
c) SCTP
d) None
38- A thread can acquire a lock by using which reserved keyword?
a)
b)
c)
d)
Volatile
Synchronized
Locked
None
40- Which keyword is used for using the synchronization features defined by the
Monitor class?
a)
b)
c)
d)
Lock
Synchronized
Moniter
Locked
Reference:
https://www.udemy.com/tcpip-socket-programming-for-coders-using-csharp-net/
http://highered.mheducation.com/sites/0073376043/student_view0/chapter_17__multiple_choice_quiz.html
http://www.sanfoundry.com/csharp-mcqs-multithreaded-programming-2/
http://www.sanfoundry.com/csharp-mcqs-multithreaded-programming-1/
http://www.javamadesoeasy.com/2015/10/threadmulti-threading-quiz-in-java-mcq.html