Blog about Programming Languages & Coding

Blog about Programming Languages & Coding
Contents for Computer Science, IT, B.Sc. CS & IT, M.Sc. CS & IT, MCA, BE CS & IT, ME CS & IT , Interview Questions, Books and Online Course Recommendations from Udemy, Coursera, etc

COMPUTER NETWORK MCQS

 COMPUTER NETWORK MCQS


1. Which layer of the OSI model is responsible for routing and addressing?

   - A. Data Link

   - B. Network

   - C. Transport

   - D. Physical

   - **Answer: B. Network**

 

2. What is the primary function of ARP (Address Resolution Protocol)?

   - A. To translate IP addresses to MAC addresses

   - B. To translate domain names to IP addresses

   - C. To establish a secure connection between two hosts

   - D. To manage network traffic congestion

   - **Answer: A. To translate IP addresses to MAC addresses**

 

3. What is the purpose of DNS (Domain Name System) in computer networks?

   - A. To convert IP addresses to domain names

   - B. To manage network security protocols

   - C. To regulate data flow between devices

   - D. To manage network hardware resources

   - **Answer: A. To convert IP addresses to domain names**

 

4. Which protocol is used to securely transfer files over a network?

   - A. FTP (File Transfer Protocol)

   - B. HTTP (Hypertext Transfer Protocol)

   - C. SMTP (Simple Mail Transfer Protocol)

   - D. SNMP (Simple Network Management Protocol)

   - **Answer: A. FTP (File Transfer Protocol)**

 

5. Which device forwards data packets between different networks?

   - A. Hub

   - B. Switch

   - C. Router

   - D. Repeater

   - **Answer: C. Router**

 

6. What is the purpose of subnetting in networking?

   - A. To reduce network traffic

   - B. To create smaller, more manageable networks

   - C. To increase network speed

   - D. To secure network connections

   - **Answer: B. To create smaller, more manageable networks**

 

7. Which protocol is used for sending and receiving emails?

   - A. TCP (Transmission Control Protocol)

   - B. UDP (User Datagram Protocol)

   - C. SMTP (Simple Mail Transfer Protocol)

   - D. HTTP (Hypertext Transfer Protocol)

   - **Answer: C. SMTP (Simple Mail Transfer Protocol)**

 

8. What is the function of a firewall in a computer network?

   - A. To prevent unauthorized access to the network

   - B. To boost network speed

   - C. To manage IP addresses

   - D. To encrypt data transmission

   - **Answer: A. To prevent unauthorized access to the network**

 

9. Which of the following is a reliable transport protocol in TCP/IP?

   - A. TCP (Transmission Control Protocol)

   - B. UDP (User Datagram Protocol)

   - C. IP (Internet Protocol)

   - D. ARP (Address Resolution Protocol)

   - **Answer: A. TCP (Transmission Control Protocol)**

 

10. What is the purpose of NAT (Network Address Translation)?

    - A. To map public IP addresses to private IP addresses

    - B. To establish secure connections between networks

    - C. To manage network traffic flow

    - D. To encrypt data packets

    - **Answer: A. To map public IP addresses to private IP addresses**

 

11. Which network topology connects all devices in a closed loop?

    - A. Star

    - B. Ring

    - C. Bus

    - D. Mesh

    - **Answer: B. Ring**

 

12. What is the function of DHCP (Dynamic Host Configuration Protocol) in networking?

    - A. To assign IP addresses to devices automatically

    - B. To manage domain name registrations

    - C. To encrypt data transmission

    - D. To regulate network traffic

    - **Answer: A. To assign IP addresses to devices automatically**

 

13. Which addressing scheme is used in IPv6?

    - A. 32-bit

    - B. 128-bit

    - C. 64-bit

    - D. 16-bit

    - **Answer: B. 128-bit**

 

14. What is the purpose of ICMP (Internet Control Message Protocol) in networking?

    - A. To send error messages and operational information

    - B. To establish secure connections

    - C. To manage network hardware resources

    - D. To regulate network traffic flow

    - **Answer: A. To send error messages and operational information**

 

15. Which network device operates at the Data Link layer of the OSI model?

    - A. Hub

    - B. Router

    - C. Switch

    - D. Bridge

    - **Answer: C. Switch**

 

