0% found this document useful (0 votes)
80 views7 pages

Network Lab MCQ Questions Guide

1. The document contains 15 multiple choice questions about networking concepts like TCP/IP protocols, ports, sockets, and network tools. Some of the questions test knowledge of tools like tcpdump, netstat, ping, traceroute, ifconfig, and nslookup. Other questions cover protocols like TCP, UDP, IP, ARP, DNS, FTP, SMTP, and layers of the OSI model. 2. The questions assess understanding of concepts like sockets, port numbers, protocol values, network addressing, error/flow control, and functions of common network tools and protocols. 3. The document is a set of practice questions for a networking lab exam focused on TCP/IP protocols, network tools, and related networking

Uploaded by

5006 Abinesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views7 pages

Network Lab MCQ Questions Guide

1. The document contains 15 multiple choice questions about networking concepts like TCP/IP protocols, ports, sockets, and network tools. Some of the questions test knowledge of tools like tcpdump, netstat, ping, traceroute, ifconfig, and nslookup. Other questions cover protocols like TCP, UDP, IP, ARP, DNS, FTP, SMTP, and layers of the OSI model. 2. The questions assess understanding of concepts like sockets, port numbers, protocol values, network addressing, error/flow control, and functions of common network tools and protocols. 3. The document is a set of practice questions for a networking lab exam focused on TCP/IP protocols, network tools, and related networking

Uploaded by

5006 Abinesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

CS 8581 Network Lab MCQ Questions

1. Tcpdump () is used for


a. Dumping the contents
b. Provides description about the packet contents
c. Closes the tcp connection
d. Resets the tcp connection

2. By default, netstat () displays


a. List of open sockets
b. Error statistics
c. Open network details
d. To configure a network

3. The reachability of a server can be checked by


a. Traceroute
b. Echo
c. Ping
d. Clock

4. Socket is a combination of
a. IP address and MAC address
b. MAC address and port number
c. IP address and port number
d. Network address and port number

5. Address Resolution Protocol converts


a. IP address to Network address
b. Network address to IP address
c. MAC address to IP address
d. IP address to MAC address

6. The parameters present in a Socket () call are


a. Family, IP address, Port number
b. Family, Socket type, Protocol value
c. IP address, Socket type, Protocol value
d. Family, Socket type, port number
7. In socket programming the created socket in type casted to
a. IP v4 socket address structure
b. IP v6 socket address structure
c. Generic socket address structure
d. Network socket address structure

8. Type casting is performed in which socket calls


a. Socket (), Bind (), Connect ()
b. Socket (), Accept (), Bind ()
c. Socket (), Accept (), Connect ()
d. Bind (), Accept (), Connect ()

9. The Backlog parameter in Listen () call indicates


a. Maximum client requests that can be accepted by server
b. Maximum server requests that can be accepted by client
c. Maximum child sockets that can be created by server
d. Maximum child sockets that can be accepted by client

10. FTP stands for


a. File Transfer Protocol
b. File Terminal Protocol
c. File Telnet Protocol
d. File Transfer Program

11. DNS stands for


a. Domain Name Protocol
b. Domain Name System
c. Domain Name Site
d. Domain Number System

12. CRC is used to


a. Correct Error
b. Detect Error
c. Induce Error
d. Detect as well as Correct error.

13. Port number of HTTP is


a. 25
b. 80
c. 54
d. 20
14. The protocols present in Transport Layer of TCP / IP protocol suit are
a. IP, HTTP
b. IP, ICMP, IGMP, ARP
c. TCP, UDP
d. TCP, UDP, SCTP

15. Choose the Application layer protocol from the below


a. IP
b. TCP
c. SMTP
d. ARP

1. IFConfig () displays
a. IP Address
b. IP Address, DNS details
c. All active interfaces
d. IP Address, Port numbers

2. Nslookup () interacts with


a. List of open sockets
b. Domain Name Servers
c. Any open server
d. Web server

3. The path to be taken by an applications packet can be checked by


a. Traceroute
b. Echo
c. Ping
d. Clock

4. The four entities that make up an end to end socket are


a. IP address, port number, MAC address and interface address
b. Source IP, Source Port number, Destination IP and Destination port number
c. Source Port number, Source MAC, Destination port number and Destination MAC
d. Source Network address, Source port number, Dest. Network Address and Dest. Port number
5. Reverse Address Resolution Protocol converts
a. IP address to Network address
b. Network address to IP address
c. MAC address to IP address
d. IP address to MAC address

6. The three types of sockets are


a. TCP, UDP, ICMP
b. TCP, SCTP, UDP
c. UDP, SCTP, Raw
d. TCP, UDP, Raw

7. A chosen IP address is linked to a port number through


a. Connect ()
b. Accept ()
c. Listen ()
d. Bind ()

8. MAC address is dealt in which layer


a. Transport layer
b. Network layer
c. Data link layer
d. Physical layer

9. Internet follows
a. Message switching
b. Circuit switching
c. Packet switching
d. Data switching

10. SMTP stands for


a. Small Mail Transfer Protocol
b. Simple Mail Transfer Protocol
c. Simple Message Transfer Protocol
d. Small Message Transfer Protocol

11. DNS performs


a. Mapping from MAC to IP
b. Mapping from IP to MAC
c. Mapping from IP to Domain name
d. Mapping from Domain name to IP
12. Flow control takes place at
a. Physical layer and Data link layer.
b. Data link layer and Network layer
c. Data link layer and Transport layer
d. Network layer and Transport layer.

