NEW
Font size
WorksheetsNetworking
Total questions: 25
Worksheet time: 13mins
A datagram is sent without establishing a connection, and no acknowledgment is received. Which protocol is being used?
TCP
ICMP
UDP
STCP
You want to know which user is currently logged into the Linux system to ensure you’re working under the correct account. What command would you use?
hostname
users
whoami
top
In a three-way handshake, which type of packet does the server send to indicate readiness to establish a connection?
SYN
FIN
SYN-ACK
RST
Two devices are communicating over 172.16.5.10/16. Which is the network ID?
You have a file named report.txt. You want to create a new user and ensure the user has write permissions to this file, but others cannot write to it. Which command achieves this?
chmod u+w report.txt
chmod g-w report.txt
chmod o-w report.txt
chmod u+w, o-w report.txt
A company is using IPv6 to address devices in its network. Which of the following is a valid IPv6 address?
192.168.0.1
2001:0db8:85a3:0000:0000:8a2e:0370:7334
255.255.255.255
127.0.0.1
You’ve accidentally created a file with spaces in its name, like my file.txt. Which command ensures the file is removed safely?
A. rm my file.txt
B. rm "my file.txt"
C. rm my\ file.txt
Both B and C
While navigating the Linux file system, you’re in /home/kali/documents and want to open a file located at /home/kali/desktop/txts. Which type of file path would you use?
Relative path
Absolute path
Both work the same
None of the above
Scenario: A computer establishes communication with a server, but data transfer occurs in only one direction at a time.
Question: Which type of data flow is being used?
Asynchronous
Half-Duplex
Two devices are on the network. One has the IP address 192.168.10.1/24, and the other has 192.168.20.1/24. Can they communicate without a router?
A file named notes.txt resides in /home/user/docs. From /home/user, which path would access the file relatively?
docs/notes.txt
/docs/notes.txt
/home/docs/notes.txt
None of the above
A user is browsing the web, and the connection to the server needs to ensure that the web page content loads reliably without missing any elements. Which protocol is best suited for this scenario?
ICMP
UDP
SMTP
TCP
A file named project.zip contains multiple subdirectories. You want to compress everything into a single .zip file. What command should you use?
Two devices on the same network are communicating using IP 192.168.1.10 and 192.168.1.20 with a subnet mask of 255.255.255.0. What component ensures direct communication between them?
C. Router
You’re logged in as a regular user and need to run a command that requires administrative privileges. Which command prefix will help you?
A client and server are establishing a connection. The client sends a SYN packet, and the server responds with a SYN-ACK. What is the next step in the process?
The client closes the connection.
The server sends a SYN packet.
The client sends a RST packet.
The client sends an ACK packet.
During a video call, minor packet loss occurs without affecting the quality significantly. Which protocol is likely handling the data transfer?
A user sees the following entry in the system: kali:x:1000:1000:kali:/home/kali:/usr/bin/zsh. Which of the following represents the home directory of the user?
/usr/bin/zsh
/home/kali
kali:x:1000:1000
/usr/bin/kali
Scenario: A video streaming application on a smartphone accesses the internet to stream data.
Question: Which OSI layer is responsible for providing this service?
Application Layer
Physical Layer
Data Link Layer
Network Layer
A server uses IP 10.0.0.5 with a subnet mask 255.0.0.0. Which of the following IPs belongs to the same network?
172.16.0.1
10.1.2.3
192.168.1.1
10.0.1.256
You want to display the last 5 lines of a large log file named access.log. Which command will you use?
head -n 5 access.log
tail -n 5 access.log
cat access.log
less access.log
A video streaming app faces delays because packets are being retransmitted for reliability. Which protocol should be switched to for better performance?
F. TCP
G. FTP
ou need to identify all files in your current directory that start with "report" and include a digit in the filename. Which command works?
ls report*
ls report[0-9]*
ls report?
ls report.*
A user tries to access a website but finds it unreachable. Upon investigation, the router reveals that the IP address is private. Which class of address is likely assigned to the user?
Class A (10.x.x.x)
Class B (172.16.x.x – 172.31.x.x)
Class C (192.168.x.x)
A file’s ownership needs to be changed to a specific user. Which command should you use?
A. sudo
C. groupadd
D. passwd
