010-160 Hardware and Operating Systems 2 — Questions and Answers
Question 1: Which command displays detailed information about the CPU, including its architecture and number of cores?
- cpuinfo
- lscpu (Correct answer)
- hwinfo --cpu
- cat /proc/hardware
Correct answer: lscpu
lscpu reads CPU architecture information from sysfs and /proc/cpuinfo and displays it in a readable format.
Question 2: What does the acronym BIOS stand for?
- Basic Input/Output System (Correct answer)
- Binary Integrated Operating Software
- Boot Initialization and Output System
- Basic Integrated OS Services
Correct answer: Basic Input/Output System
BIOS stands for Basic Input/Output System, the firmware that initializes hardware during the boot process.
Question 3: Which file in the /proc filesystem contains information about the system's memory usage?
- /proc/memstats
- /proc/memory
- /proc/meminfo (Correct answer)
- /proc/raminfo
Correct answer: /proc/meminfo
/proc/meminfo provides real-time information about the system's memory usage including total, free, and cached memory.
Question 4: What is the primary function of the kernel in an operating system?
- Provide a graphical user interface
- Manage hardware resources and provide services to applications (Correct answer)
- Store user files and settings
- Control network connections only
Correct answer: Manage hardware resources and provide services to applications
The kernel manages hardware resources such as CPU, memory, and devices, and provides a layer of abstraction for applications.
Question 5: Which bus type is commonly used to connect expansion cards such as GPUs to a modern motherboard?
- ISA
- AGP
- PCI Express (PCIe) (Correct answer)
- VESA Local Bus
Correct answer: PCI Express (PCIe)
PCI Express (PCIe) is the modern standard for connecting expansion cards including GPUs, SSDs, and network cards to a motherboard.
Question 6: What is the purpose of swap space in a Linux system?
- Temporarily store files being transferred between drives
- Act as virtual memory when RAM is full (Correct answer)
- Cache frequently accessed disk blocks
- Store temporary files created during compilation
Correct answer: Act as virtual memory when RAM is full
Swap space is used as virtual memory, allowing the system to move inactive memory pages to disk when physical RAM is exhausted.
Question 7: Which command would you use to list all PCI devices detected by the Linux kernel?
- lsdev
- lspci (Correct answer)
- pciscan
- hwdetect --pci
Correct answer: lspci
lspci lists all PCI buses and devices connected to them, reading data from the /sys/bus/pci directory.
Which command displays detailed information about the CPU, including its architecture and number of cores?