Aoc 1 & 2 Unit Notes
Aoc 1 & 2 Unit Notes
COMPUTER
A computer is an electronic device that processes data according to a set of
instructions (software) to perform various tasks. It can execute a wide range of
operations, including calculations, data manipulation, and information retrieval.
Computers consist of hardware (physical components like the CPU, memory,
and storage) and software (programs and operating systems). They are used for
tasks ranging from simple calculations to complex simulations and data
analysis.
C -Common
O - Operating System
M - Machine
P - Purposely
U - Used for
T - Technologies
E - Education and
R – Research
MICRO COMPUTER
Definition: A microcomputer is a small, personal computer designed for
individual use. It has a microprocessor as its central processing unit (CPU).
MAINFRAME COMPUTER
Definition: Mainframe computers are large, powerful systems designed to
handle and process vast amounts of data and transactions simultaneously. They
have high processing power and can support many users at the same time.
BASIC OPERATION OF COMPUTER
The basic operations of a computer are fundamental processes that enable it to
perform tasks and execute programs. These operations are commonly
categorized into four primary functions: Input, Processing, Output, and Storage.
DATA
Definition: Data refers to raw, unprocessed facts and figures that alone do not
provide context or meaning. It consists of individual elements that, when
processed, can be used to generate information.
INFORMATION
COMPILER
ASSEMBLER
Definition: An assembler is a program that translates assembly language code (a
low-level language closely related to machine code) into machine code.
Assembly language uses mnemonic codes and symbols that are more
understandable than binary machine code.
INTERPRETER
Definition: RAM is a type of volatile memory used for temporarily storing data
and instructions that are actively being used or processed by the CPU. Data in
RAM is lost when the power is turned off.
SOFTWARE
APPLICATION SOFTWARE
SYSTEM SOFTWARE
Hardware refers to the physical components of a computer system that you can
touch and see. It includes devices such as the computer's central processing unit
(CPU), memory (RAM), hard drive, monitor, keyboard, and mouse. These
components work together to enable the operation of software and perform
computing tasks.
Input devices are hardware components that allow users to enter data or
commands into a computer. Examples include keyboards, mice, and scanners.
Output devices are hardware components that display or produce the results of
computer processes. Examples include monitors, printers, and speakers.
1. Control Unit (CU): Directs and coordinates the operations of the CPU
by fetching, decoding, and executing instructions.
2. Registers: Small, fast storage locations within the CPU used to hold data
and instructions temporarily during processing.
3. Cache: A small, high-speed memory that stores frequently accessed data
and instructions to speed up processing. These components work together
to execute instructions and manage the operations of a computer.
UNIT 1 & 2 – 5MARKS AND 10 MARKS Question answers
A. Fetching Instructions
1. Program Counter (PC): The CPU uses the Program Counter to keep track
of which instruction it needs to execute next. The PC holds the address of
the next instruction in memory.
2. Memory Addressing: The CPU sends a request to the memory using the
address in the Program Counter to fetch the instruction.
3. Fetching: The instruction is retrieved from RAM (or cache, if the
instruction is cached) and loaded into the Instruction Register (IR) in the
CPU.
B. Decoding Instructions
C. Executing Instructions
E. Managing Data
1. Cache Memory: Frequently accessed data and instructions are kept in the
cache to speed up retrieval. The cache is checked before accessing the
main RAM.
2. Data Path: The data path facilitates the transfer of data between the ALU,
registers, and memory.
1. Loading a Program:
o The program is loaded into RAM from storage (e.g., hard drive or
SSD).
o The Program Counter (PC) is set to the starting address of the
program.
2. Execution Cycle:
o The CPU fetches the instruction at the address pointed to by the
PC.
o The fetched instruction is decoded and executed.
o If the instruction involves data, the CPU fetches the data from
memory or cache, processes it, and stores the result back in
memory or a register.
o The Program Counter is updated to point to the next instruction.
3. Repeat:
o This process repeats in a cycle for each instruction until the
program completes.
Here’s a simplified diagram showing the interaction between the CPU and
memory:
Explanation of the Diagram
The CPU and memory work together through a continuous cycle of fetching,
decoding, executing, and storing data to perform computing tasks efficiently.
LOW-LEVEL LANGUAGES AND HIGH-LEVEL LANGUAGES:
This table highlights the fundamental differences between low-level and high-
level programming languages in terms of their abstraction, usability, and other
characteristics.
Definition: ROM is a type of non-volatile memory that is used to store firmware or software
that is not intended to be modified frequently. Data stored in ROM is permanent and remains
intact even when the computer is powered off.
Types of ROM:
Definition: RAM is a type of volatile memory used for temporary storage while a computer
is running. It allows for quick read and write access to a computer's data and instructions that
are actively used by the CPU.
Types of RAM:
Cache Memory
Definition: Cache memory is a small, high-speed storage area located within or close to the
CPU. It stores frequently accessed data and instructions to reduce the time it takes to access
this information from the main memory.
Each type of memory plays a crucial role in the performance and efficiency of a computer
system, from permanent storage in ROM to fast, temporary storage in RAM and cache.