Computer

OSI & TCP/IP Models MCQs with Answers

What is the OSI model used for?
a) To define the structure of a database
b) To standardize the functions of a communication system
c) To organize the file systems of an operating system
d) To manage the memory of a computer

Answer
b) To standardize the functions of a communication system

How many layers are there in the OSI model?
a) 4
b) 5
c) 7
d) 8

Answer
c) 7

Which OSI layer is responsible for routing and forwarding data packets?
a) Application Layer
b) Transport Layer
c) Network Layer
d) Data Link Layer

Answer
c) Network Layer

In which layer of the OSI model do protocols like TCP and UDP operate?
a) Network Layer
b) Transport Layer
c) Session Layer
d) Data Link Layer

Answer
b) Transport Layer

Which layer is responsible for establishing, managing, and terminating communication sessions in the OSI model?
a) Application Layer
b) Session Layer
c) Transport Layer
d) Data Link Layer

Answer
b) Session Layer

Which of the following is NOT a layer in the OSI model?
a) Application
b) Session
c) Network
d) Presentation

Answer
d) Presentation

What does the OSI model’s Physical Layer handle?
a) Data encoding and compression
b) Network routing
c) Transmission of raw bitstreams over a physical medium
d) Error detection and correction

Answer
c) Transmission of raw bitstreams over a physical medium

Which OSI layer is responsible for data encryption and decryption?
a) Application Layer
b) Session Layer
c) Presentation Layer
d) Transport Layer

Answer
c) Presentation Layer

Which OSI layer ensures reliable data transfer by establishing end-to-end communication?
a) Application Layer
b) Transport Layer
c) Network Layer
d) Data Link Layer

Answer
b) Transport Layer

Which of the following is a key function of the Data Link Layer in the OSI model?
a) Error detection and correction
b) Routing and forwarding
c) Data compression
d) Session management

Answer
a) Error detection and correction

Which layer in the OSI model interacts directly with end users?
a) Application Layer
b) Transport Layer
c) Network Layer
d) Session Layer

Answer
a) Application Layer

What is the primary difference between the OSI and TCP/IP models?
a) OSI has 7 layers, and TCP/IP has 5 layers
b) OSI uses packet switching, and TCP/IP uses circuit switching
c) OSI was designed for internet communication, and TCP/IP was designed for networking
d) OSI is used for local networks, and TCP/IP is used for wide-area networks

Answer
a) OSI has 7 layers, and TCP/IP has 5 layers

Which layer of the TCP/IP model is responsible for the physical transmission of data?
a) Network Layer
b) Transport Layer
c) Internet Layer
d) Link Layer

Answer
d) Link Layer

Which layer in the TCP/IP model is equivalent to the OSI model’s Network Layer?
a) Application Layer
b) Transport Layer
c) Internet Layer
d) Link Layer

Answer
c) Internet Layer

Which layer in the TCP/IP model handles error detection and ensures reliable transmission of data?
a) Application Layer
b) Transport Layer
c) Internet Layer
d) Link Layer

Answer
b) Transport Layer

Which protocol is used in the Transport Layer of the TCP/IP model?
a) IP
b) TCP
c) Ethernet
d) HTTP

Answer
b) TCP

Which layer is responsible for providing end-to-end communication services in the TCP/IP model?
a) Application Layer
b) Transport Layer
c) Internet Layer
d) Link Layer

Answer
b) Transport Layer

Which layer in the TCP/IP model is responsible for the logical addressing of devices?
a) Application Layer
b) Transport Layer
c) Internet Layer
d) Link Layer

Answer
c) Internet Layer

What does the Link Layer of the TCP/IP model correspond to in the OSI model?
a) Physical and Data Link Layers
b) Application Layer
c) Transport Layer
d) Network Layer

Answer
a) Physical and Data Link Layers

Which of the following layers is NOT part of the TCP/IP model?
a) Application Layer
b) Transport Layer
c) Internet Layer
d) Session Layer

Answer
d) Session Layer

Which OSI layer is responsible for routing, addressing, and packet forwarding?
a) Application Layer
b) Transport Layer
c) Network Layer
d) Session Layer

Answer
c) Network Layer

Which layer of the OSI model is responsible for the error-free delivery of data?
a) Application Layer
b) Transport Layer
c) Network Layer
d) Data Link Layer

Answer
b) Transport Layer

What does the TCP/IP Internet Layer use to address devices in a network?
a) MAC Address
b) IP Address
c) Port Number
d) Session ID

Answer
b) IP Address

Which layer in the OSI model is responsible for ensuring the correct transmission of data between devices?
a) Application Layer
b) Data Link Layer
c) Network Layer
d) Transport Layer

Answer
d) Transport Layer

In the TCP/IP model, what is the function of the Application Layer?
a) It handles end-to-end communication
b) It enables the user to interact with the network
c) It manages network addressing
d) It ensures reliable data transfer

Answer
b) It enables the user to interact with the network

Which layer in the OSI model ensures data is transmitted without errors?
a) Physical Layer
b) Data Link Layer
c) Network Layer
d) Transport Layer

Answer
b) Data Link Layer

Which of the following protocols operates in the Internet Layer of TCP/IP?
a) HTTP
b) TCP
c) IP
d) UDP

Answer
c) IP

What is the main purpose of the Session Layer in the OSI model?
a) Data transmission and reception
b) Encrypting data
c) Maintaining communication sessions
d) Routing packets between networks

Answer
c) Maintaining communication sessions

Which of the following layers is responsible for packet switching in the OSI model?
a) Transport Layer
b) Data Link Layer
c) Network Layer
d) Application Layer

Answer
c) Network Layer

Which OSI layer is responsible for converting data into electrical signals?
a) Physical Layer
b) Transport Layer
c) Session Layer
d) Data Link Layer

Answer
a) Physical Layer

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button