COMPUTER NETWORK EXAM TEST 13/01/2025
1. What is the Application layer protocol used when a user wanna
send an email from a mail client to a mail server?
а. IMAP
b. SMTP
с. НТТР
d. POP
2. What is the primary purpose of multiplexing in the transport
layer?
a. To ensure reliable delivery of data
b. To handle data from multiple sockets for transmission
c. To reduce congestion in the network
d. To establish a connection between two hosts
3. Which method of the socket module allows you to associate a host
and a port with a specific socket?
a. The socket.sendto(PORT) method
b. The socket.accept(PORT) method
c. The bind (PORT,IP) method
d. The bind (IP, PORT) method
4. The switch is a __ device.
a. physical layer
b. link layer
c. application layer
d. network layer
5. Associate each protocol to its MAC protocol class
Carrier Sense Multiple Access: Random Access
Time Division Multiple Access: Channel Partitioning
Slotted ALOHA: Random Access
Token Passing: Taking Turns
6. In the IPv4 addressing format, the number of networks allowed
under Class C addresses is
a. 2^14
b. 2^21
c. 2^7
d. 2^24
7. One of the network layer functions is forwarding, which is how _
a. check the presence of bit errors within a segment
b. move packets from router's input to appropriate router output
c. aggregate routers into regions
d. determine good path taken by packets from source to destination
8. The _______ connects two or more computers that are but
reside in the same or different cities.
a. MAN
b. WAN
C. LAN
d. ISP
9. What is the main drawback of pure ALOHA?
a. Synchronization issues
b. Lack of decentralization
c. Complex implementation
d. High probability of collisions
10. Which of the following best describes UDP?
a. Reliable and connection-oriented
b. Unreliable and connection-oriented
c. Reliable and connectionless
d. Unreliable and connectionless
11. What is true when talking about Slotted ALOHA
a. time divided into equal size slots
b. master node invites other nodes to transmit in turn
c. each station assignes fixed frequency band
d. access to channel in "rounds"
12. Considering the ISO/OSI stack, what is the layer number of the
application layer?
a. 5
b. 3
c. 7
d. 2
13.What is true when talking about direct limited broadcast?
a. this type of information transfer is useful when there is a participation
of single sender and single recipient
b. it will append 255.255.255.255 in the destination address of the
datagram (packet) header, which is reserved for information transfer
to all the recipients from a single client (sender) over the network
c. one/more senders and one/more recipients participate in data transfer
traffic
d. this is useful when a device in one network wants to transfer packet
stream to all the devices over the other network
14. In the IPv4 addressing format, the number of networks allowed
under Class A addresses is
a. 2^21
b. 2^14
c. 2^24
d. 2^7
15. Which field in a TCP header is used for flow control?
a. Sequence number
b. Checksum
c. Receive window
d. Acknowledgment number
16. What is true when talking about client-server?
a. computers have the same role at the same time
b. computers provide resources and offer services to other computers
c. all computer are intermittently connected and change IP addresses
d. this is the basis of file-sharing
17.What is true about the cookies?
a. Cookies cannot be used to store shopping carts information
b. The cookies are used to satisfy client requests without involving
origin server.
c. Websites and client browser use cookies to maintain some state
between transactions.
d. The cookies reduce response time for client request
18. What is true when talking about the Domain Name System?
a. there is one root name servers per country
b. the root name server is responsible for.com, org, net, .ch, uk, .fr, ca,
and jp
c. it is useful for host aliasing
d. It implements a centralized database
19. What is "hot potato routing"?
a. A high-performance routing algorithm.
b. A routing strategy based on the lowest intra-AS cost.
c. A technique to reduce latency in datacenters.
d. A common error in misconfigured routers.
20. What is the primary purpose of Dijkstra's algorithm?
a. Minimize the update time of routing tables.
b. Calculate the least-cost path from a source node to all other nodes.
c. Determine the number of hops in a path.
d. Create point-to-point connections.
21. What is true when talking about TDMA?
a. time divided into equal size slots
b. each station assignes fixed frequency band
c. master node invites other nodes to transmit in turn
d. access to channel in "rounds"
22. Which of the following HTTP method should be used to delete
resources using RESTful web service?
a. GET
b. POST
c. PUT
d. DELETE
23. What is true when talking about multicast?
a. one/more senders and one/more recipients participate in data
transfer traffic
b. it will append 255.255.255.255 in the destination address of the
datagram (packet) header
c. this type of information transfer is useful when there is a
participation of single sender and single recipient
d. this is useful when a device in one network wants to transfer packet
stream to all the devices over the other network
24. What is true about HTTP?
a. Python is the only programming language with wich a client HTTP is
implemented
b. client always initiates TCP connection to server over port 8080
c. HTTP connection can be both persistent and non-persistent
d. server maintains information about past client requests
25. What is the goal operation of the NETCONF protocol?
a. Encrypt traffic between routers.
b. Manage and configure devices network-wide.
c. Establish TCP connections.
d. Monitor network traffic in real-time.
26. What is true when talking about direct broadcast?
a. one/more senders and one/more recipients participate in data transfer
traffic
b. it will append 255.255.255.255 in the destination address of the
datagram (packet) header
c. this type of information transfer is useful when there is a
participation of single sender and single recipient
d. this is useful when a device in one network wants to transfer packet
stream to all the devices over the other network
27. What happens if a frame with errors is detected at the link
layer?
a. It is corrected automatically
b. It is stored for analysis
c. It continues to the next layer
d. It is dropped or retransmitted
28. What is true when talking about simplex mode?
a. communication is unidirectional, as on a one-way street
b. it is used when communication in both directions is required all the
time
c. the entire capacity of the channel can be utilized for each direction
d. each station can both transmit and receive, but not at the same time.
29. What does the term "cumulative acknowledgment" refer to in
TCP?
a. Acknowledging the current segment and discarding the rest
b. Acknowledging every individual segment
c. Acknowledging all segments up to and including a specific sequence
number
d. Acknowledging the last segment received
30. How many bits is the checksum field long?
a. 4
b. 16
c. 8
d. 32
"Please note: The answers provided in this document are generated by
ChatGPT. While care has been taken to ensure their accuracy, however
there is no guarantee that all answers are correct. Verification is
recommended for academic or professional use."