Networking Basics
Practice questions
Which list gives the OSI layers from the bottom up?
- Physical, Data Link, Network, Transport, Session, Presentation, Application
- Physical, Network, Data Link, Transport, Session, Presentation, Application
- Physical, Data Link, Network, Session, Transport, Presentation, Application
- Application, Presentation, Session, Transport, Network, Data Link, Physical
Answer and explanation
Answer: A
From the bottom: Physical, Data Link, Network, Transport, Session, Presentation, Application (Please Do Not Throw Sausage Pizza Away). The list starting with Application is top-down.
A 100 Mbps connection is shared equally by 4 users. How much does each get?
- 20 Mbps
- 50 Mbps
- 400 Mbps
- 25 Mbps
Answer and explanation
Answer: D
100 divided by 4 = 25 Mbps each.
A star network has 12 computers around a switch. How many cables join them to the switch?
- 12
- 66
- 11
- 24
Answer and explanation
Answer: A
There is one cable from each computer to the switch, so 12.
An 8 MB file is sent at 10 megabits per second. How long does it take?
- 0.8 seconds
- 8 seconds
- 80 seconds
- 6.4 seconds
Answer and explanation
Answer: D
8 MB = 64 megabits. 64 divided by 10 = 6.4 seconds.
How many ports does each computer in a full mesh of 10 computers need?
- 10
- 45
- 9
- 11
Answer and explanation
Answer: C
Each computer connects to the other 9, so it needs 9 ports.
How many links does a full mesh of 7 computers need?
- 14
- 21
- 42
- 49
Answer and explanation
Answer: B
7 × 6 / 2 = 21 links.
How many usable hosts does a default class C network have?
- 256
- 255
- 254
- 253
Answer and explanation
Answer: C
There are 8 host bits, so 2^8 = 256 addresses, minus the network and broadcast addresses, leaves 254.
Which address is a private address?
- 172.32.0.1
- 192.169.1.1
- 11.1.1.1
- 172.16.5.9
Answer and explanation
Answer: D
The private block 172.16.0.0 to 172.31.255.255 includes 172.16.5.9. The others are public.
What is the binary form of the octet 168?
- 10101000
- 10100100
- 11000100
- 10001010
Answer and explanation
Answer: A
168 = 128 + 32 + 8, which is 10101000.
To which class does the address 150.20.4.1 belong?
- Class A
- Class C
- Class B
- Class D
Answer and explanation
Answer: C
The first octet 150 is in the range 128 to 191, so it is class B.
Which of these is a valid IPv4 address?
- 10.0.0.1
- 192.168.1.256
- 172.16.5
- 1.1.1.a
Answer and explanation
Answer: A
Each octet must be 0 to 255 and there must be four parts. Only 10.0.0.1 satisfies both.
A hub works at which OSI layer?
- Physical
- Network
- Application
- Data Link
Answer and explanation
Answer: A
A hub only repeats electrical signals, which is a Physical layer (layer 1) function.
What is the unit of data at the Data Link layer called?
- Packet
- Frame
- Segment
- Bit
Answer and explanation
Answer: B
At the Data Link layer, data is packaged in frames.
Which layer is responsible for end-to-end delivery and error recovery?
- Session
- Network
- Presentation
- Transport
Answer and explanation
Answer: D
The Transport layer (4), using TCP or UDP, handles end-to-end delivery.
At which OSI layer does a router work?
- Network
- Data Link
- Physical
- Transport
Answer and explanation
Answer: A
A router forwards packets using IP addresses, which is the Network layer (layer 3).
How many layers does the OSI model have?
- Four
- Five
- Seven
- Nine
Answer and explanation
Answer: C
The OSI model has seven layers, from Physical (1) to Application (7).
Live video calls often prefer which transport protocol?
- TCP
- UDP
- SMTP
- HTTPS
Answer and explanation
Answer: B
UDP is faster with less overhead, and a small loss is acceptable in live video.
Which pair correctly contrasts secure and insecure remote login?
- SSH is insecure, Telnet is secure
- FTP is secure, SSH is insecure
- Telnet is encrypted, FTP is not
- SSH is encrypted, Telnet is not
Answer and explanation
Answer: D
SSH encrypts the session; Telnet sends everything as plain text.
Which protocol automatically assigns IP addresses to devices?
- DHCP
- DNS
- SMTP
- SSH
Answer and explanation
Answer: A
The Dynamic Host Configuration Protocol hands out IP addresses automatically.
What is the default port number for HTTPS?
- 80
- 443
- 21
- 25
Answer and explanation
Answer: B
HTTPS uses port 443 by default, while HTTP uses 80.