Chapter-5 Introduction to computer networks and physical layer
Chapter-5 Introduction to computer networks and physical layer
18: What does "duplex" mean in networking? 22: Which network device is used to divide a single network into
A) The speed of data transmission smaller segments?
B) The direction of data transmission A) Hub
C) The physical medium used B) Bridge
D) The encryption method applied C) Switch
Answer: B) The direction of data transmission D) Repeater
Explanation: Duplex refers to whether communication is one-way Answer: B) Bridge
(simplex) or two-way (half/full-duplex). Explanation: Bridges operate at the data link layer to divide a network
into smaller, manageable segments.
19: In the OSI model, which layer handles the transmission medium?
A) Application Layer 23: Which layer in the OSI model ensures reliable data delivery?
B) Data Link Layer A) Physical Layer
C) Physical Layer B) Transport Layer
D) Network Layer C) Network Layer
Answer: C) Physical Layer D) Data Link Layer
Explanation: The physical layer is responsible for the medium and Answer: B) Transport Layer
transmission of signals. Explanation: The transport layer ensures end-to-end reliability through
error detection and correction.
20: What is the maximum number of layers in the OSI model?
A) 5 24: What does a repeater do in a network?
B) 6 A) Amplifies and regenerates signals
C) 7 B) Routes packets between networks
D) 8 C) Secures data during transmission
Answer: C) 7 D) Converts protocols
Explanation: The OSI model consists of seven layers: Physical, Data Answer: A) Amplifies and regenerates signals
Link, Network, Transport, Session, Presentation, and Application. Explanation: Repeaters extend network reach by amplifying weak
signals.
20: Which protocol is used for frame synchronization in Ethernet? 24: What type of addressing does Ethernet use for communication?
A) Start-of-Frame Delimiter (SFD) A) Logical addressing
B) Address Resolution Protocol (ARP) B) Hierarchical addressing
C) Point-to-Point Protocol (PPP) C) Flat addressing
D) Network Time Protocol (NTP) D) Physical addressing
Answer: A) Start-of-Frame Delimiter (SFD) Answer: D) Physical addressing
Explanation: SFD indicates the beginning of a frame for Explanation: Ethernet uses MAC addresses, which are physical
synchronization in Ethernet. addresses.
21: What is the purpose of "acknowledgment" in data transmission at 25: What is the function of the Stop-and-Wait ARQ protocol?
the Data Link Layer? A) To optimize routing in a network
A) To establish a secure connection B) To implement error correction
B) To confirm successful frame reception C) To ensure flow control by sending one frame at a time
C) To encrypt transmitted data D) To resolve address conflicts
D) To prioritize specific packets Answer: C) To ensure flow control by sending one frame at a time
Answer: B) To confirm successful frame reception Explanation: Stop-and-Wait ARQ ensures data transmission in a step-
Explanation: Acknowledgment ensures that data frames have been by-step manner with acknowledgments.
received correctly by the recipient.
26: Which type of communication is supported by PPP (Point-to-Point
22: Which of the following is a wireless LAN protocol defined by Protocol)?
IEEE? A) Multicast communication
A) IEEE 802.11 B) Point-to-multipoint communication
B) IEEE 802.3 C) Point-to-point communication
C) IEEE 802.4 D) Broadcast communication
D) IEEE 802.5 Answer: C) Point-to-point communication
Answer: A) IEEE 802.11 Explanation: PPP is designed for direct communication between two
Explanation: IEEE 802.11 defines wireless LAN (Wi-Fi) standards. devices.
23: What is the primary role of error correction in the Data Link 27: What does the term "collision domain" refer to in Ethernet
Layer? networks?
A) To detect and correct errors in the received data A) A network segment where multiple devices share the same physical
B) To optimize data routing medium
C) To establish logical connections B) A region where wireless interference occurs
D) To control access to the physical medium C) An isolated segment of a WAN
Answer: A) To detect and correct errors in the received data D) A virtual private network segment
Answer: A) A network segment where multiple devices share the
same physical medium A) Physical data transmission
Explanation: A collision domain is a segment where collisions can B) Logical addressing and routing
occur in a shared medium. C) Session management
D) Encryption and decryption of data
28: Which feature distinguishes IEEE 802.5 (Token Ring) from IEEE Answer: B) Logical addressing and routing
802.3 (Ethernet)? Explanation: The Network Layer is responsible for assigning IP
A) Use of MAC addressing addresses and determining the best path for data delivery.
B) Use of token-passing access control
C) Support for wireless networks 2: Which protocol is responsible for mapping IP addresses to MAC
D) Support for bus topology addresses?
Answer: B) Use of token-passing access control A) ARP
Explanation: Token Ring uses token-passing, whereas Ethernet uses B) RIP
CSMA/CD. C) ICMP
D) OSPF
29: What does the acronym "PPP" stand for in data communication? Answer: A) ARP
A) Packet Protocol Processor Explanation: ARP (Address Resolution Protocol) translates IP
B) Point-to-Point Protocol addresses into MAC addresses.
C) Physical Packet Protocol
D) Public Processing Protocol 3: What does the term "subnetting" mean in the context of the
Answer: B) Point-to-Point Protocol Network Layer?
Explanation: PPP facilitates direct communication between two A) Splitting a network into smaller segments
points. B) Encrypting data at the transport layer
C) Reducing packet collisions in the physical layer
30: Which of the following is a Wide Area Protocol supported by the D) Establishing a virtual private network
Data Link Layer? Answer: A) Splitting a network into smaller segments
A) Ethernet Explanation: Subnetting helps divide larger networks into smaller,
B) Token Ring manageable sub-networks.
C) PPP
D) Wi-Fi 4: Which of the following is a dynamic routing protocol?
Answer: C) PPP A) OSPF
Explanation: PPP is commonly used in WAN environments for data B) CSMA/CD
communication. C) PPP
D) Token Ring
Answer: A) OSPF
Explanation: OSPF (Open Shortest Path First) is a dynamic routing
Network Layer protocol used in IP networks.
1: What is the primary purpose of the Network Layer in the OSI 5: What is the purpose of IPv6 compared to IPv4?
model? A) To provide a smaller address space
B) To eliminate logical addressing B) To route packets within a local network
C) To support a larger number of devices with extended address space C) To exchange routing information between autonomous systems
D) To replace the Transport Layer protocols D) To encrypt data in transit
Answer: C) To support a larger number of devices with extended Answer: C) To exchange routing information between autonomous
address space systems
Explanation: IPv6 provides a 128-bit address space, supporting a vast Explanation: BGP is used for routing between different administrative
number of devices. domains on the Internet.
6: What is the role of a router at the Network Layer? 10: What does "classful addressing" mean in the Network Layer?
A) To establish a physical connection A) Dividing an IP address into fixed blocks or classes
B) To filter malicious packets B) Allocating addresses dynamically based on demand
C) To forward packets between different networks C) Encrypting IP addresses for security
D) To synchronize application sessions D) Reusing addresses within a subnet
Answer: C) To forward packets between different networks Answer: A) Dividing an IP address into fixed blocks or classes
Explanation: Routers use IP addresses to direct packets to their Explanation: Classful addressing divides IP addresses into predefined
destination networks. classes (A, B, C, etc.).
7: What type of routing is used when each router maintains a complete 11: What is the primary function of the default gateway in a network?
topology of the network? A) To resolve domain names
A) Distance vector routing B) To route packets to external networks
B) Link state routing C) To act as a firewall
C) Static routing D) To allocate IP addresses
D) Default routing Answer: B) To route packets to external networks
Answer: B) Link state routing Explanation: The default gateway forwards packets from the local
Explanation: In link state routing, each router has a full map of the network to other networks.
network topology, as used in OSPF.
12: Which IPv6 feature eliminates the need for NAT (Network
8: Which protocol is used to send error and control messages in the Address Translation)?
Network Layer? A) Auto-configuration
A) TCP B) Vast address space
B) ICMP C) Multicast addressing
C) ARP D) Mobility support
D) DNS Answer: B) Vast address space
Answer: B) ICMP Explanation: IPv6’s large address space provides unique addresses for
Explanation: ICMP (Internet Control Message Protocol) is used for every device, removing the need for NAT.
error reporting and diagnostics.
13: Which of the following protocols is distance-vector-based?
9: What is the primary function of BGP (Border Gateway Protocol)? A) OSPF
A) To manage domain name resolution B) RIP
C) EIGRP Answer: C) 128 bits
D) MPLS Explanation: IPv6 uses 128-bit addresses, allowing for a significantly
Answer: B) RIP larger address space.
Explanation: RIP (Routing Information Protocol) is a distance-vector
protocol that shares routing information periodically. 18: What does the acronym CIDR stand for?
A) Classless Inter-Domain Routing
14: What is the primary limitation of RIP as a routing protocol? B) Centralized Internet Data Routing
A) Incompatibility with IPv6 C) Critical Infrastructure Data Routing
B) High CPU usage D) Cached Internet Domain Resources
C) Maximum hop count of 15 Answer: A) Classless Inter-Domain Routing
D) Lack of encryption Explanation: CIDR replaces classful addressing and allows flexible
Answer: C) Maximum hop count of 15 allocation of IP address space.
Explanation: RIP has a maximum hop limit of 15, making it unsuitable
for large networks. 19: Which protocol is used to exchange routing updates between
routers in the same autonomous system?
15: What type of IP address is 192.168.1.1? A) BGP
A) Public IP address B) EIGRP
B) Multicast address C) DHCP
C) Private IP address D) FTP
D) Loopback address Answer: B) EIGRP
Answer: C) Private IP address Explanation: EIGRP (Enhanced Interior Gateway Routing Protocol) is
Explanation: IP addresses in the range 192.168.x.x are reserved for used within a single autonomous system.
private networks.
20: What is a "multicast" IP address used for?
16: In IPv6, what is the purpose of an extension header? A) Sending packets to a single host
A) To increase header size B) Broadcasting packets to all hosts
B) To provide additional functionality like routing and fragmentation C) Sending packets to a specific group of hosts
C) To encrypt the packet D) Routing packets between routers
D) To replace the TCP header Answer: C) Sending packets to a specific group of hosts
Answer: B) To provide additional functionality like routing and Explanation: Multicast addresses enable communication with a group
fragmentation of devices on a network.
Explanation: IPv6 extension headers enable optional features such as
routing and security. 21: What is the primary advantage of IPv6 over IPv4?
A) Reduced packet header size
17: What is the size of an IPv6 address? B) Faster transmission speed
A) 32 bits C) Larger address space
B) 64 bits D) Improved routing protocols
C) 128 bits Answer: C) Larger address space
D) 256 bits
Explanation: IPv6 offers a significantly larger address space, 26: Which of the following is NOT a routing algorithm?
accommodating more devices. A) Shortest path algorithm
B) Distance vector routing
22: Which protocol is responsible for managing network congestion at C) Link state routing
the Network Layer? D) Multiplexing algorithm
A) ICMP Answer: D) Multiplexing algorithm
B) OSPF Explanation: Multiplexing deals with data streams, not routing.
C) RIP
D) None of the above 27: What is the role of a gateway in a network?
Answer: A) ICMP A) To route traffic within the same subnet
Explanation: ICMP is used for error reporting and managing network B) To provide a connection between different networks
congestion. C) To assign IP addresses dynamically
D) To encrypt network traffic
23: What is the primary use of a subnet mask? Answer: B) To provide a connection between different networks
A) To encrypt data packets Explanation: A gateway enables communication between different
B) To separate network and host portions of an IP address networks or protocols.
C) To route packets between subnets
D) To assign IP addresses dynamically 28: Which IPv6 address type is used for a single device?
Answer: B) To separate network and host portions of an IP address A) Anycast
Explanation: Subnet masks identify which part of an IP address refers B) Unicast
to the network and which to the host. C) Multicast
D) Broadcast
24: What is the main benefit of a hierarchical IP addressing scheme? Answer: B) Unicast
A) Easier packet fragmentation Explanation: Unicast addresses are assigned to individual devices for
B) Improved security one-to-one communication.
C) Scalability and efficient routing
D) Reduced hardware costs 29: What does the "Time to Live" (TTL) field in an IP header do?
Answer: C) Scalability and efficient routing A) Determines the lifespan of a packet in the network
Explanation: Hierarchical addressing simplifies routing and makes B) Encrypts packet data
networks scalable. C) Indicates the packet's destination
D) Specifies the packet size
25: What does the acronym ICMP stand for? Answer: A) Determines the lifespan of a packet in the network
A) Internet Control Messaging Protocol Explanation: TTL limits the number of hops a packet can take before
B) Internal Communication Management Protocol being discarded.
C) Inter-Cloud Messaging Platform
D) Inter-Computer Management Protocol 30: What is the main purpose of the IPv6 extension header "Hop-by-
Answer: A) Internet Control Messaging Protocol Hop Options"?
Explanation: ICMP is a protocol for sending control and error A) To encrypt packets at each hop
messages in the network. B) To specify options that must be processed by every router
C) To increase packet size dynamically 4: What is the purpose of port numbers in the Transport Layer?
D) To control data flow between applications A) To identify specific applications or processes
Answer: B) To specify options that must be processed by every router B) To encrypt data packets
Explanation: Hop-by-Hop Options headers are examined by every C) To allocate IP addresses
router along the packet's path. D) To define routing paths
Answer: A) To identify specific applications or processes
Explanation: Port numbers allow multiple applications to use the
network simultaneously.
Transport Layer
5: Which transport protocol is typically used for streaming video?
1: Which of the following protocols operates at the Transport Layer? A) TCP
A) FTP B) UDP
B) TCP C) FTP
C) HTTP D) Telnet
D) ICMP Answer: B) UDP
Answer: B) TCP Explanation: UDP is used for streaming because it prioritizes speed
Explanation: TCP (Transmission Control Protocol) provides reliable, over reliability.
connection-oriented communication at the Transport Layer.
6: What is the maximum size of a TCP header?
2: What is the primary purpose of the Transport Layer? A) 40 bytes
A) Routing packets between devices B) 60 bytes
B) Providing end-to-end communication C) 20 bytes
C) Resolving domain names D) 64 bytes
D) Encrypting data Answer: B) 60 bytes
Answer: B) Providing end-to-end communication Explanation: The TCP header can range from 20 to 60 bytes,
Explanation: The Transport Layer ensures reliable delivery of data depending on the presence of optional fields.
between hosts.
7: What mechanism does TCP use to ensure reliable delivery?
3: Which protocol is used for connectionless communication at the A) Checksum
Transport Layer? B) Flow control
A) TCP C) Acknowledgment and retransmission
B) UDP D) Encryption
C) ICMP Answer: C) Acknowledgment and retransmission
D) SMTP Explanation: TCP uses acknowledgment and retransmission to ensure
Answer: B) UDP reliable data delivery.
Explanation: UDP (User Datagram Protocol) provides connectionless
communication for fast and lightweight data transmission. 8: What does "three-way handshake" refer to in TCP?
A) Data retransmission process
B) Connection establishment process
C) Encryption process Explanation: Port 443 is used for secure HTTP (HTTPS)
D) Port scanning process communication.
Answer: B) Connection establishment process
Explanation: The three-way handshake (SYN, SYN-ACK, ACK) 13: What is the purpose of the "URG" flag in TCP?
establishes a reliable connection in TCP. A) To terminate the connection
B) To acknowledge receipt of data
9: What is the primary purpose of the sliding window mechanism in C) To indicate urgent data
TCP? D) To request retransmission
A) To encrypt data Answer: C) To indicate urgent data
B) To manage flow control and congestion Explanation: The URG flag signals that the data should be processed
C) To assign port numbers immediately.
D) To increase header size
Answer: B) To manage flow control and congestion 14: What does "flow control" mean in the context of the Transport
Explanation: Sliding window ensures efficient data transfer and avoids Layer?
congestion. A) Routing data between devices
B) Ensuring data is delivered without overwhelming the receiver
10: Which flag in a TCP header is used to terminate a connection? C) Encrypting network traffic
A) SYN D) Resolving domain names
B) FIN Answer: B) Ensuring data is delivered without overwhelming the
C) ACK receiver
D) PSH Explanation: Flow control prevents the sender from sending data
Answer: B) FIN faster than the receiver can process.
Explanation: The FIN flag is used to initiate connection termination.
15: Which protocol is used to establish remote terminal access?
11: What is multiplexing in the Transport Layer? A) HTTP
A) Dividing IP addresses B) UDP
B) Combining data streams from multiple applications C) Telnet
C) Encrypting transmitted data D) SMTP
D) Routing data packets Answer: C) Telnet
Answer: B) Combining data streams from multiple applications Explanation: Telnet operates at the Transport Layer to provide remote
Explanation: Multiplexing allows multiple applications to share a terminal access.
single network connection.
16: Which protocol is commonly used for sending email?
12: Which of the following is a common port number for HTTPS? A) FTP
A) 21 B) HTTP
B) 80 C) SMTP
C) 443 D) UDP
D) 25 Answer: C) SMTP
Answer: C) 443
Explanation: SMTP (Simple Mail Transfer Protocol) is used to send C) 49151
emails. D) 65535
Answer: D) 65535
17: What is the primary role of congestion control in TCP? Explanation: Port numbers range from 0 to 65535, with higher
A) To encrypt data packets numbers available for dynamic or private use.
B) To prevent excessive traffic on the network
C) To assign port numbers 22: What does the "ACK" flag in a TCP header signify?
D) To retransmit lost data A) Acknowledgment of data receipt
Answer: B) To prevent excessive traffic on the network B) Termination of connection
Explanation: Congestion control adjusts the data flow to avoid C) Error detection
overwhelming the network. D) Urgent data processing
Answer: A) Acknowledgment of data receipt
18: Which of the following is a well-known port for FTP? Explanation: The ACK flag confirms successful receipt of data.
A) 21
B) 80 23: What does "MTU" stand for in the Transport Layer?
C) 443 A) Maximum Transfer Unit
D) 25 B) Medium Transmission Utility
Answer: A) 21 C) Minimum Transport Unit
Explanation: Port 21 is used for FTP control commands. D) Maximum Transmission Unit
Answer: D) Maximum Transmission Unit
19: What does the term "socket" refer to in the Transport Layer? Explanation: MTU refers to the largest packet size that can be sent
A) A device that connects networks over a network.
B) An IP address combined with a port number
C) A protocol for routing packets 24: What is the purpose of a checksum in TCP?
D) A hardware interface for network devices A) To route packets
Answer: B) An IP address combined with a port number B) To detect errors in data transmission
Explanation: A socket uniquely identifies a connection endpoint. C) To encrypt packets
D) To assign port numbers
20: Which protocol does not use a handshake mechanism? Answer: B) To detect errors in data transmission
A) TCP Explanation: The checksum verifies the integrity of the transmitted
B) UDP data.
C) FTP
D) HTTPS 25: What is the primary role of the PSH flag in a TCP header?
Answer: B) UDP A) To terminate the connection
Explanation: UDP is connectionless and does not use handshakes. B) To signal that the data should be sent immediately
C) To reset the connection
21: What is the maximum port number in TCP/UDP? D) To indicate urgent data
A) 1024 Answer: B) To signal that the data should be sent immediately
B) 16384
Explanation: The PSH flag forces the delivery of data to the receiving B) TCP provides reliable delivery, while UDP does not
application. C) UDP uses three-way handshakes, and TCP does not
D) TCP does not use port numbers, while UDP does
26: What does "connection-oriented" mean in TCP? Answer: B) TCP provides reliable delivery, while UDP does not
A) Data is sent without acknowledgment Explanation: TCP ensures reliability through acknowledgments, while
B) A reliable session is established before data transmission UDP does not guarantee delivery.
C) Data is encrypted before transmission
D) Packets are delivered out of order
Answer: B) A reliable session is established before data transmission
Explanation: TCP establishes a session before transmitting data. Application Layer Protocol
27: Which protocol is used to transfer files over a secure channel? 1: Which protocol is used for transferring web pages?
A) FTP A) FTP
B) SFTP B) HTTP
C) SMTP C) SMTP
D) HTTP D) SNMP
Answer: B) SFTP Answer: B) HTTP
Explanation: SFTP (Secure File Transfer Protocol) is a secure method Explanation: HTTP (Hypertext Transfer Protocol) is used for
of transferring files. transferring web pages.
28: What is the primary function of the RST flag in TCP? 2: Which of the following is a secure version of HTTP?
A) To encrypt the data A) FTP
B) To reset the connection B) HTTPS
C) To acknowledge data receipt C) SNMP
D) To indicate urgent data D) Telnet
Answer: B) To reset the connection Answer: B) HTTPS
Explanation: The RST flag resets an active connection. Explanation: HTTPS uses SSL/TLS for secure communication.
29: Which transport protocol supports multicast? 3: Which application layer protocol is used for email delivery?
A) TCP A) HTTP
B) UDP B) FTP
C) FTP C) SMTP
D) HTTP D) SSH
Answer: B) UDP Answer: C) SMTP
Explanation: UDP supports multicast by sending packets to a group of Explanation: SMTP (Simple Mail Transfer Protocol) is used to send
devices. emails.
These ports are reserved for commonly used protocols and services:
These ports are used by specific applications registered with the Internet
Assigned Numbers Authority (IANA):