wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

BSIT3201_ME

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

Why might an administrator prefer using yum over rpm when installing packages in Red Hat-based systems?

a)

yum is faster than rpm

b)

yum automatically resolves and installs dependencies

c)

yum requires fewer permissions to install packages and dependencies

d)

yum does not require internet access to install packages

2.

When using rpm, which of the following best describes the consequence of using --nodeps during installation?

a)

It ensures all dependencies are properly checked before installation

b)

It disables all options and installs only core files

c)

It bypasses the check for required libraries, risking software instability

d)

It performs a dry-run installation

3.

How does apt-get dist-upgrade differ from apt-get upgrade in Debian systems?

a)

It reverts the OS to an older version

b)

It adds a GUI for easy access and management

c)

It handles changing dependencies between versions during upgrade

d)

It removes obsolete packages before installation and dependencies are properly checked

4.

 In what situation would using rpm -F be more appropriate than rpm -U?

a)

When you want to install a new package for the first time

b)

When you want to downgrade a package

c)

When you only want to update an already installed package

d)

When you want to delete duplicate packages and install a new one

5.

Which yum command would be best used to confirm that a planned update will not cause a critical version change in a production system?

a)

yum groupinstall

b)

yum clean all

c)

yum check-update

d)

yum reinstall

6.

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?

a)

Run yum clean all

b)

Run yum reinstall emacs

c)

Use rpm --nodeps emacs

d)

Downgrade the kernel

7.

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?

a)

 --replacepkgs

b)

--nosignature

c)

--force

d)

--includedocs

8.

You are reviewing installed software and need to identify which package provides the file /usr/bin/python3. What is the most appropriate command?

a)

yum list python3

b)

yum provides /usr/bin/python3

c)

yum search python3

d)

rpm -e python3

9.

Which of the following would best ensure the integrity and authenticity of a Debian package before installation?

a)

Using apt-file

b)

Using apt-get update

c)

Using apt-secure

d)

Using --ignoresize with rpm

10.

When managing updates for multiple related packages in a Linux environment, which yum command allows bulk update for a group of software tools?

a)

yum groupupdate

b)

yum upgrade-to

c)

yum update

d)

yum resolvedep

11.

Which best explains the advantage of using a switch over a hub in a modern network?

a)

A switch is cheaper than a hub

b)

A switch broadcasts to all devices ensuring better reach

c)

A switch uses MAC addressing to forward data directly to the intended device

d)

A switch increases packet loss to balance network load to easily forward data to the destination device

12.

Why might UDP be preferred over TCP in a live video streaming application?

a)

UDP provides better encryption than TCP

b)

UDP guarantees packet delivery to reach the destination device

c)

UDP reduces latency by avoiding connection overhead

d)

UDP automatically corrects lost packets

13.

What is the key function of the ARP protocol in networking?

a)

Encrypts IP packets for secure transmission

b)

Routes data to distant networks

c)

Resolves IP addresses to MAC addresses

d)

Monitors network speed and system usage

14.

You are analyzing a network issue. Which command would best help you determine the path taken by packets?

a)

ip a

b)

netstat

c)

traceroute

d)

ping

15.

How does a router differ from a gateway in terms of function?

a)

A router handles local device communication, while a gateway handles Internet access only

b)

A router forwards data between similar networks; a gateway connects different network architectures

c)

A gateway is faster than a router in data transmission

d)

A router is obsolete in modern networking

16.

Why is the Internet Control Message Protocol (ICMP) essential for troubleshooting?

a)

It allows devices to share their MAC addresses during communication

b)

It manages multicast groups

c)

It provides diagnostic messages and reports delivery issues

d)

It transfers files securely over a network using encryption protocol

17.

What is the role of the Internet Layer in the TCP/IP model?

a)

Controls the timing of physical transmissions

b)

Handles applications' data formatting

c)

Manages routing and addressing of packets

d)

Establishes encrypted sessions

18.

A system administrator needs to verify a server’s current IP configuration. Which command should be used?

a)

netstat-r

b)

traceroute

c)

ip a

d)

wget

19.

Why is DNS critical in modern TCP/IP networks?

a)

It logs system error messages

b)

It encrypts domain names

c)

It translates hostnames into IP addresses

d)

It forwards emails between servers and clients

20.

Evaluate why TCP would be chosen over UDP in downloading a critical software update?

a)

TCP uses less bandwidth to avoid data traffic during data transmission

b)

TCP ensures reliable, ordered, and complete data transfer

c)

TCP prevents IP address conflicts in traversing global networks

d)

TCP avoids firewall configurations

21.

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?

a)

Hub

b)

Switch

c)

Router

d)

WAP

22.

A user reports slow connection to a website. As a network admin, which command would best help identify where the delay is occurring?

a)

ftp

b)

ping

c)

traceroute

d)

ssh

23.

A remote user needs to access a company server securely from home. Which protocol should they use?

a)

Hypertext Transfer Protocol

b)

File Transfer Protocol

c)

Secure Shell

d)

Telnet

24.

Your organization receives complaints that video calls are laggy. Upon investigation, you discover the app uses TCP. What change might improve performance?

a)

Switch from HTTP to FTP

b)

Upgrade to a gateway

c)

Use UDP instead of TCP

d)

Increase use of ARP

25.

A network technician is configuring a router and wants to ensure it communicates properly with others in the network. Which protocol facilitates this?

a)

Routing Information Protocol

b)

Simple Mail Transfer Protocol

c)

Internet Control Message Protocol

d)

Domain Name System

