Unit_7
Unit_7
preparation:
1. OSI Model and TCP/IP Model (Layering, Design Issues, Functionality of Each Layer)
2. Data Link Layer – Flow Control, Error Control, Framing, MAC Protocols
I’ll now begin creating 20 well-explained MCQs for each of these 5 topics (one at a time),
starting with:
Would you like me to proceed with the first set of 20 MCQs now?
4o
You said:
Yes
ChatGPT said:
Here are 20 MCQs on "OSI Model and TCP/IP Model" with detailed explanations. These are
selected and framed as per Bihar STET Paper 2 trend.
1. Which layer of the OSI model is responsible for end-to-end communication and reliability?
A. Transport layer
B. Network layer
C. Data link layer
D. Session layer
Answer: C. 7
Explanation: The OSI model has seven layers: Physical, Data Link, Network, Transport, Session,
Presentation, and Application.
Answer: A. Network
Explanation: The network layer uses IP addresses to route packets between devices across
networks.
Answer: A. Application
Explanation: HTTP is an application-layer protocol used for transferring web pages.
5. Which TCP/IP layer is equivalent to the OSI model's Network layer?
A. Internet layer
B. Transport layer
C. Application layer
D. Network Access layer
Answer: B. Presentation
Explanation: The presentation layer handles data translation, encryption, and compression.
Answer: B. Routing
Explanation: Routing is a function of the network layer, not the transport layer.
Answer: B. TCP
Explanation: TCP (Transmission Control Protocol) operates at the transport layer and provides
reliable delivery.
9. Which layer is responsible for establishing, maintaining, and terminating connections
between applications?
A. Session
B. Transport
C. Application
D. Data Link
Answer: A. Session
Explanation: The session layer manages sessions between applications.
10. In the OSI model, which layer deals with physical transmission of data?
A. Data Link
B. Network
C. Physical
D. Application
Answer: C. Physical
Explanation: The physical layer manages the actual hardware connection and transmission of
raw bits.
Answer: A. 4
Explanation: The TCP/IP model has 4 layers: Application, Transport, Internet, and Network
Access.
13. Which OSI layer is responsible for defining voltages and cable specifications?
A. Network
B. Data Link
C. Transport
D. Physical
Answer: D. Physical
Explanation: The physical layer defines the hardware characteristics.
Answer: A. Application
Explanation: FTP (File Transfer Protocol) is an application layer protocol.
Answer: A. Transport
Explanation: Port numbers are used by the transport layer to identify services.
18. Which of these layers appears in the TCP/IP model but not separately in OSI?
A. Session
B. Presentation
C. Network Access
D. Data Link
Answer: B. ARP
Explanation: ARP (Address Resolution Protocol) maps IP addresses to MAC addresses.
20. Which layer is responsible for converting data into segments?
A. Transport
B. Network
C. Data Link
D. Application
Answer: A. Transport
Explanation: The transport layer segments data for transmission.
If you'd like, I can now continue with MCQs from the next selected topic: Data Link Layer –
Flow Control, Error Control, Framing, MAC Protocols. Should I proceed?
4o
You said:
Yes
ChatGPT said:
Here are 20 MCQs on "Data Link Layer – Flow Control, Error Control, Framing, and MAC
Protocols" with explanations, tailored for Bihar STET Computer Science Paper 2:
Answer: C. HDLC
Explanation: HDLC (High-Level Data Link Control) is a bit-oriented protocol used at the Data Link
Layer.
3. Which method is used for flow control in the data link layer?
A. CRC
B. Stop and Wait
C. DNS
D. ARP
Answer: A. ALOHA
Explanation: ALOHA is a random access MAC protocol with no centralized control, hence
contention-based.
Answer: C. Ethernet
Explanation: Ethernet uses CSMA/CD (Carrier Sense Multiple Access with Collision Detection).
Answer: B. Checksum
Explanation: Checksums are added to frames to detect data corruption during transmission.
13. Which of the following is not a function of the data link layer?
A. Error detection
B. Addressing
C. Encryption
D. Framing
Answer: C. Encryption
Explanation: Encryption is typically handled at the presentation or application layer, not data
link.
Answer: A. 36.8%
Explanation: Slotted ALOHA doubles the efficiency of pure ALOHA but still has collisions.
Let me know if you'd like the next topic from Network Layer (Routing, IP addressing,
Subnetting) or any specific subtopic.
4o
You said:
Yes
ChatGPT said:
Great! We’ll now proceed with Unit 7: Computer Networks, focusing on the most probable
topics for Bihar STET Paper 2. Based on previous trends and syllabus relevance, the following
topics are prioritized:
High-Probability Topics:
2. Data Link Layer (Framing, Error and Flow Control, MAC protocols)
We'll start with Topic 1: OSI and TCP/IP Models. Shall I begin with 20 MCQs with explanations
for this topic?
You said:
ChatGPT said:
Got it! Here are the most important topics you’ve selected for Unit 7:
I'll prepare 20 MCQs with detailed explanations for each of these three topics in turn.
Shall I start with Network Layer (IPv4, Routing, Subnetting, ARP, Congestion Control) first?
You said:
ChatGPT said:
Here are 20 MCQs on Network Layer – IPv4, Routing, Subnetting, ARP, Congestion Control with
detailed explanations:
a) 255.0.0.0
b) 255.255.0.0
c) 255.255.255.0
d) 255.255.255.255
Answer: b) 255.255.0.0
Explanation: Class B addresses have the first two octets for network and the last two for host.
The default subnet mask is 255.255.0.0.
a) DHCP
b) DNS
c) ARP
d) ICMP
Answer: c) ARP
Explanation: Address Resolution Protocol (ARP) translates IPv4 addresses to MAC addresses in a
local network.
a) FTP
b) RIP
c) SMTP
d) TCP
Answer: b) RIP
Explanation: Routing Information Protocol (RIP) is a distance-vector routing protocol used to
find the best path in networks.
4. What is the maximum number of hosts in a subnet with a subnet mask of 255.255.255.240?
a) 14
b) 16
c) 30
d) 32
Answer: a) 14
Explanation: 255.255.255.240 corresponds to /28, leaving 4 bits for hosts. Max hosts = 2^4 - 2 =
14.
a) Data Link
b) Network
c) Transport
d) Application
Answer: b) Network
Explanation: The Network layer is responsible for packet forwarding including routing through
intermediate routers.
a) Class A
b) Class B
c) Class C
d) Class D
Answer: d) Class D
Explanation: Class D addresses (224.0.0.0 to 239.255.255.255) are reserved for multicast
groups.
a) 10.10.10.1
b) 130.45.50.1
c) 192.168.1.1
d) 224.0.0.5
Answer: c) 192.168.1.1
Explanation: Class C addresses range from 192.0.0.0 to 223.255.255.255.
a) 255.255.255.0
b) 255.255.254.0
c) 255.255.255.128
d) 255.255.255.3
Answer: d) 255.255.255.3
Explanation: Valid subnet masks have contiguous ones in binary; 3 (00000011) is invalid.
a) TTL
b) Identification
c) Flags
d) Protocol
Answer: c) Flags
Explanation: Flags indicate whether the packet can be fragmented or is the last fragment.
a) Distance vector
b) Link state
c) Flooding
d) Random routing
a) 192.168.10.0
b) 192.168.10.1
c) 192.168.10.255
d) 192.168.11.0
Answer: c) 192.168.10.255
Explanation: The broadcast address has all host bits set to 1.
16. What is the range of valid host addresses in the subnet 192.168.1.64/26?
a) 192.168.1.65 to 192.168.1.126
b) 192.168.1.64 to 192.168.1.127
c) 192.168.1.1 to 192.168.1.62
d) 192.168.1.128 to 192.168.1.191
a) Routing
b) Addressing
c) Flow control
d) Packet forwarding
Answer: a) 127.0.0.1
Explanation: 127.0.0.1 is the standard loopback IP used to test the network stack.
20. What type of congestion control technique uses packet buffering at routers?
a) Flow control
b) Packet scheduling
c) Traffic shaping
d) Congestion avoidance
If you want, I can continue with the next topic on Transmission Basics or explain any question in
detail. What do you say?
You said:
Yes
ChatGPT said:
Great! I’ll continue with Transmission Basics — focusing on Data Transmission Modes,
Transmission Media, Bandwidth, Signal Encoding, and Transmission Impairments.
Here are 20 MCQs on this topic with detailed explanations:
a) Parallel transmission
b) Simplex transmission
c) Synchronous transmission
d) Asynchronous transmission
2. In which transmission mode do data flow in both directions but not simultaneously?
a) Simplex
b) Half-duplex
c) Full-duplex
d) Parallel
Answer: b) Half-duplex
Explanation: Half-duplex allows data flow both ways but only one direction at a time.
Answer: c) Hertz
Explanation: Bandwidth refers to the range of frequencies available for data transmission,
measured in Hertz (Hz).
a) To encrypt data
b) To reduce errors during transmission
c) To convert data into a form suitable for transmission
d) To increase bandwidth
7. Which encoding scheme uses two signal levels to represent binary 0 and 1?
a) Manchester encoding
b) Non-return-to-zero (NRZ)
c) Frequency modulation
d) Phase modulation
a) Attenuation
b) Noise
c) Delay distortion
d) Crosstalk
a) Thermal noise
b) Impulse noise
c) Crosstalk
d) Intermodulation noise
a) Coaxial cable
b) Microwave
c) FTP
d) Optical fiber
Answer: c) FTP
Explanation: FTP (File Transfer Protocol) is a network protocol, not a transmission medium.
12. Which data transmission mode allows sending multiple bits simultaneously?
a) Serial transmission
b) Parallel transmission
c) Simplex
d) Half-duplex
17. What is the main advantage of serial transmission over parallel transmission?
a) Higher speed
b) Lower cost and less interference
c) Can transmit multiple bits simultaneously
d) More complex hardware
18. Which layer of the OSI model deals directly with physical transmission of raw bits?
a) Network layer
b) Data link layer
c) Physical layer
d) Transport layer
20. What is the term for the maximum data rate that can be transmitted over a channel
without error?
a) Bandwidth
b) Throughput
c) Channel capacity
d) Latency
You said:
Yes
ChatGPT said:
Here are 20 MCQs on Application Layer Protocols (HTTP, FTP, SMTP, Telnet, SNMP) for your
Bihar STET Computer Science Paper 2 prep:
a) 20
b) 21
c) 80
d) 443
Answer: c) 80
Explanation: HTTP uses port 80 by default for web communication.
2. Which protocol is used to transfer files between client and server over a network?
a) SMTP
b) FTP
c) HTTP
d) SNMP
Answer: b) FTP
Explanation: FTP (File Transfer Protocol) is designed for file transfers.
a) Sending emails
b) Receiving emails
c) File transfer
d) Remote login
a) FTP
b) HTTP
c) Telnet
d) SNMP
Answer: c) Telnet
Explanation: Telnet allows remote login to computers over a network.
a) HTTP
b) SNMP
c) FTP
d) SMTP
Answer: b) SNMP
Explanation: SNMP (Simple Network Management Protocol) is used for network management.
6. FTP uses which ports for control and data connections respectively?
a) 20 and 21
b) 21 and 20
c) 80 and 443
d) 25 and 110
Answer: b) 21 and 20
Explanation: FTP uses port 21 for control commands and port 20 for data transfer.
a) HELO
b) MAIL FROM
c) RCPT TO
d) DATA
a) 22
b) 23
c) 25
d) 80
Answer: b) 23
Explanation: Telnet uses port 23 for remote terminal sessions.
a) TCP
b) UDP
c) FTP
d) HTTP
Answer: b) UDP
Explanation: SNMP typically uses UDP for communication.
a) SMTP
b) POP3
c) FTP
d) Telnet
Answer: b) POP3
Explanation: POP3 (Post Office Protocol) is used to retrieve emails.
a) 404
b) 500
c) 200
d) 301
Answer: c) 200
Explanation: Status code 200 means OK, successful request.
a) HELO
b) DATA
c) MAIL FROM
d) QUIT
Answer: a) HELO
Explanation: HELO command identifies the client to the SMTP server.
a) Send emails
b) Monitor network devices and send data to SNMP managers
c) Transfer files
d) Serve web pages
a) PWD
b) CWD
c) LIST
d) RETR
Answer: b) CWD
Explanation: CWD (Change Working Directory) changes the current directory.
a) SSH
b) FTP
c) HTTP
d) SMTP
Answer: a) SSH
Explanation: SSH encrypts data for secure remote login.
19. HTTP is a:
a) Stateful protocol
b) Stateless protocol
c) Connection-oriented protocol
d) Data link protocol
You said:
Yes
ChatGPT said:
Great! Here are 20 MCQs on Network Layer topics like IPv4, Routing, Subnetting, ARP, and
Congestion Control for your Bihar STET Paper 2 prep:
a) 16 bits
b) 32 bits
c) 64 bits
d) 128 bits
Answer: b) 32 bits
Explanation: IPv4 addresses are 32-bit numbers written in dotted decimal format.
a) Class A
b) Class B
c) Class C
d) Class D
Answer: a) Class A
Explanation: Class A addresses support 126 networks with many hosts each.
a) 10.0.0.0 to 10.255.255.255
b) 192.168.0.0 to 192.168.255.255
c) 172.16.0.0 to 172.31.255.255
d) All of the above
a) 255.0.0.0
b) 255.255.0.0
c) 255.255.255.0
d) 255.255.255.255
Answer: c) 255.255.255.0
Explanation: Class C networks have default subnet mask 255.255.255.0.
a) OSPF
b) BGP
c) RIP
d) EIGRP
Answer: c) RIP
Explanation: RIP (Routing Information Protocol) uses hop count for routing decisions.
a) 15
b) 16
c) 30
d) 255
Answer: a) 15
Explanation: RIP considers 16 hops as unreachable.
a) Network address
b) Broadcast address
c) Subnet mask
d) Default gateway
11. Which field in the IPv4 header specifies the next-level protocol?
a) Source Address
b) Protocol
c) TTL
d) Checksum
Answer: b) Protocol
Explanation: This field identifies the protocol in the data portion (TCP, UDP, etc.).
a) Time To Live
b) Total Transmission Length
c) Transport Transmission Limit
d) Temporary Transfer Limit
a) TCP
b) UDP
c) FTP
d) SMTP
Answer: b) UDP
Explanation: UDP is connectionless and does not guarantee delivery.
15. Congestion control in networks aims to:
a) Slow Start
b) Distance Vector
c) Link State
d) ARP
a) IP
b) TCP
c) FTP
d) HTTP
Answer: a) IP
Explanation: Internet Protocol routes packets between networks.
19. What is subnetting used to create?
a) Class A
b) Class B
c) Class C
d) Class D
Answer: d) Class D
Explanation: Class D addresses (224.0.0.0 to 239.255.255.255) are reserved for multicast
Answer: C
Explanation: In serial transmission, data bits are sent sequentially over a single channel. It's
slower but more reliable over long distances.
A. One
B. Two
C. Eight or more
D. None of the above
Answer: C
Explanation: Parallel transmission sends multiple bits (usually 8, 16, or 32) simultaneously using
multiple lines or wires.
A. Parallel
B. Serial
C. Synchronous
D. Asynchronous
Answer: B
Explanation: Serial transmission is more reliable for long distances due to less interference and
signal degradation.
A. Radio waves
B. Infrared
C. Twisted pair cable
D. Microwave
Answer: C
Explanation: Twisted pair cable is a guided medium where data is transmitted through a
physical conductor.
A. Coaxial cable
B. Twisted pair
C. Optical fiber
D. Microwave
Answer: C
Explanation: Optical fiber provides the highest bandwidth and is ideal for high-speed, long-
distance communication.
6. Which of the following transmission media is most immune to electromagnetic
interference?
A. Coaxial cable
B. Twisted pair cable
C. Optical fiber
D. Microwave
Answer: C
Explanation: Optical fibers are immune to electromagnetic interference since data travels as
light.
Answer: C
Explanation: Bandwidth indicates how much data can be transmitted in a given time, typically
measured in bits per second (bps).
Answer: A
Explanation: NRZ is a digital line coding method where binary 1s and 0s are represented by
voltage levels.
9. The distortion that occurs due to different signal components traveling at different speeds
is called:
A. Attenuation
B. Noise
C. Delay distortion
D. Jitter
Answer: C
Explanation: Delay distortion happens when components of a signal arrive at different times,
distorting the signal.
A. Delay
B. Attenuation
C. Crosstalk
D. Echo
Answer: B
Explanation: Attenuation refers to the weakening of the signal over distance.
11. Which type of cable is commonly used in LANs due to its cost-effectiveness and flexibility?
A. Coaxial
B. Twisted Pair
C. Optical Fiber
D. Microwave
Answer: B
Explanation: Twisted pair cables are inexpensive, flexible, and widely used in LAN setups.
12. Which encoding scheme uses three voltage levels for better synchronization?
A. NRZ
B. Manchester
C. AMI (Alternate Mark Inversion)
D. Bipolar NRZ
Answer: C
Explanation: AMI uses three voltage levels (positive, zero, and negative) and is used to improve
synchronization.
13. Which factor does not directly affect bandwidth?
A. Transmission medium
B. Signal frequency
C. Noise
D. Voltage
Answer: D
Explanation: Voltage levels are not a primary factor in determining bandwidth, unlike medium,
signal frequency, and noise.
14. In digital transmission, the interval between the start of one bit and the start of the next is
called:
A. Bit period
B. Bit rate
C. Byte cycle
D. Clock cycle
Answer: A
Explanation: Bit period is the time taken to transmit one bit.
A. Fiber optics
B. Twisted pair
C. Radio wave
D. Coaxial cable
Answer: C
Explanation: Radio waves are transmitted without physical conductors, making them an
unguided medium.
16. Which encoding method ensures transition in every bit for synchronization?
A. NRZ
B. RZ
C. Manchester
D. Differential Manchester
Answer: C
Explanation: Manchester encoding ensures a transition at the midpoint of each bit, useful for
synchronization.
17. Which transmission mode allows data to be transmitted in both directions but not
simultaneously?
A. Simplex
B. Half-duplex
C. Full-duplex
D. Multiplex
Answer: B
Explanation: Half-duplex allows two-way communication but only one direction at a time.
A. Attenuation
B. Noise
C. Delay
D. Distortion
Answer: B
Explanation: Noise is any unwanted signal that distorts the original data during transmission.
19. Which media has the lowest bandwidth among the following?
A. Fiber Optic
B. Twisted Pair
C. Coaxial
D. Satellite link
Answer: B
Explanation: Twisted pair cable generally has the lowest bandwidth compared to others.
20. Jitter in transmission refers to:
A. Signal distortion
B. Variation in packet arrival time
C. Decrease in signal strength
D. Network traffic congestion
Answer: B
Explanation: Jitter is the variation in the delay of received packets in a network.
✅ Key Takeaways:
A. FTP
B. HTTP
C. SMTP
D. SNMP
Answer: B
Explanation: HTTP (HyperText Transfer Protocol) is used for transferring web documents
between clients and servers.
A. FTP
B. Telnet
C. SMTP
D. SNMP
Answer: A
Explanation: FTP (File Transfer Protocol) is designed for uploading and downloading files across
a network.
A. Receiving emails
B. Sending emails
C. Downloading emails
D. Reading emails offline
Answer: B
Explanation: SMTP (Simple Mail Transfer Protocol) is used to send emails from a client to a
server or between servers.
A. FTP
B. Telnet
C. HTTP
D. SNMP
Answer: B
Explanation: Telnet (Telecommunication Network) allows users to log into remote computers
and interact with them as if they were local terminals.
A. Sending emails
B. Monitoring and managing network devices
C. Uploading files
D. Remote terminal access
Answer: B
Explanation: SNMP (Simple Network Management Protocol) is used to monitor and manage
network devices such as routers and switches.
6. HTTP works on which port number by default?
A. 20
B. 21
C. 23
D. 80
Answer: D
Explanation: Port 80 is the default port for HTTP traffic.
A. FTP
B. Telnet
C. SMTP
D. SNMP
Answer: C
Explanation: SMTP operates on port 25 to transfer emails.
8. FTP uses which ports for control and data transfer respectively?
A. 20 (Control), 21 (Data)
B. 21 (Control), 20 (Data)
C. 80 (Control), 21 (Data)
D. 23 (Control), 25 (Data)
Answer: B
Explanation: FTP uses port 21 for control commands and port 20 for data transfer.
A. HTTPS
B. Telnet
C. SNMPv3
D. SFTP
Answer: B
Explanation: Telnet does not encrypt data, making it insecure for remote communication.
10. Which version of SNMP includes security features like encryption and authentication?
A. SNMPv1
B. SNMPv2
C. SNMPv3
D. SNMPv4
Answer: C
Explanation: SNMPv3 added support for encrypted communication and secure authentication.
A. SMTP
B. IMAP
C. FTP
D. SNMP
Answer: B
Explanation: IMAP (Internet Message Access Protocol) is used to access and manage email
messages directly on the mail server.
Answer: D
Explanation: HTTPS uses SSL/TLS over port 443 to provide secure communication, unlike HTTP.
A. HTTP
B. FTP
C. SNMP
D. SMTP
Answer: B
Explanation: FTP supports interactive sessions like file listing, renaming, downloading, etc.
A. FTP
B. SMTP
C. SNMP
D. HTTP
Answer: C
Explanation: SNMP is widely used in tools like Nagios, PRTG for monitoring and managing
network infrastructure.
A. HTTP
B. FTP
C. SMTP
D. Telnet
Answer: B
Explanation: FTP supports both uploading and downloading files.
Answer: C
Explanation: HTTP stands for HyperText Transfer Protocol.
Answer: B
Explanation: Telnet provides a text-based, command-line interface for interacting with remote
systems.
A. Transport
B. Network
C. Application
D. Session
Answer: C
Explanation: SMTP is an Application Layer protocol used to send emails.
A. Stateful
B. Stateless
C. Secure
D. Encrypted
Answer: B
Explanation: HTTP is stateless, meaning each request is independent of previous ones.
A. FTP
B. HTTP
C. SNMP
D. TCP
Answer: D
Explanation: TCP is a Transport Layer protocol, while the others operate at the Application
Layer.
✅ Key Takeaways: