Paper Tayyari

Lecture 21: Socket Programming

MCQs, short and long questions from lecture 21.Lecture 21 ki MCQs, short aur long sawal.

3 MCQs · 2 short · 2 long questions · 3 MCQs from past papers3 MCQs · 2 short · 2 long sawal · 3 MCQs past papers se

Start mock testMock test shuru karein
DoneHal kiye 0/3
– correctsahi
1.
★ Final term Spring 2010

Port is a transport address to which processes can ________ for connections request.

  1. Aread
  2. BWrite
  3. CListen
  4. DNone of the given options

A server process listens on a port for connection requests.

2.
★ Final term past paper

What is not true about server socket:

  1. AIt listens client's requests.
  2. BIt communicates with client.
  3. CIt is special socket.
  4. DIt runs on server machine.

A ServerSocket only listens; communication is done by the normal Socket returned by accept().

3.
★ Final term past paper

Stream is an abstraction of hard drive same as socket is an abstraction of __________.

  1. Anetwork
  2. Bfile
  3. Cdata
  4. Dmemory

A socket is the software abstraction of a network connection.