26.

A developer creates a script deploy.sh and sets its permissions to 644. During execution, they encounter a "Permission denied" error.

a)

The group doesn’t have write permission

b)

The script lacks execute permission for the owner

c)

The script is not owned by the developer

d)

The file has been locked by another process

27.

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?

a)

chmod 777 config.txt

b)

chmod 600 config.txt

c)

chmod 644 config.txt

d)

chmod 700 config.txt

28.

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?

a)

755

b)

700

c)

770

d)

666

29.

A student sets the umask value to 0022.
What will be the default permission for a new file they create?

a)

rw-r--r--

b)

rwxr-xr-x

c)

rwx------

d)

rw-rw-rw-

30.

You used the command chown nika:users notes.txt.
What happens to the file ownership?

a)

Only the group changes to “users”

b)

Only the user changes to “nika”

c)

Both user and group change accordingly

d)

Group changes to the current user’s login group

31.

Why is it risky to assign 777 permissions to a file or directory?

a)

It disables system backups

b)

It allows unrestricted access to the owner only

c)

It allows unrestricted access by all users

d)

It restricts access to administrators only

32.

Which symbolic command will remove all permissions from others while preserving group access?

a)

o=---

b)

o-rwx

c)

g=rw, o=

d)

go-rwx

33.

How does umask influence security in a multi-user environment?

a)

It limits disk usage per user

b)

It sets the maximum allowed permissions on new files

c)

It defines minimum permissions for directories

d)

It restricts user login attempts

34.

What’s the impact of using chmod o-rw on a confidential file?

a)

Everyone except the owner can read and write

b)

Others lose read and write access

c)

Group loses read and write access

d)

Only the group can write

35.

Which of the following demonstrates applying principle of least privilege effectively?

a)

Giving all users 777 access for convenience

b)

Assigning execute rights to every user for all scripts

c)

Using chmod 700 for private configuration files

d)

Giving write access to all on shared directories

36.

Which combination of symbolic notation would you use to give the owner execute permission and remove write permission from others?

a)

u+x, o-w

b)

u+x, g-w

c)

g+x, o=r

d)

u=rwx, o=rw

37.

Why would an administrator choose chmod 755 for a public directory?

a)

To allow everyone full access including deletion

b)

To let everyone modify files in the directory for easy access

c)

To allow everyone to view contents but prevent unauthorized changes

d)

To restrict the directory from being opened by any user

38.

When changing group ownership of a file using chgrp, what must be true for the command to succeed without sudo?

a)

The user must be root

b)

The user must own the file and be a member of the target group

c)

The file must be world-readable

d)

The file must already belong to the target group for all users

39.

You run umask 0002 before creating files in a shared group project directory. What does this achieve?

a)

It makes files accessible to group members for reading only

b)

It blocks group access

c)

It allows read and write access to group but denies others write access

d)

It denies group and others full access

40.

Which command ensures that a script is executable by everyone but only modifiable by its owner?

a)

chmod 777 script.sh

b)

chmod 755 script.sh

c)

chmod 700 script.sh

d)

chmod 644 script.sh

41.

A developer notices several processes with the "Z" state when running the ps aux command. What action should they prioritize and why?

a)

Kill all processes with PID 1 to kill Z state

b)

Restart the system to clear memory

c)

Investigate the parent processes for cleanup issues

d)

Increase the system's niceness level

42.

What distinguishes a process that is in an "uninterruptible sleep" (D) state?

a)

It is ready to be scheduled but hasn't received CPU time

b)

It is waiting for I/O and cannot be killed until completion

c)

It is a zombie process waiting to be reaped

d)

It is a suspended foreground process

43.

Which statement best explains the difference between RES and VIRT columns in the top command output?

a)

RES shows actual RAM used, while VIRT includes all memory allocated

b)

RES is always greater than VIRT

c)

VIRT includes only shared memory, while RES excludes swap

d)

RES includes swap, while VIRT excludes it

44.

A sysadmin wants to monitor high-priority CPU-bound tasks. Which combination of top column values should be evaluated to identify these processes?

a)

PR, %CPU, USER

b)

PR, NI, %CPU

c)

PID, VSZ, SHR

d)

NI, S, VIRT

45.

Which combination of characters in the ps output indicates a multi-threaded, high-priority process in the foreground?

a)

N + l + +

b)

< + s + l

c)

< + l + +

d)

s + L + N

46.

You're reviewing system load averages of 5.00, 5.05, 5.10 on a single-core CPU. What conclusion can you draw?

a)

The system is under light load

b)

Load is within normal idle range and ready to accept more process

c)

The CPU is overwhelmed with more tasks than it can handle

d)

Load average only matters for RAM usage

47.

A user runs a Python script in the terminal, but wants it to continue even after logging out. What is the best approach?

a)

Use fg to resume the job

b)

Run the script with nice

c)

Use bg to send it to background

d)

Use nohup to run it with output redirected

48.

Which process characteristic demonstrates the hierarchical nature of Linux processes?

a)

All processes use the same PID

b)

Processes can only be created by another process

c)

Processes cannot be suspended

d)

All processes run in user mode

49.

Why might a system administrator focus on %MEM and %CPU when observing output from top?

a)

These values help identify users of terminal sessions

b)

They indicate how efficiently swap space is being used in Memory and CPU

c)

They show which processes are consuming the most hardware resources

d)

They reflect process priority settings

50.

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?

a)

kill %1 && bg

b)

fg %1 && top

c)

bg %1 && jobs

d)

ps && kill