Q: 1 While troubleshooting internet access problem reported by a user, a computer technician finds that the default gateway setting is wrong. Which layer of OSI model is associated with the cause of the problem experienced by the user?
Layer 2
Layer 5
Layer 3
Layer 4
[ Option C ]
The default gateway is used to forward network packets from one network to another, which is a function of routing. Routing and logical addressing using IP addresses are handled at the Network Layer (Layer 3) of the OSI model.
Q: 2 In a slotted ALOHA with G-stations attempting to transmit in one slot, the throughput is equal to –
e-G
G × e-2G
G × e-G
2G × e-G
[ Option C ]
ALOHA is a Random-Access Protocol used in computer networks for sharing a common communication channel.
It allows multiple users or stations to send data whenever they want, but collisions can occur if two or more stations send data at the same time.
Throughput means the rate of successful data transmission over a communication channel.
| TYPE OF ALOHA | DESCRIPTION | THROUGHPUT (EFFICIENCY) |
|---|---|---|
| Pure ALOHA | Stations transmit data anytime without synchronization. Collisions can occur if frames overlap. | S=G×e−2G Max = 18.4% |
| Slotted ALOHA | Time is divided into equal slots. The stations can transmit only at the start of a slot, reducing collisions. | S=G×e−G Max = 36.8% |
| PROTOCOL | DESCRIPTION |
|---|---|
| ALOHA | Simple method but has high collisions. |
| Slotted ALOHA | Improved version using time slots to reduce collisions. |
| CSMA (Carrier Sense Multiple Access) | Stations listen to the channel before transmitting. |
| CSMA/CD (CSMA with Collision Detection) | Detects collisions and stops transmission. Used in Ethernet (IEEE 802.3). |
| CSMA/CA (CSMA with Collision Avoidance) | Avoids collisions using backoff and acknowledgment. Used in Wi-Fi (IEEE 802.11). |
Q: 3 The physical layer is responsible for –
Process to process delivery.
Bit-by-bit delivery.
Application to application delivery.
Port to port delivery.
[ Option B ]
The OSI (Open Systems Interconnection) model has seven layers, with the Physical Layer at the bottom (Layer 1).
The physical layer main job is to send raw bits (0s and 1s) from one device to another through a physical medium like cables, radio waves, or fiber optics. It does not understand data, packets, or addresses, it only deals with electrical signals, light signals, or radio signals.
| LAYER NAME | MAIN ROLE |
|---|---|
| Physical Layer | Bit-by-bit delivery over physical transmission medium. |
| Data Link Layer | Node-to-node delivery, framing, and error detection. |
| Network Layer | Logical addressing, routing, and packet forwarding. |
| Transport Layer | Process-to-process delivery, flow and error control. |
| Session Layer | Establishing, maintaining, and terminating sessions. |
| Presentation Layer | Data formatting, encryption, and translation. |
| Application Layer | Provides network services to end-user applications. |
Q: 4 Data link layer consists of 2 sub layers. They are _________ and _________.
1. Logical Link Control
2. Mechanical Access Control
3. Logical Line Control
4. Media Access Control
1, 4
1, 2
3, 2
3, 4
[ Option A ]
In computer networks, the Data Link Layer is the second layer of the OSI (Open Systems Interconnection) model. Its main role is to ensure reliable data transfer between two directly connected nodes.
To perform its functions efficiently, the Data Link Layer is divided into two sublayers:
Logical Link Control (LLC):
Media / Medium Access Control (MAC):
Q: 5 Which of the following address is used to determine the process on a host system?
Logical Address
Physical Address
MAC Address
Port Address
[ Option D ]
In computer networks, different types of addresses are used at different levels to identify devices and processes. A Port Address is used to identify a specific process (Program or Service) running on a host system.
For example, when you open a website, your browser (process) uses a port number, like 80 for HTTP, so that data reaches the correct application.
| Port Number | Protocol | Service Name | Description |
|---|---|---|---|
| 20 | TCP | FTP (Data) | It is used to transfer actual file data between client and server. |
| 21 | TCP | FTP (Control) | It is used to send commands and control information for file transfer. |
| 22 | TCP | SSH | It is used for secure remote login and encrypted communication. |
| 23 | TCP | Telnet | It is used for remote login but it is not secure. |
| 25 | TCP | SMTP | It is used to send emails from client to server or between servers. |
| 53 | TCP/UDP | DNS | It is used to convert domain names into IP addresses. |
| 67 | UDP | DHCP (Server) | It is used by the server to assign IP addresses to clients. |
| 68 | UDP | DHCP (Client) | It is used by the client to receive an IP address from the server. |
| 69 | UDP | TFTP | It is used for simple file transfer without authentication. |
| 80 | TCP | HTTP | It is used for accessing web pages on the internet. |
| 110 | TCP | POP3 | It is used to receive emails from a mail server. |
| 119 | TCP | NNTP | It is used for accessing and managing newsgroups. |
| 123 | UDP | NTP | It is used to synchronize system time over a network. |
| 143 | TCP | IMAP | It is used to access and manage emails directly on the server. |
| 161 | UDP | SNMP | It is used for monitoring and managing network devices. |
| 179 | TCP | BGP | It is used for exchanging routing information between networks. |
| 443 | TCP | HTTPS | It is used for secure communication over the web. |
Q: 6 Which of the following statement(s) is/are true regarding OSI layers in computer networks?
I. The session layer provides means of establishing, maintaining and terminating a session between two end users.
II. Data Link layer sets up a logical path between the source and destination computer of the network.
Only I
Only II
Both I and II
Neither I Nor II
[ Option A ]
The OSI (Open System Interconnection) model is a standard networking model that divides network communication into seven layers. Each layer performs specific functions during data communication.
Statement I:
“The session layer provides means of establishing, maintaining and terminating a session between two end users.”
This statement is correct. The Session Layer is responsible for:
E.g.:
Statement II:
“Data Link layer sets up a logical path between the source and destination computer of the network.”
This statement is incorrect. Establishing the logical path between source and destination is the function of the Network Layer, not the Data Link Layer.
The Data Link Layer mainly:
Q: 7 Which of the following is not related to data link layer?
Congestion Control
Error Control
Framing
MAC Addressing
[ Option A ]
The Data Link Layer is responsible for Node-To-Node Delivery and ensures reliable communication over a physical link. It performs key functions such as Framing, Error Control, and MAC Addressing, all of which are essential for organizing data into frames, detecting, or correcting errors, and identifying devices on the network.
However, Congestion Control is typically not a function of the data link layer; it is primarily handled by higher layers such as the network or transport layer to manage traffic load and avoid network congestion.
Q: 8
Match the OSI layers in Column – I with their tasks in Column – II:
| Column – I | Column – II |
|---|---|
| a. Data Link Layer | i. End-to-end communication between source and destination programs. |
| b. Transport Layer | ii. The sender breaks up the input data into data frames and transmits the frames sequentially. |
| c. Network Layer | iii. Routing and forwarding. |
| iv. Concerned with the syntax and semantics of the information transmitted. |
a-ii, b-i, c-iii
a-iv, b-ii, c-i
a-iii, b-i, c-iv
a-i, b-iii, c-ii
[ Option A ]
| OSI LAYER | DATA UNIT | DESCRIPTION | DELIVERY |
|---|---|---|---|
| Physical | Bits | Transmits raw binary data over physical medium and defines cables, connectors, voltages, and signals. | Node to Node |
| Data Link | Frame | Provides error detection and correction and reliable transfer between adjacent nodes and handles MAC addressing. Framing. | Node (Hop) to Node (Hop) |
| Network | Packet | Determines the best path for data transmission and handles logical addressing (IP Addresses), routing and forwarding. | Host to Host |
| Transport | Segment | Ensures reliable data transfer, flow control and error recovery, TCP and UDP operate here. | Process to Process / End-to-End |
| Session | Data | Manages sessions and connections between applications, establishes, maintains, and terminates sessions. | Process to Process / End-to-End |
| Presentation | Data | Translates, encrypts, compresses, or formats data for the application and ensures data is in usable form. | Process to Process / End-to-End |
| Application | Data | Provides network services to end-user applications like email, file transfer, and web browsing. | End-to-End |
Q: 9 Which protocol layer uses the protocol SMTP, HTTP, FTP?
Application layer
Transport layer
Internal layer
Hardware layer
[ Option A ]
Protocols such as SMTP (Simple Mail Transfer Protocol), HTTP (Hypertext Transfer Protocol), and FTP (File Transfer Protocol) operate at the Application Layer of the OSI and TCP/IP models. The application layer provides network services directly to end-user applications and manages communication between users and networks.
SMTP is responsible for email transmission, HTTP is used for accessing and transferring web pages, and FTP allows file transfers between systems.
Q: 10 Which of the following is incorrect with reference to OSI model?
Network layer is responsible for routing
Transport layer allows end-to-end communication between two processes
Session layer is responsible for congestion control
Application layer presents meaningful data to users
[ Option C ]
The OSI model consists of different layers, each having specific responsibilities in network communication.
However, the Session Layer is responsible for establishing, maintaining, and terminating communication sessions between applications. It does not handle congestion control. Congestion control is mainly managed by the Transport Layer.
Q: 11 Protocol(s) used by Media Access Control layer is
ALOHA
CSMA
CSMA/CD
All of the above
[ Option D ]
The Media Access Control (MAC) layer is a sublayer of the Data Link Layer, responsible for controlling how multiple devices share a common transmission medium. Its main function is to decide who can transmit data and when, especially in a shared network.
To manage this, the MAC layer uses different access protocols, which help avoid or handle collisions when multiple devices try to send data simultaneously.
Protocols Used by MAC Layer:
| PROTOCOL | DESCRIPTION | KEY FEATURES |
|---|---|---|
| ALOHA (Additive Links On-line Hawaii Area) | Devices transmit anytime without checking channel. | Very simple, no sensing, high collision rate, low efficiency. |
| CSMA (Carrier Sense Multiple Access) | Device senses channel before transmitting. | Reduces collisions, improves efficiency, variants: 1-persistent. Non-persistent. p-persistent. |
| CSMA/CD (CSMA with Collision Detection) | Senses channel and detect collision during transmission. | Collision detection and retransmission, used in Ethernet (IEEE 802.3). |
| CSMA/CA (CSMA with Collision Avoidance) | Senses channel and avoid collision before transmission. | Collision avoidance using ACK and RTS/CTS, used in wireless LAN (IEEE 802.11). |
Q: 12 The reliable data transfer is implemented by ______________.
Network Layer
Presentation Layer
Physical Layer
Transport Layer
[ Option D ]
Reliable data transfer means ensuring that data reaches the receiver without errors, without loss, and in the correct order.
Reliable data transfer is implemented by the Transport Layer in the OSI model. The transport layer is responsible for providing end-to-end communication services for applications.
It ensures reliable delivery of data through mechanisms such as error detection and correction, flow control, segmentation, acknowledgment of received data, and retransmission of lost or corrupted segments.
Protocols like TCP (Transmission Control Protocol) at this layer offer connection-oriented and reliable communication by managing data packets and maintaining the order and integrity of the data transmitted between sender and receiver.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.