16. What is the role of SSL (Secure Sockets Layer) in network communication?

    - A. To encrypt data transmission

    - B. To manage network security policies

    - C. To translate domain names to IP addresses

    - D. To regulate network traffic flow

    - **Answer: A. To encrypt data transmission**

 

17. Which protocol is used for secure remote login to a network device?

    - A. FTP

    - B. SSH (Secure Shell)

    - C. Telnet

    - D. SMTP

    - **Answer: B. SSH (Secure Shell)**

 

18. What is the purpose of VLANs (Virtual Local Area Networks)?

    - A. To connect geographically dispersed networks

    - B. To divide a physical network into multiple logical networks

    - C. To manage network hardware resources

    - D. To encrypt data transmission

    - **Answer: B. To divide a physical network into multiple logical networks**

 

19. Which protocol is used for real-time communication over the internet?

    - A. HTTP

    - B. FTP

    - C. RTP (Real-time Transport Protocol)

    - D. SNMP

    - **Answer: C. RTP (Real-time Transport Protocol)**

 

20. What is the function of a proxy server in a computer network?

    - A. To regulate network traffic flow

    - B. To manage network security policies

    - C. To translate domain names to IP addresses

    - D. To act as an intermediary between clients and servers

    - **Answer: D. To act as an intermediary between clients and servers**

 

21. Which protocol is used for web page retrieval?

    - A. FTP

    - B. HTTP

    - C. SMTP

    - D. SNMP

    - **Answer: B. HTTP**

 

22. What is the purpose of QoS (Quality of Service) in networking?

    - A. To increase network speed

    - B. To manage network traffic priorities

    - C. To encrypt data transmission

    - D. To regulate network security policies

    - **Answer: B. To manage network traffic priorities**

 

23. Which device connects multiple network segments and operates at the Data Link layer?

    - A. Router

    - B. Switch

    - C. Hub

    - D. Bridge

    - **Answer: D. Bridge**

 

24. What is the role of a MAC address in networking?

    - A. To uniquely identify a device on a network

    - B. To translate domain names to IP addresses

    - C. To manage network security policies

-

 

 

 

25. What is the function of ICMP (Internet Control Message Protocol) in networking?

   - A. To send error messages and operational information

   - B. To establish secure connections

   - C. To manage network hardware resources

   - D. To regulate network traffic flow

   - **Answer: A. To send error messages and operational information**

 

26. Which protocol is used for secure remote login to a network device?

   - A. FTP

   - B. SSH (Secure Shell)

   - C. Telnet

   - D. SMTP

   - **Answer: B. SSH (Secure Shell)**

 

27. What is the purpose of VLANs (Virtual Local Area Networks)?

   - A. To connect geographically dispersed networks

   - B. To divide a physical network into multiple logical networks

   - C. To manage network hardware resources

   - D. To encrypt data transmission

   - **Answer: B. To divide a physical network into multiple logical networks**

 

28. Which protocol is used for real-time communication over the internet?

   - A. HTTP

   - B. FTP

   - C. RTP (Real-time Transport Protocol)

   - D. SNMP

   - **Answer: C. RTP (Real-time Transport Protocol)**

 

29. What is the function of a proxy server in a computer network?

   - A. To regulate network traffic flow

   - B. To manage network security policies

   - C. To translate domain names to IP addresses

   - D. To act as an intermediary between clients and servers

   - **Answer: D. To act as an intermediary between clients and servers**

 

30. Which protocol is used for web page retrieval?

   - A. FTP

   - B. HTTP

   - C. SMTP

   - D. SNMP

   - **Answer: B. HTTP**

 

31. What is the purpose of QoS (Quality of Service) in networking?

   - A. To increase network speed

   - B. To manage network traffic priorities

   - C. To encrypt data transmission

   - D. To regulate network security policies

   - **Answer: B. To manage network traffic priorities**

 

32. Which device connects multiple network segments and operates at the Data Link layer?

   - A. Router

   - B. Switch

   - C. Hub

   - D. Bridge

   - **Answer: D. Bridge**

 

 

33. What is the role of a MAC address in networking?

   - A. To uniquely identify a device on a network

   - B. To translate domain names to IP addresses

   - C. To manage network security policies

   - D. To regulate network traffic flow

   - **Answer: A. To uniquely identify a device on a network**

 

