Linux and Windows OS design principles and distributed system fundamentals. - Question Bank

1. What is the 'System V IPC' mechanism in Linux?
A) A set of functions for managing hardware devices
B) A set of legacy IPC mechanisms including message queues, semaphores, and shared memory segments
C) A protocol for remote procedure calls
D) A shell scripting language
2. What is a 'process group' in Linux?
A) A collection of related processes that can be managed together, often for signal handling
B) A group of users with similar permissions
C) A type of file system
D) A network connection
3. What is the role of the 'Windows Registry Editor' (regedit.exe)?
A) To manage user applications
B) To view and modify the Windows Registry, which stores configuration settings
C) To monitor network traffic
D) To defragment the hard drive
4. What is 'idempotence' in distributed systems?
A) The ability of an operation to be performed multiple times without changing the result beyond the initial application
B) The requirement for all operations to be unique
C) The speed at which an operation completes
D) The memory usage of an operation
5. What is a 'distributed transaction'?
A) A single transaction that runs on one machine
B) A transaction that involves multiple distributed nodes, requiring coordination to ensure atomicity (all or nothing)
C) A transaction that is processed sequentially
D) A transaction that only reads data
6. What is a 'container' in modern computing, often associated with Linux?
A) A virtual machine that runs a full operating system
B) An isolated environment that shares the host OS kernel but has its own filesystem, processes, and network stack
C) A type of database
D) A network protocol for data transfer
7. What is 'virtualization' in the context of operating systems and distributed systems?
A) Running multiple operating systems on a single physical machine
B) Creating a logical representation of computing resources that abstracts away the physical hardware
C) Encrypting data for secure transfer
D) Compressing files to save disk space
8. What is the 'Executive' in the Windows NT kernel architecture?
A) The lowest level of the kernel code
B) A layer above the microkernel that provides core OS services like I/O, memory management, and process management
C) The user interface component
D) The bootloader
9. What is a 'kernel module' in Linux?
A) A standalone application that runs on the kernel
B) A piece of code that can be loaded into and unloaded from the kernel on demand, extending its functionality
C) A configuration file for the shell
D) A type of user account
10. In Linux, what is the 'init' system (e.g., System V init, systemd)?
A) The user interface for managing files
B) The first process started by the kernel, responsible for initializing the rest of the system and managing services
C) A command for network configuration
D) A tool for monitoring hardware performance
11. What is the 'context switch' in operating systems?
A) The process of starting a new application
B) Saving the state of a running process and loading the state of another process to allow the CPU to switch between them
C) Switching between different user accounts
D) Changing the network configuration
12. What is a 'process scheduler' in an operating system?
A) A component that manages memory allocation
B) A component that determines which processes get to use the CPU and for how long
C) A program that handles user input
D) A tool for debugging network connections
13. What is the primary file system used by modern Windows versions?
A) ext4
B) XFS
C) NTFS
D) ZFS
14. Which Linux filesystem is known for its journaling capabilities, improving data integrity after crashes?
A) FAT32
B) ext4
C) NTFS
D) HFS+
15. What is the primary purpose of 'load balancing' in distributed systems?
A) To increase the latency of requests
B) To distribute incoming network traffic and computational workload across multiple servers to optimize resource utilization and response time
C) To enforce strict data consistency
D) To reduce the number of available servers
16. What is a common challenge in distributed systems related to data consistency?
A) Ensuring all nodes have the same clock speed
B) Maintaining identical data across all replicas in the face of concurrent updates and network delays
C) Reducing the number of nodes in the system
D) Increasing the network bandwidth between nodes
17. What is 'eventual consistency' in distributed systems?
A) A guarantee that all data replicas will be updated simultaneously
B) A consistency model where, if no new updates are made, eventually all replicas will converge to the same state
C) A state where data is always consistent across all nodes
D) A system that prioritizes availability over consistency
18. In distributed systems, what is a 'quorum'?
A) A unique identifier for a node
B) A minimum number of nodes that must agree to a decision or operation for it to be considered valid
C) The total number of nodes in the system
D) A type of network protocol
19. What is a 'semaphore' used for in operating systems?
A) To manage file permissions
B) To control access to a shared resource by multiple processes or threads, allowing a specified number of them to access it concurrently
C) To schedule CPU tasks
D) To handle memory allocation
20. What is a 'mutex' in the context of concurrent programming and operating systems?
A) A mechanism for process creation
B) A synchronization primitive that ensures only one thread can access a resource at a time
C) A way to manage virtual memory
D) A protocol for network communication
21. Windows uses a registry to store configuration settings. What is the primary role of the Windows Registry?
A) To manage user accounts and permissions
B) To store hardware and software configuration information
C) To log system events and errors
D) To manage network connections
22. What is a 'virtual file system' (VFS) in Linux?
A) A file system that exists only in RAM
B) An abstraction layer that allows the kernel to interact with different file system types uniformly
C) A file system used for virtual machines
D) A read-only file system
23. What is the Windows equivalent of a Linux daemon?
A) A process running in user mode
B) A service
C) A scheduled task
D) A system tray icon
24. What is a 'daemon' in Linux?
A) A user-facing application
B) A background process that runs without direct user interaction
C) A temporary file
D) A system error message
25. In Windows, what is a common IPC mechanism that utilizes named objects for communication?
A) Pipes
B) Shared Memory
C) COM (Component Object Model)
D) Sockets
26. Which IPC mechanism is commonly used in Linux for communication between related processes?
A) Pipes
B) Sockets
C) Shared Memory
D) Message Queues
27. What is 'inter-process communication' (IPC)?
A) The process of a single process managing multiple tasks
B) A mechanism that allows different processes to exchange data and synchronize their actions
C) The method by which the kernel communicates with hardware
D) The way a user interacts with the operating system
28. What is the primary purpose of a 'process ID' (PID) in both Linux and Windows?
A) To identify the user running the process
B) To uniquely identify a running process within the operating system
C) To indicate the priority of the process
D) To determine the amount of memory allocated to the process
29. In Windows, what component is responsible for scheduling threads and managing process lifecycles?
A) Win32 subsystem
B) Kernel
C) Executive
D) Local Security Authority Subsystem Service (LSASS)
30. Which Linux process management concept allows a parent process to create a new process that is a near-identical copy of itself?
A) exec()
B) fork()
C) wait()
D) clone()
31. What is a 'distributed lock' in the context of distributed systems?
A) A mechanism to prevent distributed denial-of-service attacks
B) A way to ensure exclusive access to a shared resource across multiple nodes
C) A method for distributing workload evenly
D) A protocol for network discovery
32. What is a common challenge in designing distributed systems related to time?
A) Synchronizing clocks across geographically dispersed nodes
B) Ensuring all nodes have the same processing speed
C) Eliminating the need for time altogether
D) Measuring the exact duration of network latency
33. In a peer-to-peer (P2P) distributed system, what is a key characteristic?
A) A single point of control
B) Decentralized resource sharing among participants
C) Reliance on a central database
D) Limited scalability
34. Which type of distributed system architecture involves a central server that manages resources and client requests?
A) Peer-to-peer
B) Client-server
C) Service-oriented architecture
D) Event-driven architecture
35. According to the CAP theorem, a distributed system can only guarantee two out of the following three properties at any given time:
A) Consistency, Latency, Partition Tolerance
B) Availability, Latency, Consistency
C) Consistency, Availability, Partition Tolerance
D) Partition Tolerance, Latency, Availability
36. What is the 'CAP theorem' in distributed systems concerned with?
A) Concurrency, Availability, and Performance
B) Consistency, Availability, and Partition Tolerance
C) Communication, Access, and Persistence
D) Caching, Allocation, and Processing
37. In distributed systems, what does 'scalability' refer to?
A) The ability to withstand component failures
B) The ability to handle increasing amounts of work by adding resources
C) The consistency of data across all nodes
D) The speed at which a single transaction completes
38. Which concept in distributed systems refers to the ability of a system to continue operating, possibly at a reduced level, even if some of its components fail?
A) Scalability
B) Availability
C) Fault Tolerance
D) Consistency
39. What is a primary disadvantage of a microkernel design compared to a monolithic kernel?
A) Less flexibility in adding new features
B) Slower performance due to frequent context switching and IPC
C) Reduced security through fewer isolation layers
D) Limited support for device drivers
40. What is a key advantage of a microkernel design?
A) Higher performance due to less inter-process communication
B) Increased system stability and security
C) Simpler kernel development
D) Direct hardware access for all services
41. Windows NT kernel architecture is best described as:
A) Purely monolithic
B) Purely microkernel
C) Hybrid kernel
D) Exokernel
42. Linux's kernel architecture is primarily characterized by its use of:
A) A strict monolithic design
B) A microkernel approach
C) A hybrid kernel approach with loadable modules
D) A completely layered structure
43. What design principle in operating systems focuses on dividing tasks into smaller, manageable units that can be executed independently?
A) Monolithic design
B) Microkernel architecture
C) Modular design
D) Layered design
44. What is the primary command-line interpreter in modern Windows versions?
A) Bash
B) Zsh
C) PowerShell
D) CMD
45. Which of the following is a common shell in Linux distributions?
A) PowerShell
B) Bash
C) Command Prompt (cmd.exe)
D) Windows Explorer
46. What is the primary function of a shell in Linux?
A) To manage hardware devices
B) To execute commands and scripts
C) To provide a graphical desktop environment
D) To manage memory allocation
47. In Windows, what is the equivalent of the Linux kernel's role in managing system resources?
A) User Account Control (UAC)
B) Windows Registry
C) Kernel-mode drivers and Executive subsystem
D) Command Prompt
48. Which of the following is a core component of the Linux kernel responsible for process management, memory management, and device management?
A) Shell
B) Systemd
C) GRUB
D) Kernel
49. What is the primary role of a kernel in an operating system?
A) Managing user applications
B) Providing a graphical user interface
C) Managing hardware resources and system processes
D) Handling network communication protocols