13. Port number of SMTP is


a. 25
b. 80
c. 54
d. 20

14. The protocols present in Internet Layer of TCP / IP protocol suit are
a. IP, HTTP
b. IP, ICMP, IGMP, ARP
c. TCP, UDP
d. TCP, UDP, SCTP

15. Choose the Application layer protocol from the below


a. IP
b. TCP
c. HTTP
d. ARP

1. Ping output contains


a. IP Address, data, ttl, time
b. Name of server, IP Address, DNS details
c. IP Address, port number, time
d. IP Address, data, sequence number, ttl, time

2. IF Config -a displays
a. List of open sockets
b. Status of all open interfaces
c. Any open server
d. Web server
3. The server which just resends whatever it receives is called
a. Traceroute server
b. Echo server
c. Ping server
d. Clock server

4. The value of protocol parameter in TCP socket call is


a. 1
b. 2
c. 0
d. 3

5. RARP stands for


a. Right Address Right Protocol
b. Reverse Address Reverse Protocol
c. Reverse Address Resolution Protocol
d. Resolution Address Reverse Protocol

6. Which type of socket has a value for protocol parameter


a. TCP
b. UDP
c. Raw
d. HTTP

7. Client connection is accepted by server through


a. Connect ()
b. Accept ()
c. Listen ()
d. Bind ()

8. IP address is dealt in which layer


a. Transport layer
b. Network layer
c. Data link layer
d. Physical layer

9. Data transfer is best suited through


a. Message switching
b. Circuit switching
c. Packet switching
d. Data switching
10. TELNET stands for
a. Telephone Network
b. Terminal Network
c. Telephonic Network
d. Terminal Remote Network

11. Inverse DNS performs


a. Mapping from MAC to IP
b. Mapping from IP to MAC
c. Mapping from IP to Domain name
d. Mapping from Domain name to IP

12. Error control takes place at


a. Physical layer and Data link layer.
b. Data link layer and Network layer
c. Data link layer and Transport layer
d. Network layer and Transport layer.

13. Port number of FTP is


a. 25
b. 80
c. 54
d. 20, 21

14. Congestion occurs at


a. Application layer
b. Data link layer
c. Network layer
d. Transport layer

15. Choose the Application layer protocol from the below


a. IP
b. TCP
c. TELNET
d. ARP

Common questions

Powered by AI

The 'ping' command checks the reachability of a server by sending ICMP echo requests and measuring response times, helping to determine network connectivity and delay between hosts . In contrast, 'traceroute' identifies the path packets take across an IP network by tracing each hop, allowing for identification of where delays or failures occur along that route . Each command plays a unique role in diagnosing and resolving network issues, with 'ping' focusing on existence and latency and 'traceroute' concentrating on path and routing analysis .

Error control and flow control are pivotal for maintaining data integrity and reliable transmission. Error control detects and corrects errors in data transmission, primarily at the Data link and Transport layers, through techniques like CRC . On the other hand, flow control manages the rate of data transmission between sender and receiver to prevent overwhelming the receiving device, occurring at the Data link and Transport layers . Collectively, these mechanisms ensure not only that data is accurate upon receipt but also efficiently transmitted and received at manageable rates, enhancing overall network reliability .

DNS, which stands for Domain Name System, is used to map a domain name to an IP address . This process is crucial because it allows users to access websites using human-friendly domain names instead of numerical IP addresses, simplifying internet navigation and connectivity .

ARP contributes to network communication by converting an IP address into a MAC address . This conversion is necessary because while IP addresses facilitate routing in network layers, actual data packets are transmitted at the data link layer using MAC addresses, making ARP essential for seamless communication between devices on a local network .

TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) play crucial roles in the Transport layer. TCP is used when reliable, ordered, and error-checked delivery is required, making it suitable for applications like web browsing and email. Conversely, UDP provides a faster, connectionless service without heavy overhead, appropriate for real-time applications like video streaming and online gaming where speed is more critical than reliability .

The 'bind()' function in socket programming is used to associate a socket with a specific IP address and port number . This association is crucial for establishing a network connection as it defines the local endpoint of the socket and listens for incoming connections on this specified IP and port, effectively preparing it for network communication .

Type casting in socket programming is significant because it ensures that socket structures are interpreted correctly by the network functions utilizing them. This operation is specifically performed in the Socket(), Accept(), and Connect() calls . Proper casting is essential for operations involving network addresses and ensuring data integrity during transfer and connection handling across different platforms .

The backlog parameter in the 'Listen()' call specifies the maximum number of client requests that the server can queue before refusing additional connections . This parameter affects server performance by determining how many simultaneous requests can be managed, thus influencing the server's ability to handle high volumes of incoming connections. Properly setting this value ensures efficient resource use and balanced load handling on the server .

The transport layer distinguishes between different application processes by utilizing port numbers, which serve as unique identifiers for each process or service. This differentiation allows multiple applications to run over the network simultaneously without interference, ensuring data is reliably sent to the correct destination process .

'tcpdump' is a command-line packet analyzer used to capture and display network traffic, providing a detailed description of packet contents which aids in diagnosing and analyzing network behavior . It enables administrators to monitor network traffic in real-time by providing insights into the packet-level operations, helping in troubleshooting network issues and enhancing security .

You might also like