NEW
Font size
WorksheetsBSIT3201_ME
Total questions: 50
Worksheet time: 25mins
Why might an administrator prefer using yum over rpm when installing packages in Red Hat-based systems?
yum is faster than rpm
yum automatically resolves and installs dependencies
yum requires fewer permissions to install packages and dependencies
yum does not require internet access to install packages
When using rpm, which of the following best describes the consequence of using --nodeps during installation?
It ensures all dependencies are properly checked before installation
It disables all options and installs only core files
It bypasses the check for required libraries, risking software instability
It performs a dry-run installation
How does apt-get dist-upgrade differ from apt-get upgrade in Debian systems?
It reverts the OS to an older version
It adds a GUI for easy access and management
It handles changing dependencies between versions during upgrade
It removes obsolete packages before installation and dependencies are properly checked
In what situation would using rpm -F be more appropriate than rpm -U?
When you want to install a new package for the first time
When you want to downgrade a package
When you only want to update an already installed package
When you want to delete duplicate packages and install a new one
Which yum command would be best used to confirm that a planned update will not cause a critical version change in a production system?
yum groupinstall
yum clean all
yum check-update
yum reinstall
You are managing a CentOS server. The emacs editor has started behaving erratically, even after updates. You suspect a corrupted installation. What should you do to resolve this?
Run yum clean all
Run yum reinstall emacs
Use rpm --nodeps emacs
Downgrade the kernel
A developer requests installation of a tool that requires specific library versions that are no longer available in your current system. You want to proceed but understand the risks. What option should you use with rpm?
--replacepkgs
--nosignature
--force
--includedocs
You are reviewing installed software and need to identify which package provides the file /usr/bin/python3. What is the most appropriate command?
yum list python3
yum provides /usr/bin/python3
yum search python3
rpm -e python3
Which of the following would best ensure the integrity and authenticity of a Debian package before installation?
Using apt-file
Using apt-get update
Using apt-secure
Using --ignoresize with rpm
When managing updates for multiple related packages in a Linux environment, which yum command allows bulk update for a group of software tools?
yum groupupdate
yum upgrade-to
yum update
yum resolvedep
Which best explains the advantage of using a switch over a hub in a modern network?
A switch is cheaper than a hub
A switch broadcasts to all devices ensuring better reach
A switch uses MAC addressing to forward data directly to the intended device
A switch increases packet loss to balance network load to easily forward data to the destination device
Why might UDP be preferred over TCP in a live video streaming application?
UDP provides better encryption than TCP
UDP guarantees packet delivery to reach the destination device
UDP reduces latency by avoiding connection overhead
UDP automatically corrects lost packets
What is the key function of the ARP protocol in networking?
Encrypts IP packets for secure transmission
Routes data to distant networks
Resolves IP addresses to MAC addresses
Monitors network speed and system usage
You are analyzing a network issue. Which command would best help you determine the path taken by packets?
ip a
netstat
traceroute
ping
How does a router differ from a gateway in terms of function?
A router handles local device communication, while a gateway handles Internet access only
A router forwards data between similar networks; a gateway connects different network architectures
A gateway is faster than a router in data transmission
A router is obsolete in modern networking
Why is the Internet Control Message Protocol (ICMP) essential for troubleshooting?
It allows devices to share their MAC addresses during communication
It manages multicast groups
It provides diagnostic messages and reports delivery issues
It transfers files securely over a network using encryption protocol
What is the role of the Internet Layer in the TCP/IP model?
Controls the timing of physical transmissions
Handles applications' data formatting
Manages routing and addressing of packets
Establishes encrypted sessions
A system administrator needs to verify a server’s current IP configuration. Which command should be used?
netstat-r
traceroute
ip a
wget
Why is DNS critical in modern TCP/IP networks?
It logs system error messages
It encrypts domain names
It translates hostnames into IP addresses
It forwards emails between servers and clients
Evaluate why TCP would be chosen over UDP in downloading a critical software update?
TCP uses less bandwidth to avoid data traffic during data transmission
TCP ensures reliable, ordered, and complete data transfer
TCP prevents IP address conflicts in traversing global networks
TCP avoids firewall configurations
You’re setting up a LAN for a small office. You want to minimize unnecessary network traffic. Which device is most appropriate for connecting desktop PCs?
Hub
Switch
Router
WAP
A user reports slow connection to a website. As a network admin, which command would best help identify where the delay is occurring?
ftp
ping
traceroute
ssh
A remote user needs to access a company server securely from home. Which protocol should they use?
Hypertext Transfer Protocol
File Transfer Protocol
Secure Shell
Telnet
Your organization receives complaints that video calls are laggy. Upon investigation, you discover the app uses TCP. What change might improve performance?
Switch from HTTP to FTP
Upgrade to a gateway
Use UDP instead of TCP
Increase use of ARP
A network technician is configuring a router and wants to ensure it communicates properly with others in the network. Which protocol facilitates this?
Routing Information Protocol
Simple Mail Transfer Protocol
Internet Control Message Protocol
Domain Name System
A developer creates a script deploy.sh and sets its permissions to 644. During execution, they encounter a "Permission denied" error.
The group doesn’t have write permission
The script lacks execute permission for the owner
The script is not owned by the developer
The file has been locked by another process
A system administrator wants to prevent a configuration file from being edited or viewed by anyone except herself. Which command will most directly achieve this?
chmod 777 config.txt
chmod 600 config.txt
chmod 644 config.txt
chmod 700 config.txt
You want to allow a group of users to collaboratively modify files in a shared directory, but prevent others from even viewing the contents.
Which permission setting is most appropriate for this shared directory?
755
700
770
666
A student sets the umask value to 0022.
What will be the default permission for a new file they create?
rw-r--r--
rwxr-xr-x
rwx------
rw-rw-rw-
You used the command chown nika:users notes.txt.
What happens to the file ownership?
Only the group changes to “users”
Only the user changes to “nika”
Both user and group change accordingly
Group changes to the current user’s login group
Why is it risky to assign 777 permissions to a file or directory?
It disables system backups
It allows unrestricted access to the owner only
It allows unrestricted access by all users
It restricts access to administrators only
Which symbolic command will remove all permissions from others while preserving group access?
o=---
o-rwx
g=rw, o=
go-rwx
How does umask influence security in a multi-user environment?
It limits disk usage per user
It sets the maximum allowed permissions on new files
It defines minimum permissions for directories
It restricts user login attempts
What’s the impact of using chmod o-rw on a confidential file?
Everyone except the owner can read and write
Others lose read and write access
Group loses read and write access
Only the group can write
Which of the following demonstrates applying principle of least privilege effectively?
Giving all users 777 access for convenience
Assigning execute rights to every user for all scripts
Using chmod 700 for private configuration files
Giving write access to all on shared directories
Which combination of symbolic notation would you use to give the owner execute permission and remove write permission from others?
u+x, o-w
u+x, g-w
g+x, o=r
u=rwx, o=rw
Why would an administrator choose chmod 755 for a public directory?
To allow everyone full access including deletion
To let everyone modify files in the directory for easy access
To allow everyone to view contents but prevent unauthorized changes
To restrict the directory from being opened by any user
When changing group ownership of a file using chgrp, what must be true for the command to succeed without sudo?
The user must be root
The user must own the file and be a member of the target group
The file must be world-readable
The file must already belong to the target group for all users
You run umask 0002 before creating files in a shared group project directory. What does this achieve?
It makes files accessible to group members for reading only
It blocks group access
It allows read and write access to group but denies others write access
It denies group and others full access
A developer notices several processes with the "Z" state when running the ps aux command. What action should they prioritize and why?
Kill all processes with PID 1 to kill Z state
Restart the system to clear memory
Investigate the parent processes for cleanup issues
Increase the system's niceness level
What distinguishes a process that is in an "uninterruptible sleep" (D) state?
It is ready to be scheduled but hasn't received CPU time
It is waiting for I/O and cannot be killed until completion
It is a zombie process waiting to be reaped
It is a suspended foreground process
Which statement best explains the difference between RES and VIRT columns in the top command output?
RES shows actual RAM used, while VIRT includes all memory allocated
RES is always greater than VIRT
VIRT includes only shared memory, while RES excludes swap
RES includes swap, while VIRT excludes it
A sysadmin wants to monitor high-priority CPU-bound tasks. Which combination of top column values should be evaluated to identify these processes?
PR, %CPU, USER
PR, NI, %CPU
PID, VSZ, SHR
NI, S, VIRT
Which combination of characters in the ps output indicates a multi-threaded, high-priority process in the foreground?
N + l + +
< + s + l
< + l + +
s + L + N
You're reviewing system load averages of 5.00, 5.05, 5.10 on a single-core CPU. What conclusion can you draw?
The system is under light load
Load is within normal idle range and ready to accept more process
The CPU is overwhelmed with more tasks than it can handle
Load average only matters for RAM usage
A user runs a Python script in the terminal, but wants it to continue even after logging out. What is the best approach?
Use fg to resume the job
Run the script with nice
Use bg to send it to background
Use nohup to run it with output redirected
Which process characteristic demonstrates the hierarchical nature of Linux processes?
All processes use the same PID
Processes can only be created by another process
Processes cannot be suspended
All processes run in user mode
Why might a system administrator focus on %MEM and %CPU when observing output from top?
These values help identify users of terminal sessions
They indicate how efficiently swap space is being used in Memory and CPU
They show which processes are consuming the most hardware resources
They reflect process priority settings
Your team runs a script, but it hangs on execution. You press Ctrl+Z to suspend it. Which sequence of commands will properly run it in the background and monitor it?
kill %1 && bg
fg %1 && top
bg %1 && jobs
ps && kill