34. Which of the following is a characteristic of UDP (User Datagram Protocol)?

   - A. Connection-oriented protocol

   - B. Reliable data transmission

   - C. Error checking and retransmission of lost packets

   - D. Best-effort delivery

   - **Answer: D. Best-effort delivery**

 

35. What is the purpose of NAT (Network Address Translation) in networking?

   - A. To assign IP addresses to devices automatically

   - B. To translate public IP addresses to private IP addresses

   - C. To manage network security policies

   - D. To regulate network traffic flow

   - **Answer: B. To translate public IP addresses to private IP addresses**

 

36. Which protocol is responsible for converting domain names to IP addresses?

   - A. DNS (Domain Name System)

   - B. DHCP (Dynamic Host Configuration Protocol)

   - C. ARP (Address Resolution Protocol)

   - D. ICMP (Internet Control Message Protocol)

   - **Answer: A. DNS (Domain Name System)**

 

37. What is the purpose of a MAC table in a switch?

   - A. To store IP addresses of devices connected to the switch

   - B. To manage routing tables

   - C. To store MAC addresses and associated port numbers

   - D. To encrypt data transmission

   - **Answer: C. To store MAC addresses and associated port numbers**

 

38. Which network device operates at the Physical layer of the OSI model?

   - A. Router

   - B. Switch

   - C. Hub

   - D. Repeater

   - **Answer: D. Repeater**

 

39. What is the primary function of a DNS server?

   - A. To manage IP addresses

   - B. To assign IP addresses to devices automatically

   - C. To translate domain names to IP addresses

   - D. To establish secure connections between networks

   - **Answer: C. To translate domain names to IP addresses**

 

40. Which protocol is used for transferring files securely over a network?

   - A. FTPS (File Transfer Protocol Secure)

   - B. SMTP (Simple Mail Transfer Protocol)

   - C. SNMP (Simple Network Management Protocol)

   - D. POP3 (Post Office Protocol version 3)

   - **Answer: A. FTPS (File Transfer Protocol Secure)**

 

 

41. What is the purpose of a subnet mask in IP addressing?

   - A. To identify the network portion of an IP address

   - B. To identify the host portion of an IP address

   - C. To determine the default gateway

   - D. To regulate network traffic flow

   - **Answer: A. To identify the network portion of an IP address**

 

42. Which protocol is used for dynamically assigning IP addresses to devices on a network?

   - A. TCP (Transmission Control Protocol)

   - B. DNS (Domain Name System)

   - C. DHCP (Dynamic Host Configuration Protocol)

   - D. FTP (File Transfer Protocol)

   - **Answer: C. DHCP (Dynamic Host Configuration Protocol)**

 

43. What is the role of a firewall in network security?

   - A. To connect multiple networks together

   - B. To regulate network traffic flow

   - C. To manage IP addresses

   - D. To translate domain names to IP addresses

   - **Answer: B. To regulate network traffic flow**

 

44. Which network topology connects all devices to a central hub or switch?

   - A. Ring

   - B. Bus

   - C. Star

   - D. Mesh

   - **Answer: C. Star**

 

45. What is the function of SSL/TLS in network communication?

   - A. To establish secure connections

   - B. To manage network hardware resources

   - C. To translate domain names to IP addresses

   - D. To regulate network traffic flow

   - **Answer: A. To establish secure connections**

 

46. Which of the following is a characteristic of a hub?

   - A. Operates at the Network layer of the OSI model

   - B. Forwards data packets based on MAC addresses

   - C. Provides collision detection and prevention

   - D. Creates multiple collision domains

   - **Answer: D. Creates multiple collision domains**

 

47. What is the purpose of a default gateway in networking?

   - A. To manage IP addresses

   - B. To connect multiple networks together

   - C. To translate domain names to IP addresses

   - D. To

 

Certainly, here are more unique multiple-choice questions related to computer networks:

 

48. Which protocol is commonly used for transferring files between a client and a server over a network?

   - A. SSH

   - B. FTP

   - C. SNMP

   - D. SMTP

   - **Answer: B. FTP**

 

