wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Operating Systems Quiz

Total questions: 88

Worksheet time: 44mins

Name
Class
Date
1.

During runtime, an OS needs to decide which page to remove when memory is full. One technique is LRU, which uses history of access. How does LRU compare with FIFO in terms of performance and overhead?

a)

FIFO is more accurate

b)

LRU always faults more

c)

LRU is more effective but complex

d)

FIFO is based on future use

2.

A user configures their system to use a very small page size in virtual memory settings. They notice that more pages are being loaded than before. What could be the trade-offs involved in using smaller pages?

a)

More TLB hits

b)

Lower fragmentation and more overhead

c)

Better CPU utilization

d)

Fewer page faults

3.

In a virtual memory setup, the system allows shared memory pages between processes. How does this feature enhance system efficiency and what precautions must be taken to ensure consistency?

a)

It increases isolation

b)

Pages are never duplicated

c)

Shared pages save memory but need synchronization

d)

Every process has its own copy

4.

A virtual address is passed to the OS during execution. The system uses paging with a TLB. If the required entry is not found in the TLB, the system checks the page table. What is this process known as, and what's the performance implication?

a)

Cache hit

b)

TLB miss and page walk

c)

Segment fault

d)

Stack overflow

5.

A device that employs a rotating platter to perform data read and write operations is the Hard Disk Drive (HDD). Its operation involves spinning magnetic disks and moving read/write heads to access data.

a)

SSD

b)

RAM

c)

Magnetic disk

d)

Cache memory

6.

During program execution, if a needed page is missing from main memory, the system experiences a page fault. This initiates a sequence wherein the operating system fetches the page from disk and loads it into available memory space.

a)

A segmentation fault occurs

b)

A page hit happens

c)

A page fault is triggered

d)

The process is terminated

7.

A reliable page replacement algorithm employed in memory management is Least Recently Used (LRU). This technique optimizes performance by discarding the least accessed pages when new pages need to be loaded into memory.

a)

FIFO

b)

LRU

c)

Optimal

d)

All of the above

8.

Thrashing results from an operating system's overreliance on swapping pages due to high memory contention. This leads to excessive disk I/O and reduced processing capacity, significantly impairing system performance.

a)

High CPU utilization

b)

Low I/O requests

c)

Excessive page faults

d)

Lack of CPU scheduling

9.

The working set model defines the concept of maintaining a process's most recently and frequently used pages in memory. It serves as a dynamic measure to balance memory allocation and reduce page faults.

a)

The total virtual memory used by all processes

b)

The set of pages actively used by the process during a time window

c)

The swap memory size

d)

The main memory size

10.

Hard Disk Drives (HDDs) are known for their use of spinning platters and movable read/write heads, enabling them to store and retrieve data mechanically as opposed to the flash-based storage used in SSDs.

a)

SSD

b)

RAM

c)

Magnetic disk

d)

Cache memory

11.

In operating systems, demand paging is a memory management technique. What is the main benefit of employing demand paging compared to other paging methods?

a)

Reduces memory usage

b)

Improves CPU speed

c)

Increases I/O operations

d)

Reduces context switching

12.

Page replacement plays a crucial role in memory management within operating systems. What is the fundamental advantage of utilizing a page replacement strategy?

a)

Reduces memory usage

b)

Improves CPU speed

c)

Increases I/O operations

d)

Reduces context switching

13.

A database server frequently updates large files. You are considering ZFS with CoW. What is a potential downside of using ZFS here?

a)

It compresses files too aggressively

b)

CoW increases I/O for frequent overwrites

c)

It deletes data without confirmation

d)

It does not support large files

14.

You run a ZFS pool with snapshots. You delete many large files but see no disk space increase. What action will truly free the space?

a)

Defragment the disk

b)

Compress all remaining data

c)

Delete the snapshots referencing those files

d)

Update the pool configuration

15.

You use Btrfs for your home directory. You enable automatic snapshots every hour. What must you monitor closely to avoid disk exhaustion?

a)

Inode table

b)

Number of open file handles

c)

Available disk space due to snapshot retention

d)

RAM usage

16.

You're building a secure file server with rollback and integrity features. You must choose between Btrfs, ext4, and XFS. Which is the best option and why?

a)

XFS, due to its scalability

b)

