CS Chapter 1 Notes
CS Chapter 1 Notes
Chapter : 1
Q1: What is a Computer?
Ans:
A computer is an electronic data processing machine that performs operations like calculations, comparisons,
and logical decision-making, all based on the instructions given by a program. It takes input, processes the
data, and produces output.
Computers are now used in every field of life including business, education, banking, research, transportation,
media, and entertainment. The development of the computer has played a major role in the progress of
science and technology.
Characteristics of a System:
1. It consists of multiple elements.
Data Information
Q7: What is the Mechanical Era (Dark Age)? Write about the Abacus.
Ans:
The mechanical era is known as the Dark Age because during this time, machines were made to solve
mathematical problems but without electricity. These machines were operated manually. One of the earliest
known devices from this era is the Abacus.
Abacus (3000 B.C.):
The Abacus was invented about 5000 years ago. It is known as the first counting device. It is still used today
for teaching arithmetic to children. The Abacus consists of beads that move along rods to perform basic
calculations. It is considered the first step towards the invention of modern computers.
2. Output Devices – used to display the result (e.g. monitor, printer).
3. Storage Devices – used to store data permanently or temporarily (e.g. hard disk, USB flash drive).
Q1: Write a short note on the History of Computers.
Ans:
The history of computers is a journey that began thousands of years ago with simple tools and evolved into
today’s powerful machines. Humans have always tried to invent tools to solve mathematical and logical
problems easily. The earliest known device is the Abacus (around 3000 B.C.), which was used for basic
counting. Later, machines like Pascaline (by Blaise Pascal), Analytical Engine (by Charles Babbage), and
others were introduced during the Mechanical Era. These machines were operated manually.
With the invention of electricity, mechanical machines were replaced by electronic devices, leading to rapid
progress. The development of modern computers started after World War II. Over time, computers became
smaller, faster, more reliable, and cheaper. The history of computers can be divided into eras and generations,
each bringing a new technological improvement.
Answer: The development of computers is categorized into five generations, each representing major
technological advancements in computer hardware and software.
First Generation (1940-1956): These computers used vacuum tubes for circuitry and magnetic drums for
memory. They were very large, expensive, and consumed a lot of electricity. An example is ENIAC.
Programming was done in machine language.
Second Generation (1956-1963): Transistors replaced vacuum tubes, making computers smaller, faster, and
more reliable. These computers used assembly language and high-level languages like COBOL and
FORTRAN for programming.
Third Generation (1964-1971): Integrated Circuits (ICs) replaced transistors, which allowed multiple
components to be placed on a single chip. This reduced the size and cost of computers and increased their
speed and efficiency.
Fourth Generation (1971-Present): Microprocessors were introduced, which integrated thousands of ICs into
a single silicon chip. This made personal computers (PCs) possible. Computers became affordable and widely
used.
Fifth Generation (Present and Beyond): This generation is based on Artificial Intelligence (AI), machine
learning, and advanced parallel processing. These computers are capable of understanding natural language,
recognizing patterns, and making decisions like humans. Examples include voice assistants like Siri and Alexa.
Q5: Classify Computers According to Size. (Short Question)
1. Supercomputers: The fastest and most powerful computers used for complex scientific calculations.
2. Mainframe Computers: Large computers used by big organizations for bulk data processing.
3. Minicomputers: Mid-sized computers used in small organizations or departments.
4. Microcomputers: Also called personal computers (PCs), used by individuals for daily tasks.
5. Workstations: High-performance PCs used for technical and scientific applications.
Answer:
1. General Purpose Computers: Used for performing a variety of tasks such as word processing,
browsing, gaming, etc.
2. Special Purpose Computers: Designed to perform specific tasks like ATM machines, robots, and
washing machines with embedded systems.
Answer: Computers have become an integral part of our daily life. From education to entertainment, business
to communication, computers are used in almost every aspect of human activity. In schools and colleges,
computers help students learn through digital content and online courses. In the healthcare sector, computers
maintain patient records and assist in diagnosis. Businesses rely on computers for accounting, inventory
management, and communication. Government sectors use them for public services and data management.
Even in homes, computers are used for online shopping, social networking, and banking. Thus, computers
have made our lives easier, faster, and more productive.
i. Input Hardware:
Input Hardware consists of devices for entering data into a computer system in a form that can be
processed by the computer.
There are two kinds of input Hardware:
1. Keyboard input devices
2. Non-keyboard input devices
These devices take input from the user and send it to the computer for processing.
ii. Output Hardware:
Output hardware refers to the devices that allow computers to communicate information to users, by
converting machine-readable information into human-readable form, such as visuals or sounds.
Output hardware can be divided into two main categories.
1. Soft-copy output hardware
2. Hard-copy output hardware
iii. Storage Hardware:
Storage hardware refers to the devices that store data, files, and programs for long-term use.
The secondary storage, or storage medium, is permanent. Secondary storage refers to the devices
that store data permanently, even when the computer is turned off.
Input and output devices serve as essential interfaces between the user and the computer system,
facilitating seamless communication and interaction. Input devices, such as keyboards, mice,
scanners, and microphones, enable users to enter data and commands into the computer, allowing
the system to process information and perform specific tasks. For instance, a keyboard allows for text
input, while a mouse facilitates navigation through graphical user interfaces. On the other hand,
output devices like monitors, printers, and speakers convey the results of the computer's processing
to the user. Monitors display visual information, printers produce physical copies of digital documents,
and speakers emit audio signals. Together, these devices create a dynamic exchange of information,
enabling users to effectively interact with and utilize computer systems for a wide range of
applications.
1. Text Input Devices: These devices are primarily used for entering textual data into the
computer. The most common example is the keyboard, which allows users to input letters,
numbers, and other characters.
2. Pointing Devices: These devices enable users to interact with the computer's graphical user
interface by controlling the movement of the cursor or pointer on the screen. Examples include
○ Trackball: A stationary device featuring a large ball that can be rotated with the hand to
move the cursor. Unlike a mouse, the device itself remains stationary while the user
manipulates the ball.
○ Joystick: A lever that can be moved in multiple directions to control the movement of
an object on the screen, often used in gaming applications.
These categories encompass a variety of devices designed to facilitate different forms of data entry
and user interaction with computer systems.
● F1: Often universally recognized as the help key, pressing F1 typically opens the help
documentation for the active application.
● F5: Commonly used to refresh the contents of a window or webpage in web browsers and
other applications.
Additionally, on many modern keyboards, especially those on laptops, function keys may have dual
purposes. They can control hardware features such as screen brightness, volume, or media playback
when used in combination with the 'Fn' (Function) key. The specific actions assigned to function keys
can often be customized within the software settings, allowing users to tailor them to their preferences
and workflow.
Q6: What is the difference between dumb terminals and smart terminals?
Dumb terminals and smart terminals differ primarily in their processing capabilities and the extent to
which they rely on a central computer:
● Dumb Terminals: These are basic input/output devices that lack their own processing power.
They serve merely as interfaces, allowing users to interact with a central mainframe or server.
All processing tasks are performed by the central computer, with the dumb terminal solely
responsible for transmitting user inputs to the server and displaying the server's outputs.
● Smart Terminals: In contrast, smart terminals possess their own processing capabilities. They
can perform certain computations independently without immediate reliance on a central
server. This autonomy allows smart terminals to execute local applications, validate data entry,
and reduce the processing load on the central computer.
The choice between using dumb or smart terminals depends on the specific needs of an organization,
including factors like network infrastructure, processing requirements, and cost considerations.
Hand-held input devices are portable tools that allow users to interact with computer systems. Two
notable examples include:
1. Barcode Scanner: This device is used to capture and read information contained in barcodes.
When the scanner's light source illuminates the barcode, sensors detect the reflected light, and
the device decodes the information into digital data that the computer can process. Barcode
scanners are widely used in retail for inventory management and point-of-sale transactions.
2. Light Pen: A light pen is a pen-shaped device that allows users to interact directly with the
computer screen. By detecting the screen's light emissions, it enables precise selection and
drawing on the display. Light pens were historically used with CRT monitors for graphic design
and technical drawing applications.
These devices enhance user interaction with computers by providing intuitive and efficient methods
for data input and manipulation.
A scanning device, commonly known as a scanner, is an input device that captures images, text, or
objects and converts them into digital data. This process involves illuminating the item with a light
source and using sensors to detect the reflected light, thereby creating a digital representation of the
original item. Scanners are widely used to digitize physical documents, photographs, and artworks,
allowing for electronic storage, editing, and sharing. The digitized outputs can be saved in various file
formats and integrated into different software applications for further processing.
Q9: What are the three most common types of scanners? What type of data does each scan?
Answer: The three most common types of scanners are:
1. Flatbed Scanner: Scans documents and images placed flat on a glass surface. It captures
high-quality images of papers and photos.
2. Sheet-fed Scanner: Pulls the document through the scanner. It is efficient for scanning
multiple pages quickly.
3. Hand-held Scanner: A portable device that is manually moved over the material to be
scanned. It is used for scanning barcodes or small documents. Each scanner type is designed
to capture different formats of data, such as text, images, or codes
Answer: Voice input devices are used to convert spoken words into digital data that computers can
process. These devices are commonly used for:
Q11: Explain how a voice recognition system works. Answer: A voice recognition system works
by capturing the user's spoken input using a microphone and converting it into digital signals. These
signals are then analyzed using pattern recognition algorithms to identify the spoken words. The
system compares the sound patterns with a pre-stored vocabulary to recognize the speech. More
advanced systems use artificial intelligence to improve accuracy by learning from the speaker’s voice
over time. Voice recognition is widely used in smartphones, smart assistants, and various hands-free
systems.
Answer: The main difference between a mouse and a trackball lies in their operation. A mouse is a
hand-held device that is moved across a surface to control the cursor on the screen. In contrast, a
trackball remains stationary while the user rolls a ball embedded in the device to move the cursor.
Trackballs are often preferred in environments where space is limited, as they require less desk
space and can offer more precise control for certain tasks.
Answer: Formatting, also known as initializing, is an important process because it prepares a storage
device, such as a hard disk or USB drive, to store data. It creates a file system that organizes how
data is stored and retrieved. Formatting also removes all existing data on the storage medium,
ensuring that it is clean and ready for use. Without formatting, the operating system cannot recognize
or write data to the disk properly.
Q14: What is the function of primary storage, and how does secondary storage differ from it?
Answer: Primary storage, also known as main memory or RAM, is used to store data and programs
that are currently in use. It provides fast access to the processor, allowing quick execution of
instructions. Secondary storage, on the other hand, refers to devices like hard drives, SSDs, and
CDs, which are used to store data permanently. Unlike RAM, secondary storage retains data even
when the computer is turned off, but it is slower in accessing data compared to primary memory.
Q15: Describe why having more main memory, or RAM, in your computer is useful.
Answer: Having more RAM in a computer is beneficial because it allows the system to run multiple
applications simultaneously without slowing down. It improves the overall performance by reducing
the need to access slower secondary storage during processing. More RAM helps in smoother
multitasking, faster loading of programs, and better handling of large files, which enhances the user
experience significantly.
Q16: What is the difference between volatile and non-volatile storage? Give an example of
each.
Answer: Volatile storage loses its contents when the power is turned off. An example is RAM, which
temporarily holds data and instructions during processing. Non-volatile storage, on the other hand,
retains data even when the computer is shut down. Examples include hard drives, SSDs, and USB
flash drives. Non-volatile storage is essential for long-term data retention.
Answer: RAM (Random Access Memory) is a type of volatile memory that temporarily holds data and
instructions that are actively being used by the CPU. ROM (Read-Only Memory) is a type of
non-volatile memory that contains permanent instructions for the computer, such as the startup
process. RAM can be written to and read from, while ROM is mainly used for reading and cannot be
modified easily.
Answer: Registers are small, high-speed storage locations within the CPU that temporarily hold data
and instructions during processing. They are used to store intermediate results, memory addresses,
and instructions for quick access by the CPU. Registers are crucial for the CPU’s performance, as
they enable fast processing and efficient execution of instructions.
Answer: Cache memory is a small, high-speed memory located close to or within the CPU. It stores
frequently accessed data and instructions to speed up processing. The main difference between
cache and primary memory (RAM) is that cache is faster but has a much smaller capacity. It reduces
the time needed to access data from main memory, thus improving overall system performance.
Answer: A hardcopy refers to a physical printout of data, such as a document printed on paper. A
softcopy, on the other hand, is the digital version of data that is displayed on a screen, such as a PDF
file viewed on a monitor. Hardcopies are tangible and permanent, while softcopies are intangible and
can be edited or shared electronically.
21. What are the two types of display screens? Display screens are primarily categorized into two
types:
1. Cathode Ray Tube (CRT): These are traditional display screens that use vacuum tube
technology. An electron gun emits a beam of electrons that strikes the phosphorescent surface
of the screen, forming images. CRTs are large, heavy, and consume more power.
2. Flat-Panel Displays: These are modern screens that are thinner and lighter. They use
technologies such as LCD (Liquid Crystal Display), LED (Light Emitting Diode), and OLED
(Organic LED). Flat-panel displays are energy-efficient and are commonly used in laptops,
monitors, and televisions.
● CRT (Cathode Ray Tube): A display device that uses electron beams to create images on a
phosphorescent screen. It is bulky but was commonly used in older monitors and TVs.
● Pixel: The smallest unit of a digital image or display. Each pixel represents a single point in the
image and can display different colors. The quality of the image depends on the number of
pixels.
● Resolution: Refers to the number of pixels in each dimension that a display can show. It is
expressed as width × height (e.g., 1920 × 1080). Higher resolution means sharper and more
detailed images.
● Monochrome: A display that uses only one color of light, typically black on a white or green
background. It was common in early computer screens and is still used in some devices for
simplicity and clarity.
1. LCD (Liquid Crystal Display): Uses liquid crystals that align to block or allow light through.
Requires a backlight to produce images. Common in monitors and TVs.
2. LED (Light Emitting Diode): A type of LCD that uses LED backlighting instead of fluorescent
lights, making it more energy-efficient with better contrast.
3. OLED (Organic Light Emitting Diode): Does not require a backlight. Each pixel emits its own
light, resulting in deeper blacks, higher contrast, and better image quality.
4. Plasma Display: Uses small cells filled with gas that emit ultraviolet light when electrically
charged, which then lights up phosphors to form images. Known for good color accuracy and
wide viewing angles but is less common now.
24. List some relative advantages and disadvantages of CRT and flat-panel monitors.
● CRT Monitors:
○ Advantages: Better color accuracy, fast response time, low cost.
○ Disadvantages: Heavy, large, consume more electricity, take up more space.
● Flat-Panel Monitors:
○ Advantages: Slim, lightweight, energy-efficient, occupy less space, better for modern
setups.
○ Disadvantages: Initially more expensive, may have limited viewing angles (older
models).
1. Printer: Produces text and images on paper. Types include inkjet, laser, and dot-matrix.
2. Plotter: Produces large drawings and graphics like architectural plans and engineering
designs. Works by moving pens over the surface of the paper.
3. Photocopier: Copies documents onto paper using scanning and printing mechanisms.
4. Fax Machine: Sends and receives printed documents over a telephone line.
26. What is a printer? What are the two main types of printers?
A printer is an output device that transfers text and images from a computer onto paper. It provides a
permanent or hardcopy version of digital content. The two main types are:
1. Impact Printers: Work by striking a ribbon against the paper to form characters (e.g.,
dot-matrix printers).
2. Non-Impact Printers: Do not strike the paper; instead, they use laser or inkjet technologies to
form characters.
● Impact Printer: These printers physically strike the paper using a print head and ribbon.
Examples include dot-matrix and daisy wheel printers. They are noisy but durable and capable
of printing multi-part forms.
● Non-Impact Printer: These printers do not physically strike the paper. Instead, they use laser
or inkjet technologies to create images and text. They are quieter and faster with higher print
quality.
29. Differentiate between impact and non-impact printers. Give one example of each.
● Impact Printers:
○ Mechanically strike the paper.
○ Noisy and slow.
○ Can print multi-part forms.
○ Example: Dot-Matrix Printer
● Non-Impact Printers:
○ Use laser or inkjet technology.
○ Quieter and faster.
○ Produce higher quality print.
○ Example: Laser Printer
30. What does a laser printer have over other types of printers?
A plotter is a specialized printer used for printing large-format images such as architectural blueprints,
engineering drawings, and maps. Instead of using dots like regular printers, plotters draw continuous
lines using a pen or other writing tools. Their main use is in fields that require precision and
large-scale graphics, like CAD (Computer-Aided Design).
32. Why do many people find it necessary to use a plotter to output information?
Plotters are essential for professionals who need accurate, high-resolution prints of large diagrams
and graphics. They are especially useful in architecture, engineering, and design because they
produce detailed and scalable outputs that standard printers cannot match. Plotters ensure precision
in measurements and technical details, which is critical in these industries.
Primary storage, also called main memory, is the memory that the computer uses to store data and
instructions that are actively being used. It is volatile, meaning data is lost when the power is turned
off. Examples include RAM (Random Access Memory) and cache memory.
Secondary storage, on the other hand, is non-volatile memory used to store data permanently. It
holds data even when the computer is powered off. Examples include hard drives, SSDs, USB drives,
and CDs. Primary storage is faster but has limited capacity, whereas secondary storage is slower but
has much larger storage capacity.
34. What is secondary storage? How does it differ from primary storage?
Secondary storage refers to storage devices and media that retain data permanently, even when the
computer is turned off. It is used to store large volumes of data that do not need to be accessed
immediately. Examples include hard disks, solid-state drives, CDs, DVDs, and USB flash drives. In
contrast, primary storage is temporary and stores data currently in use. It is faster but smaller in
capacity and loses all stored information once power is turned off. Secondary storage is essential for
keeping files, applications, and the operating system intact between uses.
Secondary storage devices are used to store data permanently. They are not erased when the
computer is turned off. These devices are essential for saving files, programs, and the operating
system. The main types of secondary storage devices are:
A hard disk is a non-volatile storage device that stores data permanently using magnetic storage. It
consists of spinning disks (platters) coated with a magnetic material, and data is read/written using
read/write heads. Hard disks offer large storage capacities and are used to store operating systems,
applications, and user data. They are found in desktops, laptops, and servers.
● Track: A circular path on the surface of a disk where data is magnetically recorded and read.
Each platter has multiple tracks.
● Sector: A subdivision of a track. It is the smallest physical storage unit on a disk and typically
holds 512 bytes of data.
● Cylinder: A set of tracks located at the same position on each platter surface. When all
read/write heads are aligned on the same track number, they form a cylinder.
● Access Time: The amount of time it takes for a computer to retrieve data from memory or
storage. It includes seek time, rotational latency, and data transfer time.
Optical storage devices use lasers to read and write data on discs made of plastic and metal. The
most common types include:
● Advantages:
○ Portable and lightweight
○ Inexpensive to produce
○ Resistant to magnetic fields
● Disadvantages:
○ Slower read/write speeds compared to HDD/SSD
○ Easily scratched or damaged
○ Limited storage capacity
A USB flash drive is a small, portable storage device that uses flash memory and connects to a
computer via a USB port. It is used for transferring and storing data. Flash drives are durable,
rewritable, and can store several gigabytes of data.
42. What is a memory card? Where is it used? A memory card is a small storage device that uses
flash memory. It is used in portable electronic devices such as:
● Mobile phones
● Digital cameras
● Tablets
● Gaming consoles Examples include SD cards, microSD cards, and CompactFlash cards.
Magnetic tape is a storage medium that records data using magnetic patterns on a plastic strip
coated with magnetic material. It is used for data backup and archiving in large organizations due to
its high capacity and low cost.
I/O devices, or Input/Output devices, are hardware components that help the computer system
receive data (input) from the user and deliver information (output) back to the user. These devices
act as a bridge between the user and the computer system.
1. Input Devices:
These are used to enter data and instructions into the computer.
2. Output Devices:
These devices are used to display or produce the output generated by the computer.
3. Input/Output (Both):
● Touchscreen – Accepts touch input and displays output on the same screen.
Storage devices are used to store data, instructions, and information either temporarily or
permanently. They are essential for holding data before, during, and after processing.
This type of storage is directly accessed by the CPU. It stores data temporarily and is essential for
the computer’s functioning.
● RAM (Random Access Memory): Stores data temporarily while the computer is running.
Data is lost when the system is turned off.
● ROM (Read Only Memory): Stores permanent instructions like the system’s boot process.
Data is not lost when power is off.
This storage is used to store data for a long time. It is not directly accessed by the CPU and is used
for backup and archival purposes.
● Hard Disk Drive (HDD): Commonly used for storing the operating system, software, and files.
● Solid State Drive (SSD): Faster and more reliable than HDDs.
Speed Primary Storage Devices are Very On the other hand, the secondary
fast storage devices are Slower
Volatility Primary storage devices are Volatile Secondary storage devices are
(RAM) Non-volatile
Access Primary storage devices are directly Indirect via I/O devices
accessed by the CPU
Software is a set of programs or instructions that tell a computer how to perform specific tasks.
Unlike hardware, software cannot be touched physically. It controls the overall operation of the
computer system and allows users to interact with the hardware.
Types of Software:
1. System Software:
System software helps in managing the hardware components and provides a platform for other
software to run.
● Operating System (OS): Manages hardware and software resources (e.g., Windows, Linux).
● Utility Software: Performs specific tasks like virus scanning, file management, etc.
● Device Drivers: Help the OS communicate with hardware devices like printers or keyboards.
2. Application Software:
● Excel:
● Used for calculations and
Feature System Software Application
data analysis.
Software
Question: What are Storage Devices? Explain the types of storage devices with
examples.
Answer:
Storage Devices are hardware components that are used to store digital data permanently or temporarily.
These devices are essential for storing the operating system, software, and user files such as documents,
videos, and images.
c) Cache Memory:
Cache is a small and very fast memory located close to the CPU. It stores frequently accessed data and
instructions to speed up processing time.
d) Registers:
Registers are the fastest memory units present inside the CPU. They temporarily store data and instructions
currently being executed.
● Smaller in size
● Volatile in nature
2. Secondary Storage
Secondary storage refers to non-volatile memory used for storing data permanently. It retains data even
when the computer is powered off. It is slower but has much larger capacity than primary storage.
e) Memory Cards:
These are small flash memory devices used in mobile phones, digital cameras, and tablets for extra storage.
g) Cloud Storage:
Cloud storage stores data on remote servers that can be accessed via the internet. Popular services include
Google Drive, Dropbox, OneDrive, etc.
● Non-volatile
● Larger capacity
Computer Architecture
Computer architecture plays a crucial role in determining the performance and efficiency of a computer. It is
like the blueprint of a computer that defines how each component works together to process data and execute
instructions.
Block Diagram of a Computer System
A basic computer system consists of four main units: Input Unit, CPU, Memory Unit, and Output Unit. These
components are interconnected and work together to perform tasks.
● It also performs logical operations such as comparing two values, checking conditions (greater than,
less than, equal to), and making decisions based on them.
● Whenever the computer needs to process numbers or logical conditions, the ALU handles the task.
● The Control Unit acts like a traffic controller inside the computer. It manages the execution of
instructions by directing the operations of the ALU, memory, and input/output devices.
● It fetches instructions from memory, decodes them to understand what needs to be done, and then
executes them by sending the correct control signals to other parts of the system.
● The CU does not store any data but is responsible for coordinating and managing all activities in the
computer.
3. Memory Unit:
● The memory unit stores data and instructions that the computer is currently using.
○ Primary Memory (RAM and ROM): Used for fast and temporary storage of active data and
instructions.
○ Secondary Memory (Hard Disk, SSD, etc.): Used for long-term data storage.
● The memory unit supplies data to the CPU whenever it is required and also stores the results of
operations.
Cache Memory
Cache memory is a special type of high-speed memory located very close to the CPU or even inside the
CPU chip itself. It is used to temporarily store frequently accessed data and instructions so that the CPU
can access them quickly without going to the slower main memory (RAM).
Features of Cache Memory:
Q: What is Memory Unit? Explain its types in detail. Also explain RAM and ROM with
their types.
Answer:
The Memory Unit is a part of the computer that stores data, instructions, and results. It is essential for the
computer's operation because it provides space for the CPU to store and retrieve data quickly.
1. Primary Memory
Primary memory is the main memory of a computer that works directly with the CPU. It is fast but limited in
size.
It stores:
Types of RAM:
○ Expensive
Types of ROM:
Answer:
RAM stands for Random Access Memory. It is a type of volatile memory that stores data and programs that
are currently being used. The data in RAM is lost when the computer is turned off.
Answer:
ROM stands for Read Only Memory. It is a non-volatile memory that stores permanent instructions, such
as the BIOS. Data in ROM is not lost even after shutting down the computer.
Answer:
Ports
Ports are the interface points where external devices can be connected to the computer. They allow the CPU
to communicate with input and output devices, such as a keyboard, mouse, printer, and external storage.
Functions of Ports:
Types of Ports:
Answer:
The ALU (Arithmetic Logic Unit) performs all arithmetic operations (like addition and subtraction) and logical
operations (like comparing two values). It executes these operations based on instructions from the control
unit.
Answer:
Memory stores data and instructions required during processing. It also keeps the intermediate results and
final output temporarily or permanently depending on the memory type.
Answer:
● Primary Memory:
○ RAM (temporary)
○ ROM (permanent)
● Secondary Memory:
○ Hard Disk
○ SSD
○ USB Drives
○ CDs/DVDs
Answer:
It is a visual representation showing the basic structure and components of a computer, including Input Unit,
CPU (ALU, CU, Memory), and Output Unit. It helps to understand the working process of a computer.
Answer:
In computers, data representation refers to the method of storing and processing data using numbers,
especially binary numbers (0s and 1s). Since computers are digital, they can only understand binary values.
All types of data—whether text, numbers, images, or audio—are converted into binary so that a computer
can store, process, and transmit them.
Binary 2 0, 1 10101
Decimal 10 0 to 9 250
Octal 8 0 to 7 345
Method:
Example:
Convert 13 to binary:
13 ÷ 2 = 6 → R1
6 ÷ 2 = 3 → R0
3 ÷ 2 = 1 → R1
1 ÷ 2 = 0 → R1
Binary = 1101
Method:
● Multiply each bit by 2 raised to its position (right to left, starting from 0).
Example:
Binary: 1101
= (1×2³) + (1×2²) + (0×2¹) + (1×2⁰)
= 8 + 4 + 0 + 1 = 13
Method:
● Read in reverse.
Example:
Decimal 65
65 ÷ 8 = 8 → R1
8 ÷ 8 = 1 → R0
1 ÷ 8 = 0 → R1
Octal = 101
● Read in reverse.
Example:
Decimal 26
26 ÷ 16 = 1 → R10 (A)
1 ÷ 16 = 0 → R1
Hexadecimal = 1A
5. Binary to Hexadecimal
Method:
Example:
Binary: 10110110
Groups: 1011 (B), 0110 (6)
Hex = B6
Answer:
Data representation means expressing data such as numbers, letters, and symbols in a format that a
computer can understand—mainly using binary numbers (0s and 1s).
Answer:
A number system is a method to represent numbers using a specific base. For example, the binary system
uses base 2 and digits 0 and 1.
Q3: What are the types of number systems?
Answer:
Answer:
18 ÷ 2 = 9 → R0
9 ÷ 2 = 4 → R1
4 ÷ 2 = 2 → R0
2 ÷ 2 = 1 → R0
1 ÷ 2 = 0 → R1
Binary = 10010
Answer:
(1×2³) + (0×2²) + (1×2¹) + (0×2⁰)
= 8 + 0 + 2 + 0 = 10