49. In which layer of the OSI model does the TCP protocol operate?

   - A. Transport

   - B. Network

   - C. Data Link

   - D. Application

   - **Answer: A. Transport**

 

50. What does TCP stand for in TCP/IP?

   - A. Transfer Control Protocol

   - B. Transmission Control Protocol

   - C. Transport Connection Protocol

   - D. Terminal Control Protocol

   - **Answer: B. Transmission Control Protocol**

 

51. Which device operates at the Data Link layer of the OSI model and can segment collision domains?

   - A. Router

   - B. Hub

   - C. Bridge

   - D. Switch

   - **Answer: D. Switch**

 

52. What is the purpose of a subnet mask in IPv4 addressing?

   - A. To identify the network portion of an IP address

   - B. To identify the host portion of an IP address

   - C. To determine the default gateway

   - D. To identify the broadcast address

   - **Answer: A. To identify the network portion of an IP address**

 

53. Which of the following is a characteristic of UDP (User Datagram Protocol)?

   - A. Connection-oriented protocol

   - B. Reliable data transmission

   - C. Error checking and retransmission of lost packets

   - D. Best-effort delivery

   - **Answer: D. Best-effort delivery**

 

54. What is the role of a DNS server in a network?

   - A. To assign IP addresses to devices automatically

   - B. To translate IP addresses to domain names

   - C. To manage network security policies

   - D. To establish secure connections between networks

   - **Answer: B. To translate IP addresses to domain names**

 

55. Which network device operates at the Physical layer of the OSI model and regenerates signals?

   - A. Router

   - B. Switch

   - C. Repeater

   - D. Bridge

   - **Answer: C. Repeater**

 

56. What is the purpose of ICMP (Internet Control Message Protocol) echo request and echo reply messages?

   - A. To manage IP addresses

   - B. To establish secure connections

   - C. To troubleshoot network connectivity issues

   - D. To encrypt data transmission

   - **Answer: C. To troubleshoot network connectivity issues**

 

57. In TCP/IP, which layer is responsible for addressing, routing, and fragmentation?

   - A. Application

   - B. Transport

   - C. Internet

   - D. Network Interface

   - **Answer: C. Internet**

 

58. Which protocol is used for dynamically assigning IP addresses to network devices?

   - A. DNS

   - B. DHCP

   - C. ARP

   - D. ICMP

   - **Answer: B. DHCP**

 

59. What is the function of a router in a computer network?

   - A. To connect multiple networks together

   - B. To provide centralized authentication services

   - C. To forward data packets between devices within the same network

   - D. To encrypt data transmission

   - **Answer: A. To connect multiple networks together**

 

60. Which of the following is NOT a valid network topology?

   - A. Mesh

   - B. Star

   - C. Circle

   - D. Bus

   - **Answer: C. Circle**

 

61. What is the purpose of ARP (Address Resolution Protocol) in a network?

   - A. To convert IP addresses to MAC addresses

   - B. To translate domain names to IP addresses

   - C. To manage network security policies

   - D. To regulate network traffic flow

   - **Answer: A. To convert IP addresses to MAC addresses**

 

62. Which device operates at the Physical layer of the OSI model and connects multiple network segments?

   - A. Hub

   - B. Switch

   - C. Router

   - D. Bridge

   - **Answer: A. Hub**

 

63. What is the primary function of NAT (Network Address Translation)?

   - A. To assign IP addresses to devices automatically

   - B. To translate public IP addresses to private IP addresses

   - C. To manage network security policies

   - D. To regulate network traffic flow

   - **Answer: B. To translate public IP addresses to private IP addresses**

 

64. Which network device operates at the Application layer of the OSI model?

   - A. Router

   - B. Switch

   - C. Firewall

   - D. Proxy Server

   - **Answer: D. Proxy Server**

 

65. What is the purpose of a VLAN (Virtual Local Area Network)?

   - A. To connect multiple networks together

   - B. To divide a single physical network into multiple logical networks

   - C. To manage network hardware resources

   - D. To regulate network traffic flow

   - **Answer: B. To divide a single physical network into multiple logical networks**

 

66. Which protocol is used for securely accessing web pages over HTTPS?

   - A. HTTP

   - B. FTP

   - C. SSL/TLS

   - D. SNMP

   - **Answer: C. SSL/TLS**

 