Btrfs, because it supports CoW, checksumming, and snapshots

c)

ext4, due to high compatibility

d)

XFS, because it supports journaling

17.

On ZFS, after deleting a snapshot, disk usage suddenly drops by 5 GB. What likely happened?

a)

ZFS rewrote the data

b)

5 GB of previously held CoW data became unreferenced

c)

ZFS moved data to another disk

d)

Metadata was corrupted

18.

A CoW file system writes small changes to large files. What strategy can help mitigate performance issues?

a)

Avoid journaling

b)

Use compression

c)

Use recordsize tuning to match file block sizes

d)

Increase checkpoint interval

19.

You enable deduplication in ZFS on a dataset with many duplicate files. After enabling it, the system becomes slow. What could be the cause of the performance degradation?

a)

Fragmentation of the boot loader

b)

High memory and CPU usage for deduplication tables

c)

File permissions mismatch

d)

CoW disabled for new files

20.

Evaluating indexed allocation, what is a major disadvantage compared to contiguous allocation?

a)

Complex bookkeeping

b)

External fragmentation

c)

Slow sequential access

d)

High latency

21.

Which allocation method would you recommend for a multimedia streaming service requiring fast sequential access?

a)

Indexed

b)

Contiguous

c)

Linked

d)

Sequential

22.

HDFS follows a master-slave architecture. Which component acts as the master managing metadata?

a)

DataNode

b)

NameNode

c)

Client

d)

JobTracker

23.

Which characteristic makes Ceph a suitable choice for cloud storage solutions?

a)

Centralized control

b)

Distributed and scalable

c)

Limited to local networks

d)

High latency

24.

Which file allocation method leads to the simplest access calculation when reading a file?

a)

Contiguous

b)

Sequential

c)

Indexed

d)

Linked

25.

Which distributed file system supports strong consistency and POSIX compliance?

a)

HDFS

b)

Ceph

c)

GlusterFS

d)

S3

26.

Sequential allocation stores data blocks in order. What happens if a file grows beyond its allocated space?

a)

File truncated

b)

File relocated

c)

External fragmentation

d)

File extended contiguously

27.

Unix must locate files using their paths. A mechanism is used to convert these paths into actual file references using inodes. Select this path translation tool.

a)

namei

b)

alloc

c)

stat

d)

free

28.

Storing images, videos, logs, and other unstructured data at scale is a cloud challenge. One Azure service is optimized for such use. Identify the appropriate storage solution.

a)

Block-level storage

b)

Object storage

c)

File system emulation

d)

Database backups only

29.

In Unix, users can share files over a network using a file-sharing protocol. This protocol allows access with minimal client-side state. Identify the protocol.

a)

NTFS

b)

ext4

c)

NFS

d)

FAT32

30.

NVMe achieves fast response times by minimizing specific types of delays. It is particularly optimized for improving responsiveness in storage operations. Identify the latency type.

a)

Seek time

b)

Rotational delay

c)

Interface latency

d)

Memory swapping

31.

Applications running on Google Cloud sometimes need high-performance file sharing via NFS. A managed service supports this requirement. Choose the suitable service.

a)

Block storage

b)

File sharing over NFS

c)

Archival storage

d)

Object storage

32.

File operations like open, close, and read are provided to users by a specific OS layer. This layer interfaces with underlying file systems. Identify the responsible layer.

a)

File control block

b)

File system interface

c)

VFS

d)

Buffer cache

33.

A function in Unix file systems handles assigning a new inode when a file is created. This function is central to managing file metadata. Identify the correct operation.

a)

Frees a file

b)

Allocates an inode

c)

Maps virtual address

d)

Updates file permissions

34.

AI disk scheduling optimizes performance by:

a)

Ignoring requests

b)

Using request prediction

c)

Increasing cache size

d)

Reducing disk speed

35.

C-SCAN scheduling differs from SCAN by:

a)

Only scanning forward

b)

Using circular queue

c)

Random access

d)

Starvation prevention

36.

Character devices usually do NOT support:

a)

Sequential access

b)

Buffered I/O

c)

Random access

d)

Byte-level access

37.

AI disk scheduling models typically require:

a)

Real-time manual input

b)

Historical I/O patterns

c)

Fixed scheduling rules

d)

Static queue lengths

38.

Device driver interrupts are used to:

