HEC USAT-CS (Computer Science) computer science: Information Networks MCQs

Practice Information Networks MCQs for HEC USAT-CS (Computer Science) computer science — topic-wise sets with solved answers.

HEC USAT-CS (Computer Science) computer science: Information Networks MCQs — sample questions

  1. Question 1

    Q1. What is the primary function of the ARP protocol in a network?

    • A) To resolve IP addresses to MAC addresses
    • B) To resolve MAC addresses to IP addresses
    • C) To manage IP address allocation
    • D) To provide network security

    Answer: To resolve IP addresses to MAC addresses

    Explanation: ARP protocol maps IP addresses to MAC addresses using a broadcast request, enabling devices to communicate at the data link layer.

  2. Question 2

    Q2. Which of the following is a characteristic of a connectionless protocol?

    • A) Guaranteed delivery
    • B) Sequenced data transfer
    • C) No handshake required
    • D) Flow control

    Answer: No handshake required

    Explanation: Connectionless protocols, like UDP, do not require a handshake or connection establishment before data transfer.

  3. Question 3

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

    • A) To identify the host ID
    • B) To determine the network ID
    • C) To apply to both host and network IDs
    • D) To differentiate between IPv4 and IPv6

    Answer: To determine the network ID

    Explanation: The subnet mask is applied to an IP address using bitwise AND to determine the network ID and subnet.

  4. Question 4

    Q4. In the context of network topologies, what is a characteristic of a star topology?

    • A) All devices are connected in a single cable
    • B) Devices are connected to a central hub
    • C) Data travels in a circular path
    • D) Each device is connected to every other device

    Answer: Devices are connected to a central hub

    Explanation: In a star topology, all devices are connected to a central device, typically a hub or switch, simplifying management and fault isolation.

  5. Question 5

    Q5. What is the primary difference between TCP and UDP?

    • A) TCP is faster than UDP
    • B) TCP is connectionless, UDP is connection-oriented
    • C) TCP guarantees delivery, UDP does not
    • D) TCP is used for broadcasting, UDP for unicasting

    Answer: TCP guarantees delivery, UDP does not

    Explanation: TCP ensures reliable data transfer through acknowledgments and retransmissions, whereas UDP provides best-effort delivery without guarantees.

  6. Question 6

    Q6. Which protocol is used for sending emails?

    • A) SMTP
    • B) HTTP
    • C) FTP
    • D) SNMP

    Answer: SMTP

    Explanation: SMTP (Simple Mail Transfer Protocol) is used for sending and receiving email between email servers and clients.

  7. Question 7

    Q7. What is the function of the DHCP protocol in a network?

    • A) To translate domain names to IP addresses
    • B) To assign IP addresses dynamically
    • C) To manage network security
    • D) To monitor network devices

    Answer: To assign IP addresses dynamically

    Explanation: DHCP (Dynamic Host Configuration Protocol) assigns IP addresses and other network settings to devices on a network dynamically.

  8. Question 8

    Q8. In a network, what is a collision domain?

    • A) A domain where all devices can communicate directly
    • B) A domain where data collisions can occur
    • C) A domain that is isolated from other networks
    • D) A domain that requires a router to communicate

    Answer: A domain where data collisions can occur

    Explanation: A collision domain is a network segment where data packets can collide with each other, typically in a shared Ethernet network.

  9. Question 9

    Q9. What is the role of a router in a network?

    • A) To connect devices within a LAN
    • B) To connect multiple networks together
    • C) To provide network security
    • D) To manage IP address allocation

    Answer: To connect multiple networks together

    Explanation: Routers connect multiple networks, routing traffic between them based on network addresses and routing tables.

  10. Question 10

    Q10. Which of the following is a type of network attack?

    • A) Virus
    • B) Worm
    • C) DDoS
    • D) All of the above

    Answer: All of the above

    Explanation: All options (Virus, Worm, DDoS) are types of network attacks or malware that can compromise network security.

  11. Question 11

    Q11. What is the purpose of the traceroute command?

    • A) To test network connectivity
    • B) To diagnose network path and latency
    • C) To manage network devices
    • D) To monitor network traffic

    Answer: To diagnose network path and latency

    Explanation: Traceroute is used to diagnose the path taken by packets across a network, showing each hop and associated latency.

  12. Question 12

    Q12. In IPv4, how many bits are used for the IP address?

    • A) 16 bits
    • B) 32 bits
    • C) 64 bits
    • D) 128 bits

    Answer: 32 bits

    Explanation: IPv4 addresses are 32 bits long, typically represented in dotted decimal notation.

  13. Question 13

    Q13. What is the main function of the transport layer in the OSI model?

    • A) To provide network addressing
    • B) To ensure reliable data transfer
    • C) To manage network topology
    • D) To provide network security

    Answer: To ensure reliable data transfer

    Explanation: The transport layer ensures reliable data transfer between devices, providing error detection and correction.

  14. Question 14

    Q14. Which protocol is used for file transfer over the internet?

    • A) HTTP
    • B) FTP
    • C) SMTP
    • D) SNMP

    Answer: FTP

    Explanation: FTP (File Transfer Protocol) is used for transferring files between devices over a network.

  15. Question 15

    Q15. What is the purpose of the ping command?

    • A) To test network connectivity
    • B) To diagnose network path and latency
    • C) To manage network devices
    • D) To monitor network traffic

    Answer: To test network connectivity

    Explanation: Ping is used to test network connectivity by sending ICMP echo requests to a destination and measuring response times.

  16. Question 16

    Q16. In the context of network security, what is a firewall?

    • A) A device that connects multiple networks
    • B) A system that monitors and controls network traffic
    • C) A protocol for secure data transfer
    • D) A type of network attack

    Answer: A system that monitors and controls network traffic

    Explanation: A firewall is a network security system that monitors and controls incoming and outgoing network traffic based on security rules.

  17. Question 17

    Q17. What is the difference between a hub and a switch?

    • A) A hub is a Layer 3 device, a switch is a Layer 2 device
    • B) A hub broadcasts data to all ports, a switch forwards data to specific ports
    • C) A hub is used for WAN connections, a switch for LAN
    • D) A hub is faster than a switch

    Answer: A hub broadcasts data to all ports, a switch forwards data to specific ports

    Explanation: A hub broadcasts incoming data to all its ports, whereas a switch forwards data to the specific port where the destination device is connected.

  18. Question 18

    Q18. Which of the following is a characteristic of IPv6?

    • A) 32-bit address space
    • B) 128-bit address space
    • C) No support for auto-configuration
    • D) Less secure than IPv4

    Answer: 128-bit address space

    Explanation: IPv6 uses a 128-bit address space, providing a much larger number of addresses compared to IPv4's 32-bit address space.

  19. Question 19

    Q19. What is the primary function of the DNS protocol?

    • A) To translate domain names to IP addresses
    • B) To assign IP addresses dynamically
    • C) To manage network security
    • D) To monitor network devices

    Answer: To translate domain names to IP addresses

    Explanation: DNS (Domain Name System) translates domain names to IP addresses, enabling users to access websites using easy-to-remember domain names.

  20. Question 20

    Q20. In network management, what is SNMP used for?

    • A) To manage network devices
    • B) To monitor network traffic
    • C) To provide network security
    • D) To translate domain names to IP addresses

    Answer: To manage network devices

    Explanation: SNMP (Simple Network Management Protocol) is used to manage and monitor network devices, collecting information and configuring devices.

Loading...