0% found this document useful (0 votes)
4 views

Computer Networks MCQ Lecture 05

The document discusses the primary purpose of the Internet, which is to provide services at the application layer. It explains the importance of standardized protocols for compatibility, the client-server and peer-to-peer paradigms, and the role of sockets in enabling application-layer communication. Additionally, it addresses challenges in peer-to-peer communication and identifies common port numbers associated with various protocols.

Uploaded by

sisomiimo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Computer Networks MCQ Lecture 05

The document discusses the primary purpose of the Internet, which is to provide services at the application layer. It explains the importance of standardized protocols for compatibility, the client-server and peer-to-peer paradigms, and the role of sockets in enabling application-layer communication. Additionally, it addresses challenges in peer-to-peer communication and identifies common port numbers associated with various protocols.

Uploaded by

sisomiimo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Introduction

1. What is the primary purpose of the Internet, as described in this lecture?


a) To connect computers globally
b) To enable efficient communication between layers
c) To provide services at the application layer
d) To develop a secure network

Answer: c) To provide services at the application layer

1. What does a logical connection at the application layer imply?


a) Physical wires connecting applications
b) An imaginary direct connection for sending and receiving messages
c) Dedicated hardware between servers
d) A peer-to-peer network architecture

Answer: b) An imaginary direct connection for sending and receiving messages

Protocols

1. Why must protocols in the first four layers of the TCP/IP suite be standardized?
a) To simplify documentation processes
b) To ensure compatibility across systems
c) To facilitate protocol upgrades
d) To enable peer-to-peer networking

Answer: b) To ensure compatibility across systems

1. What is a key feature of nonstandard application-layer protocols?


a) They are always approved by Internet authorities
b) They must use the HTTP framework
c) They can be created privately for specific use cases
d) They are limited to open-source systems

Answer: c) They can be created privately for specific use cases

Application-Layer Paradigms

1. Which paradigm traditionally uses a central server to handle requests?


a) Peer-to-peer (P2P)
b) Client-server
c) Distributed computing
d) Socket interface
Answer: b) Client-server

1. What is one main disadvantage of the client-server paradigm?


a) High security risks
b) Over-reliance on client-side processes
c) The server bears the communication load
d) Limited scalability of peer systems

Answer: c) The server bears the communication load

1. What is a distinguishing feature of the peer-to-peer (P2P) paradigm?


a) It requires a central server to manage communication
b) Peers can provide and receive services simultaneously
c) It is limited to file-sharing applications
d) It guarantees higher security than client-server systems

Answer: b) Peers can provide and receive services simultaneously

Client-Server Paradigm

1. What role does the client play in the client-server model?


a) It continuously listens for incoming connections
b) It initializes communication by sending requests
c) It manages data storage for the server
d) It ensures secure connections between applications

Answer: b) It initializes communication by sending requests

1. Which of the following is NOT a standard client-server application?


a) HTTP
b) SSH
c) BitTorrent
d) FTP

Answer: c) BitTorrent

Socket Interface

1. What does a socket address consist of?


a) An IP address and a subnet mask
b) An IP address and a port number
c) A MAC address and a port number
d) A domain name and a user ID

Answer: b) An IP address and a port number

1. Which socket function is used to create a new socket?


a) bind()
b) connect()
c) socket()
d) send()

Answer: c) socket()

1. Which of the following best describes the role of the socket interface?
a) To provide direct hardware communication
b) To enable interaction between the application layer and the operating system
c) To secure data transmission in the network
d) To synchronize processes in the transport layer

Answer: b) To enable interaction between the application layer and the operating system

Applications of Sockets

1. Which of the following uses sockets for communication?


a) File Transfer Protocol (FTP)
b) Internet telephony
c) Messaging services
d) All of the above

Answer: d) All of the above

1. What challenge is commonly associated with peer-to-peer paradigms?


a) Difficulty in creating secure communication
b) Poor support for multimedia applications
c) Over-reliance on a central server
d) Limited scalability

Answer: a) Difficulty in creating secure communication

1. Which port number is commonly associated with HTTP servers?


a) 22
b) 80
c) 25
d) 443

Answer: b) 80

You might also like