Programming For Problem Solving (PPS) Assignment Solutions: 1. Draw The Memory Hierarchy Representation
Programming For Problem Solving (PPS) Assignment Solutions: 1. Draw The Memory Hierarchy Representation
RAM is called volatile memory because its contents are lost when the power is turned off. It requires
continuous power to retain stored data.
Syntax refers to the set of rules that define the structure of a programming language.
Importance:
- Ensures proper communication between programmer and computer.
- Helps avoid errors and improve code readability.
- Essential for compilation and execution.
A digital computer is an electronic device that processes data using binary (0s and 1s).
Architecture:
- Input Unit: Takes input from the user.
- CPU (Control Unit + ALU): Processes data.
- Memory Unit: Stores data and instructions.
- Output Unit: Displays results.
- Storage: Hard drives, SSDs for permanent data storage.
Functions of OS:
- Process Management
- Memory Management
- File System Management
- Device Management
- Security and User Interface
Types:
- Batch OS
- Multi-tasking OS
- Real-time OS
- Distributed OS
3. Define Algorithm with its characteristics. Write the algorithm for greatest of three numbers
Algorithm:
1. Start
2. Read three numbers A, B, C
3. If A > B and A > C, print A is greatest
4. Else if B > C, print B is greatest
5. Else print C is greatest
6. End
4. Differentiate:
5. Explain: