7. Which part of a computer system is hardware?
Answer: A
Random-access memory is a part of a computer system's hardware.
Random-access memory (RAM) is a type of computer hardware that temporarily stores data for quick access by the CPU. It is essential for the operation of a computer, allowing for the execution of active processes and applications.
A) Random-access memory
This option is correct as RAM is classified as hardware. It is a physical component of the computer system and is critical for a computer's performance, enabling the temporary storage of data that applications and the operating system require while they are in use.
B) Kernel
The kernel is not hardware; it is a core component of the operating system that manages system resources and communication between hardware and software. As a software layer, it is integral to the overall operation of the computer but does not fall under the definition of hardware.
C) Operating system
An operating system is a collection of software that manages computer hardware and provides services for computer programs. Like the kernel, it is not hardware but rather a necessary software interface that facilitates user interaction with the computer’s hardware.
D) Compiler
A compiler is a program that translates code written in a high-level programming language into machine code. This is also a software tool and, therefore, does not qualify as hardware, as it does not refer to any physical components of the computer system.
Conclusion
Random-access memory is undeniably the correct answer as it represents a tangible component of a computer system, while the other options are software-related elements. Understanding the distinction between hardware and software is crucial in computer science, highlighting the essential role that physical components like RAM play in the functionality of a computer system.