67. What is the role of a proxy server in a network?

   - A. To regulate network traffic flow

   - B. To manage network security policies

   - C. To translate domain names to IP addresses

   - D. To act as an intermediary between clients and servers

   - **Answer: D. To act as an intermediary between clients and servers**

 

68. Which layer of the OSI model is responsible for error detection and correction?

   - A. Transport

   - B. Network

   - C. Data Link

   - D. Physical

   - **Answer: A. Transport**

 

69. What is the purpose of DHCP (Dynamic Host Configuration Protocol) in networking?

   - A. To assign IP addresses to devices automatically

   - B. To manage domain name registrations

   - C. To encrypt data transmission

   - D. To regulate network traffic

   - **Answer: A. To assign IP addresses to devices automatically**

 

70. Which protocol is used for transferring email messages between servers?

   - A. SMTP

   - B. POP3

   - C. IMAP

   - D. SNMP

   - **Answer: A. SMTP**

 

71. What is the primary function of a firewall in network security?

   - A. To connect multiple networks together

   - B. To regulate network traffic flow

   - C. To manage IP addresses

   - D. To translate domain names to IP addresses

   - **Answer: B. To regulate network traffic flow**

 

72. Which network topology connects devices in a linear fashion and uses terminators to prevent signal reflection?

   - A. Star

   - B. Ring

   - C. Mesh

   - D. Bus

   - **

 

Answer: D. Bus**

 

73. What is the purpose of ARP (Address Resolution Protocol) in a network?

   - A. To convert IP addresses to MAC addresses

   - B. To translate domain names to IP addresses

   - C. To manage network security policies

   - D. To regulate network traffic flow

   - **Answer: A. To convert IP addresses to MAC addresses**

 

74. Which device operates at the Physical layer of the OSI model and connects multiple network segments?

   - A. Hub

   - B. Switch

   - C. Router

   - D. Bridge

   - **Answer: A. Hub**

 

75. What is the primary function of NAT (Network Address Translation)?

   - A. To assign IP addresses to devices automatically

   - B. To translate public IP addresses to private IP addresses

   - C. To manage network security policies

   - D. To regulate network traffic flow

   - **Answer: B. To translate public IP addresses to private IP addresses**

 

76. Which network device operates at the Application layer of the OSI model?

   - A. Router

   - B. Switch

   - C. Firewall

   - D. Proxy Server

   - **Answer: D. Proxy Server**

 

77. What is the purpose of a VLAN (Virtual Local Area Network)?

   - A. To connect multiple networks together

   - B. To divide a single physical network into multiple logical networks

   - C. To manage network hardware resources

   - D. To regulate network traffic flow

   - **Answer: B. To divide a single physical network into multiple logical networks**

 

78. Which protocol is used for securely accessing web pages over HTTPS?

   - A. HTTP

   - B. FTP

   - C. SSL/TLS

   - D. SNMP

   - **Answer: C. SSL/TLS**

 

79. What is the role of a proxy server in a network?

   - A. To regulate network traffic flow

   - B. To manage network security policies

   - C. To translate domain names to IP addresses

   - D. To act as an intermediary between clients and servers

   - **Answer: D. To act as an intermediary between clients and servers**

 

80. Which layer of the OSI model is responsible for error detection and correction?

   - A. Transport

   - B. Network

   - C. Data Link

   - D. Physical

   - **Answer: A. Transport**

 

81. What is the purpose of DHCP (Dynamic Host Configuration Protocol) in networking?

   - A. To assign IP addresses to devices automatically

   - B. To manage domain name registrations

   - C. To encrypt data transmission

   - D. To regulate network traffic

   - **Answer: A. To assign IP addresses to devices automatically**

 

82. Which protocol is used for transferring email messages between servers?

   - A. SMTP

   - B. POP3

   - C. IMAP

   - D. SNMP

   - **Answer: A. SMTP**

 

83. What is the primary function of a firewall in network security?

   - A. To connect multiple networks together

   - B. To regulate network traffic flow

   - C. To manage IP addresses

   - D. To translate domain names to IP addresses

   - **Answer: B. To regulate network traffic flow**

 

84. Which network topology connects devices in a linear fashion and uses terminators to prevent signal reflection?

   - A. Star

   - B. Ring

   - C. Mesh

   - D. Bus

   - **Answer: D. Bus**

 

85. What is the primary function of NAT (Network Address Translation)?

   - A. To assign IP addresses to devices automatically

   - B. To translate public IP addresses to private IP addresses

   - C. To manage network security policies

   - D. To regulate network traffic flow

   - **Answer: B. To translate public IP addresses to private IP addresses**

 

86. Which network device operates at the Application layer of the OSI model?

   - A. Router

   - B. Switch

   - C. Firewall

   - D. Proxy Server

   - **Answer: D. Proxy Server**

 

87. What is the purpose of a VLAN (Virtual Local Area Network)?

   - A. To connect multiple networks together

   - B. To divide a single physical network into multiple logical networks

   - C. To manage network hardware resources

   - D. To regulate network traffic flow

   - **Answer: B. To divide a single physical network into multiple logical networks**

 

88. Which protocol is used for securely accessing web pages over HTTPS?

   - A. HTTP

   - B. FTP

   - C. SSL/TLS

   - D. SNMP

   - **Answer: C. SSL/TLS**

 

89. What is the role of a proxy server in a network?

   - A. To regulate network traffic flow

   - B. To manage network security policies

   - C. To translate domain names to IP addresses

   - D. To act as an intermediary between clients and servers

   - **Answer: D. To act as an intermediary between clients and servers**

 

90. Which layer of the OSI model is responsible for error detection and correction?

   - A. Transport

   - B. Network

   - C. Data Link

   - D. Physical

   - **Answer: A. Transport**

 

91. What is the purpose of DHCP (Dynamic Host Configuration Protocol) in networking?

   - A. To assign IP addresses to devices automatically

   - B. To manage domain name registrations

   - C. To encrypt data transmission

   - D. To regulate network traffic

   - **Answer: A. To assign IP addresses to devices automatically**

 

92. Which protocol is used for transferring email messages between servers?

   - A. SMTP

   - B. POP3

   - C. IMAP

   - D. SNMP

   - **Answer: A. SMTP**

 

93. What is the primary function of a firewall in network security?

   - A. To connect multiple networks together

   - B. To regulate network traffic flow

   - C. To manage IP addresses

   - D. To translate domain names to IP addresses

   - **Answer: B. To regulate network traffic flow**

 

94. Which network topology connects devices in a linear fashion and uses terminators to prevent signal reflection?

   - A. Star

   - B. Ring

   - C. Mesh

   - D. Bus

   - **Answer: D. Bus**

 

95. What is the primary function of NAT (Network Address Translation)?

   - A. To assign IP addresses to devices automatically

   - B. To translate public IP addresses to private IP addresses

   - C. To manage network security policies

   - D. To regulate network traffic flow

   - **Answer: B. To translate public IP addresses to private IP addresses**

 

96. Which network device operates at the Application layer of the OSI model?

   - A. Router

   - B. Switch

   - C. Firewall

   - D. Proxy Server

   - **Answer: D. Proxy Server**

 

97. What is the purpose of a VLAN (Virtual Local Area Network)?

   - A. To connect multiple networks together

   -

 

 B. To divide a single physical network into multiple logical networks

   - C. To manage network hardware resources

   - D. To regulate network traffic flow

   - **Answer: B. To divide a single physical network into multiple logical networks**

 

98. Which protocol is used for securely accessing web pages over HTTPS?

   - A. HTTP

   - B. FTP

   - C. SSL/TLS

   - D. SNMP

   - **Answer: C. SSL/TLS**

 

99. What is the role of a proxy server in a network?

   - A. To regulate network traffic flow

   - B. To manage network security policies

   - C. To translate domain names to IP addresses

   - D. To act as an intermediary between clients and servers

   - **Answer: D. To act as an intermediary between clients and servers**

 

100. Which layer of the OSI model is responsible for error detection and correction?

    - A. Transport

    - B. Network

    - C. Data Link

    - D. Physical

    - **Answer: A. Transport**

COMPUTER NETWORK MCQS  COMPUTER NETWORK MCQS Reviewed by Asst. Prof. Sunita Rai on February 10, 2024 Rating: 5

No comments:

Powered by Blogger.