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
How many layers are there in the OSI model?
a) 4
b) 5
c) 7
d) 8
Which OSI layer is responsible for routing and forwarding data packets?
a) Application Layer
b) Transport Layer
c) Network Layer
d) Data Link 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
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
Which of the following is NOT a layer in the OSI model?
a) Application
b) Session
c) Network
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
Which OSI layer is responsible for data encryption and decryption?
a) Application Layer
b) Session Layer
c) Presentation Layer
d) Transport 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
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
Which layer in the OSI model interacts directly with end users?
a) Application Layer
b) Transport Layer
c) Network Layer
d) Session 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
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
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
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
Which protocol is used in the Transport Layer of the TCP/IP model?
a) IP
b) TCP
c) Ethernet
d) HTTP
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
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
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
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
Which OSI layer is responsible for routing, addressing, and packet forwarding?
a) Application Layer
b) Transport Layer
c) Network Layer
d) Session 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
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
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
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
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
Which of the following protocols operates in the Internet Layer of TCP/IP?
a) HTTP
b) TCP
c) IP
d) UDP
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
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
Which OSI layer is responsible for converting data into electrical signals?
a) Physical Layer
b) Transport Layer
c) Session Layer
d) Data Link Layer