How many layers does the OSI model have?
Solution
Physical, Data Link, Network, Transport, Session, Presentation, Application.
20 technical questions of moderate difficulty, as asked in campus placement and company tests. Each has a short explanation.
How many layers does the OSI model have?
Physical, Data Link, Network, Transport, Session, Presentation, Application.
At which OSI layer do routers operate?
Routers forward packets using IP addresses at the network layer.
At which OSI layer do switches mainly operate?
Switches forward frames using MAC addresses.
Which protocol provides reliable, connection-oriented delivery?
TCP uses acknowledgements and retransmission; UDP does not.
What is the default port number for HTTPS?
HTTP uses 80; HTTPS uses 443.
Which protocol translates domain names into IP addresses?
The Domain Name System resolves names like example.com to IP addresses.
Which protocol automatically assigns IP addresses to devices?
DHCP gives hosts an IP address, subnet mask and gateway.
ARP is used to find:
Address Resolution Protocol maps IP addresses to MAC addresses on a local network.
How many bits are in an IPv4 address?
IPv4 uses 32-bit addresses; IPv6 uses 128-bit addresses.
How many usable host addresses does a /24 IPv4 subnet have?
28 = 256 addresses, minus the network and broadcast addresses = 254.
Which of these is a private IPv4 address?
Private ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
Which protocol is used to send email between mail servers?
SMTP sends mail; POP3 and IMAP are used to retrieve it.
Which topology connects every device to a central hub or switch?
In a star topology, all nodes connect to a central device.
What does the 'ping' command use?
ping sends ICMP echo requests and waits for echo replies.
The TCP three-way handshake uses which sequence?
The client sends SYN, the server replies SYN-ACK, and the client sends ACK.
Which device connects networks that use different protocols?
A gateway translates between different network protocols.
Which of these is a connectionless protocol suitable for live video?
UDP has low overhead and no retransmission delays, suiting real-time media.
What is the full form of MAC in MAC address?
A MAC address identifies a network interface at the data link layer.
What does a subnet mask of 255.255.255.0 correspond to?
Three octets of 1s = 24 network bits.
Which layer of the OSI model handles encryption and data formatting?
The presentation layer handles translation, encryption and compression.
Want guided preparation? Placement Papers Prep courses by Dr. Kiran Derle, with video lessons and full-length mocks.
See placement courses ↗