Book 19 Jun 2025
Book 19 Jun 2025
-
Ans. ,
Primary Memory Secondary Memory
(a) It is also called main memory. It is called external/auxiliary memory.
(b) It consists of RAM (volatile, i.e., temporary in nature) It is always non-volatile, i.e., permanent in
and ROM (non-volatile in nature). nature.
(c) Primary Memory devices are based on semiconductor Secondary memory devices use magnetic
technology. and optical memory technologies.
(d) It is directly accessible by the CPU. Hence, it is faster. It is not directly accessible by the CPU.
Hence, it is slower than primary memory.
(e) It is more expensive than secondary storage devices. It is cheaper than primary memory.
-
The difference between compiler and interpreter is as follows:
Compiler Interpreter
(a) It translates the entire source code written in It translates the source code written in high-level
high-level language into machine code in one go. language in machine code line by line.
(b) Compiler takes a long time to analyze the Interpreter usually takes less time to analyze the
source code but the overall execution speed is source code but the overall execution speed is
fast. slow.
(c) lntermediat~ code is generated which requires No intermediate code is generated; hence, it is
more memory. _ _ _ _ more efficient.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - Computer System