0% found this document useful (0 votes)
442 views2 pages

Sockets MCQS

The document contains multiple choice questions about computer networking concepts including: - A client/server relationship with a server providing services to a client program - Datagram sockets using the SOCK_DGRAM type - The fork() function being used to duplicate a process - Little-endian byte ordering representation - RPC providing stubs on the client-side for each remote procedure - Connection-oriented concurrent server type that processes requests in arrival order from multiple clients - RPC stubs performing marshaling and unmarshaling of data - RPC working between processes on different computers connected via a network
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
442 views2 pages

Sockets MCQS

The document contains multiple choice questions about computer networking concepts including: - A client/server relationship with a server providing services to a client program - Datagram sockets using the SOCK_DGRAM type - The fork() function being used to duplicate a process - Little-endian byte ordering representation - RPC providing stubs on the client-side for each remote procedure - Connection-oriented concurrent server type that processes requests in arrival order from multiple clients - RPC stubs performing marshaling and unmarshaling of data - RPC working between processes on different computers connected via a network
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

A _______ is a program providing services to the ______ program.

a. server; client b. client; server

c. server; server d. client;client

The socket type for datagram socket in socket descriptor function is

a. SOCK_STREAM b. SOCK_DGRAM

c. SOCK_RAW d. SOCK_SEQPACKET

The socket function which is used by a process to duplicate a process.

a. fork () b. connect () c. listen () d. accept()

In __________ representation, the least significant byte is stored in the starting address.

a. big-endian b. little-endian c. middle-endian d. last endian

RPC provides a(an) _____ on the client-side, a separate one for each remote procedure.

a. stub b. identifier c. name d. process identifier

The server pays no attention. These are stored in a queue, waiting for service. They could all be from
one client or from many clients. They are processed by the order of arrival.

Select the type of server

a. Connectionless iterative b. Connection-oriented iterative

b. Connectionless concurrent d. Connection-oriented concurrent

RPC stubs do the work of marshaling and unmarshaling data

a. RPC stubs b. client c.server d. runtime library

RPC works between two processes. These processes must be ____________

a. on the same computer

b. on different computers connected with a network

c. on the same computer and also on different computers connected with network

d. on none of the computers

The purpose of the ________ is to provide a smooth transition mechanism for applications running on
TCP and wishing to move to SCTP.
a. one-to-one socket b. many-to-one socket

c. one-to-many socket d. many-to-many socket

Recognize the function converts 32 bit data from network byte order to host byte order.

a. Unsigned short ntohs() b. Unsigned long ntohl()

c. Unsigned long htonl() d. Unsigned long htons()

The arrangement of bytes when data is transmitted over the network is called ___

a. bit ordering b. byte ordering

c. system call d. Socket function

The server pays no attention. These are stored in a queue, waiting for service. They could all be from
one client or from many clients. They are processed by the order of arrival.

Select the type of server

a. Connectionless iterative b. Connection-oriented iterative

b. Connectionless concurrent d. Connection-oriented concurrent

Identify which type of data representation format Marshaling supports ---------------

a. Machine-dependent b. Stub-based

c. Process identifier d. Machine-independent

Which type of Socket is used for application program that directly uses the services of IP?

a. SOCK_STREAM b. SOCK_DGRAM

c. SOCK_RAW d. SOCK_SEQPACKET

The fork process is called once, but it returns twice. The return values are -----and------

a. Negative integer, zero b. Positive integer, zero

c. Negative integer, one d. Positive integer, minus one

You might also like