a)

Signal CPU for attention

b)

Transfer data directly

c)

Allocate memory

d)

Manage file descriptors

39.

Round Robin disk scheduling treats requests by:

a)

Priority order

b)

Equal time slices

c)

Distance from head

d)

Age of request

40.

AI-based disk scheduling adapts better to:

a)

Static workloads

b)

Dynamic, changing loads

c)

Minimal queue sizes

d)

Fixed block sizes

41.

AI-based disk scheduling adapts better to:

a)

Static workloads

b)

Dynamic, changing loads

c)

Minimal queue sizes

d)

Fixed block sizes

42.

io_uring's asynchronous submission benefits servers by?

a)

Increasing I/O throughput

b)

Increasing CPU use

c)

Increasing kernel load

d)

Slowing response

43.

Zero-copy in RDMA reduces what resource usage?

a)

Bus bandwidth

b)

Bus contention

c)

Memory latency

d)

CPU interrupts

44.

DPDK is primarily implemented in which language?

a)

C

b)

Java

c)

Python

d)

Assembly

45.

Batch submission in io_uring affects system calls how?

a)

Reduces overhead

b)

Increases overhead

c)

Causes blocking

d)

No effect

46.

What occurs if RDMA is used on unsupported hardware?

a)

Fallback to TCP/IP

b)

Crash

c)

Panic

d)

Success

47.

Multi-core use in DPDK affects throughput by?

a)

Increasing throughput

b)

Reducing throughput

c)

Increasing latency

d)

No change

48.

io_uring benefits which workload type most?

a)

High concurrency servers

b)

Batch jobs

c)

Single-threaded

d)

Memory-bound

49.

RDMA suits distributed storage due to?

a)

Low latency and CPU use

b)

High CPU load

c)

Kernel buffering

d)

Frequent context switches

50.

Orchestration platform widely used for managing Docker-based microservices is:

a)

Kubernetes

b)

OpenStack

c)

VMware ESXi

d)

Hyper-V

51.

Operational approach of Podman that eliminates daemon dependency is achieved by:

a)

Remote API calls

b)

Direct container execution

c)

Use of Vagrant

d)

Kernel modules

52.

Functional responsibility of a hypervisor in a virtualized environment is to:

a)

Configure BIOS

b)

Manage virtual machine operations

c)

Maintain user accounts

d)

Monitor network bandwidth

53.

Linux feature responsible for isolating network stack of individual containers is:

a)

SELinux

b)

Namespace

c)

Cron job

d)

System call interface

54.

In containerized systems, the term namespace refers to:

a)

OS bootloader

b)

Kernel-level isolation unit

c)

A Docker command

d)

Memory mapping technique

55.

Portability evaluation favors containers due to their:

a)

Lightweight build

b)

Easy packaging

c)

Platform independence

d)

All of the above

56.

Linux tool used to manage services like Docker or Podman on systemd-based systems is:

a)

init

b)

systemctl

c)

rc.local

d)

launchd

57.

Recommend a reliable method to recover a forgotten root password. It should preserve system integrity and allow access.

a)

Reinstall system

b)

Boot into single-user mode

c)

Reset BIOS

d)

Remove /etc/shadow

58.

Select the command to monitor CPU and memory usage interactively. It helps identify system load and resource bottlenecks.

a)

df

b)

ls

c)

top

d)

touch

59.

Identify the default shell assigned if not otherwise specified during user creation. It determines how commands are interpreted.

a)

/bin/zsh

b)

/bin/ksh

c)

/bin/bash

d)

/bin/dash

60.

Highlight the location where login failures are typically logged in Linux. This is essential for security auditing.

a)

/var/log/messages

b)

/etc/passwd

c)

/var/log/auth.log

d)

/home/logs

61.

Determine the result of using kill -9 on a process. It bypasses cleanup steps and forces termination.

a)

Graceful exit

b)

Blocked signal

c)

Immediate kill

d)

Delayed stop

62.

Choose the best file for adding a static hostname permanently. This name identifies the machine on the network.

a)

/etc/hostname

b)

/etc/profile

c)

/etc/bashrc

d)

/etc/services

63.

Recommend a security step to restrict SSH login to specific users. This improves controlled access.

a)

Use netstat

b)

Add firewall rule

c)

Modify sshd_config AllowUsers

d)

Change user shell

64.

Given: a <- 5; b <- 3; a^b in R, what is the result?

a)

8

b)

125

c)

15

d)

5

65.

What file must be edited to add a user on a cloud Linux server manually?

a)

/etc/user

b)

/etc/passwd

c)

/user/pass

d)

/add/user

66.

What is the default configuration file for Ansible?

a)

ansible.yaml

b)

ansible.ini

c)

ansible.cfg

d)

config.ansible

67.

In Puppet, which file contains node definitions?

a)

manifests/site.pp

b)

modules/init.pp

c)

nodes.pp

d)

default.pp

68.

Which Ansible loop will execute a task 4 times?

a)

loop: [1,2,3]

b)

with_items: [1,2,3,4]

c)

until: 4

d)

loop: range(1,4)

69.

You want to monitor server memory usage. Which tool is best for CLI cloud server?

a)

vi

b)

ps

c)

top

d)

cat

70.

Ansible playbook returns "UNREACHABLE" status. What's likely the issue?

a)

Wrong password

b)

Port closed

c)

No SSH access

d)

All of the above

71.

Each DNS query takes 5 ms. What's the total time for 400 queries?

a)

20 s

b)

2 s

c)

200 ms

d)

4000 ms

72.

Create a logical table to resolve 5 hosts to their IPs using A records.

a)

5 rows A records

b)

1 MX record

c)

5 NS records

d)

1 SOA record

73.

Design a local network plan with 3 services: DNS, DHCP, and Proxy.

a)

Use different ports/IPs

b)

Combine all

c)

Ignore DHCP

d)

Use one server

74.

Which protocol is more reliable for DNS zone transfers?

a)

UDP

b)

TCP

c)

ICMP

d)

HTTP

75.

Which is correct about recursive DNS queries?

a)

Asks multiple servers

b)

Stops at first

c)

Always uses TCP

d)

Can't resolve CNAME

76.

Calculate usable IPs in a /28 subnet for DNS and DHCP use.

a)

14

b)

16

c)

30

d)

62

77.

A local DNS server serves 500 hosts. Each sends 10 queries/day. Total daily?

a)

5000

b)

50,000

c)

500

d)

1000

78.

A VM created using KVM is unable to boot. The log shows "No bootable device." What is the likely issue?

a)

Missing display driver

b)

Incorrect RAM allocation

c)

No OS image attached

d)

Overloaded host

79.

Which command starts a virtual machine with a specified image using QEMU?

a)

qemu-img run

b)

qemu-system-x86_64

c)

virt-install

d)

kvm-load

80.

What is the main difference between QEMU and KVM?

a)

QEMU uses host virtualization, KVM uses software

b)

QEMU is a container tool

c)

QEMU is a hypervisor, KVM enables hardware acceleration

d)

KVM runs on Windows only

81.

A user creates a Docker container that includes an application and its libraries. When shared, the container runs identically on other systems. What cloud computing characteristic does this demonstrate?

a)

Resource pooling

b)

Measured service

c)

Portability and consistency

d)

Broad network access

82.

In Xen architecture, what is Dom0?

a)

A guest OS

b)

An emulator

c)

A privileged control domain

d)

A disk partition

83.

Which component manages guest VMs in Xen?

a)

XenStore

b)

DomU

c)

Dom0

d)

XenCloud

84.

Which file is typically modified to configure a Xen VM?

a)

/etc/xen.cfg

b)

/etc/xen/.cfg

c)

/var/xen.conf

d)

/boot/xenfile.conf

85.

A user installs Xen but guest VMs fail to start. Dom0 boots correctly. What's a likely cause?

a)

Misconfigured fstab

b)

No internet

c)

Missing virtual disk config for guest

d)

Incorrect DNS

86.

A desktop processor runs at 3.5 GHz. Each instruction takes 2 cycles. What is max instruction throughput?

a)

1.75 billion/sec

b)

2 billion/sec

c)

3.5 billion/sec

d)

7 billion/sec

87.

A desktop boots in 30 seconds. A mainframe takes 5 minutes. What's the % time difference?

a)

9

b)

10

c)

11

d)

7

88.

A mainframe has 16 CPUs, each 4-core. How many logical processors?

a)

64

b)

32

c)

48

d)

16