0% found this document useful (0 votes)
11 views3 pages

Network Mid

Uploaded by

aisvvsbauaha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

Network Mid

Uploaded by

aisvvsbauaha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Network Programming - Midterm

Question 1: MCQ
1. Many computers function as the servers and clients on the network. This type of network is called
a ________ network.

A) Distributed B) Client-Server
C) Peer-to-Peer D) None of the above

Answer: (C) Peer-to-Peer

2. The advantages of peer-to-peer networking are:

A) Easy to set up B) Less complex


C) Lower cost D) All of the above

Answer: (D) All of the above

3. The disadvantages of peer-to-peer networking:

A) Centralized administration B) Secure


C) Not scalable D) All of the above

Answer: (C) Not scalable

4. A typical ________ program creates some remote objects, makes references to these objects
accessible, and waits for clients to invoke methods on these objects.

A) Server B) Client
C) Thread D) Concurrent

Answer: (A) Server

5. Which of the following protocols is used in the internet?

A) HTTP B) DHCP
C) DNS D) DNS, HTTP and DHCP
Answer: (D) DNS, HTTP and DHCP

6. The client in socket programming must know which information?

A) IP address of Server B) Port number


C) Both IP address of Server & Port number D) Only its own IP address

Answer: (C) Both IP address of Server & Port number


7. A________set of rules that governs data communication.

A) Protocols B) Standards
C) RFCs D) Servers

Answer: (A) Protocols

8. Range of port numbers in Internet model is:

A) 0 and 32,765(8-bit) B) 0 and 32,765(16-bit)


C) 0 and 65,535(32-bit) D) 0 and 65,535(16-bit)

Answer: (D) 0 and 65,535(16-bit)

9. The combination of an IP address and port number is called as ________.

A) Socket address B) Port address


C) MAC address D) Host address

Answer: (A) Socket address

10. Which of the following is false with respect to Connectionless service of transport layer protocol?

A) Packets are not delayed B) Packets are not numbered


C) No acknowledgement D) Packet may arrive out of sequence

Answer: (A) Packets are not delayed

11. The first order in the process of Connection-Oriented services is ________.

A) Data transfer B) Connection release


C) Connection establishment D) None of the above
Answer: (C) Connection establishment

12. Which of the following is false with respect to UDP?

A) Connection-oriented B) Unreliable
C) High speed D) Low overhead

Answer: (A) Connection-oriented

13. Which of this is not a class of IP address?

A) Class A B) Class C
C) Class D D) Class F
Answer: (D) Class F
14. The packet of information at the application layer is called ________.

A) Packet B) Message
C) Segment D) Frame

Answer: (B) Message

15. To deliver a message to the correct application program running on a host, the ________ address
must be consulted.

A) IP B) MAC
C) Port D) None of the above

Answer: (C) Port

True or False: Questions

1. In peer-to-peer networking every computer is capable of playing the role of client, server
or both at the same time. (True)

2. In the Client-Server model, both computers must have the same operating system. (False)

3. The IP header contains some information such as: the internet address of the Destination
machine. (True)
4. Packets travel horizontally through layers (False)

5. The range of limit of network between its upper frequency and lower frequency is termed
as Bandwidth. (True)

6. Application layer of the TCP/IP stack deals with disassembly and re-assembly of packets
and error detection and correction. (False)

7. Class A address use 7 bits for the <network> and 24 bits for the <host> portion of The IP
address. (True)

8. Concurrent servers handle client requests in Serial. (False)

9. Pure P2P systems work well only in a small-scale environment. (True)

10. In a Broadcast transmission a single packet is copied and sent to all nodes on the network.
(True)
‫أخيرا هنخلص اهو إن شاء ﷲ مبروك وعقبال الترم التاني ونتخرج على خير بإذن ﷲ هانت‬

You might also like