0% found this document useful (0 votes)
8 views17 pages

Basic Computer

The document provides an overview of computer languages, their types, and the fundamental components of a computer system. It explains the differences between low-level and high-level languages, detailing machine-level, assembly-level, and high-level languages. Additionally, it describes the functional components of a computer, including the CPU, memory types, and storage options, emphasizing their roles in data processing and management.

Uploaded by

poojavijay46445
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views17 pages

Basic Computer

The document provides an overview of computer languages, their types, and the fundamental components of a computer system. It explains the differences between low-level and high-level languages, detailing machine-level, assembly-level, and high-level languages. Additionally, it describes the functional components of a computer, including the CPU, memory types, and storage options, emphasizing their roles in data processing and management.

Uploaded by

poojavijay46445
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Computer Languages and it's Types

A group of instructions that are used to create computer programs are known as computer languages.
The main aim of these languages is to make human-computer interaction possible and [Link] humans
and animals have their ways of communicating with each other. Humans have different languages such
as Hindi, English, Telugu, etc, whereas animals communicate through their sounds and signals. We have
been working on computers for decades now but have you ever wondered how do wecommunicate
with them? Isn't it kind of inquisitive?

Well, computers certainly cannot understand human languages so we cannot directly communicate with
them. Hence, with time, we developed several languages which help us to convey our messages to
computers and make them do our work. In this article, we have discussed all these computer languages
and their types.

What are Computer Languages

A group of instructions that are used to create computer programs is known as a computer language.
The main aim of these languages is to make human-computer interaction possible and easy. We,
humans, have invented these computer languages to make our work easier by making our tasks done by
the computer.

Types of Computer Languages

In this section, we will be learning about the types of Computer languages. There Xe mainly 4 different
types of machine languages that are known to us, and the same have been discussed below for your
reference.

 Low-level computer language


 Machine-level language
 Assembly-level language
 High-level languages

Low-Level Language
A Low-level computer language consists of only 1's and 0's. First and second-generation computers were
first built using this language.

This type of language is easily understood by a computer, but it is very difficult for humans to
understand this. These Low-level languages are specifically designed to interact with the computer
hardware and are categorized into two types- machine-level language and assembly-level language.

Machine-Level Language
Machine-level language is a type of Low-level language. This language is believed to be the oldest
computer language. Computers tend to understand only the language of Digital X Electronics, which
deals with the presence and absence of voltages. 2 logics can play their role within the computer, which
are-

Positive Logic: In this, the presence of

voltage is denoted by 1, and the absence of voltage is denoted by 0.

Negative Logic: Here, the presence of

voltage is denoted by 0 while the absence of voltage is denoted by 1.

Computers can follow one of the logics at a time and not both simultaneously. A program can be written
using only Os and 1s to make the computer understand, and data can also be represented using only Os
and 1s. Such a program is called a Machine Language program. A computer can directly understand a
program written in machine language; hence, a machine language program does not require any
translator to convert from one form to another.

Assembly Level Language


Assembly-level language was introduced with the advancement of machine-level [Link]
computer language uses symbols, which are popularly known as mnemonics in computer terminology,
to write the instructions. Hence, writing a program in Assembly Level Language is more understandable
to humans rather than machine-level language. In this language, symbolic names are used to denote
addresses and data. The Assembly language code gets converted into Machine language code with the
help of an Assembler for the computer to understand the binary-converted Assembly Language.

High-Level Language
High-level languages are the advanced development languages in the evolution of computer languages.
The main goal of these X languages is to make programming easier and less error-free. These high-level
languages use words and commands along with symbols andnumbers. High-level programming
languages are created to be more user-friendly and easier for humans to understand than Low-level
languages. They use keywords similar to English words, making coding more intuitive. Here are some
examples of High-Level Programming languages are-

 C
 C++
 Java
 Java Script
 Python
 C#
 PHP
 X
Difference between High-Level and Low-Level Language
High-level languages and low-level languages are different from each other in many aspects.

High-level languages are human-friendly, whereas low-level languages are programmer-friendly. High-
level languages take longer to execute programs, while program execution time is less in low-level
languages. Some more differences between the two languages have been tabulated below.

Block Diagram of Computer: Explained with Components


A block diagram of a computer shows its main parts and how they work together. It makes it easy to
understand how data moves between the CPU, memory, input/output devices, and storage.

The components in a block diagram of a computer typically include:

Input Unit – Devices like a keyboard and a mouse that send data to the computer.

Central Processing Unit (CPU) – The brain that processes data, including:
Arithmetic Logic Unit (ALU) – Performs calculations and logical operations.

Control Unit (CU) – Manages data flow and instructions.

Memory Unit – Stores data and instructions, including:

Primary Memory (RAM) – Temporary storage for active processes.

Secondary Memory (HDD/SSD) – Permanent storage for data.

Output Unit – Devices like monitors and printers that display or produce results.

Functional Components of Computer


The functional components of a computer are the key parts that work together to process and manage
data. These include the Input Unit for receiving data, the CPU for processing it, the Memory Unit for
storing information, the Output Unit for displaying results, and the Bus System that connects all parts.
These components help the computer perform tasks efficiently.

1. Input Unit
Purpose: Captures data and instructions from users or external sources.

Function: Converts user input into binary signals that the computer can process.

Common Devices (2025):

Keyboard, Mouse, Touchscreens


Scanners, Sensors, Stylus pens

Voice Assistants (e.g., Siri, Alexa)

Biometric devices (face/fingerprint recognition)

Iot-based inputs from smart devices

2. Central Processing Unit (CPU) – The Brain of the Computer


The CPU executes instructions and controls all internal operations. In 2025, CPUs will often have
multiple cores and threads to handle parallel processing efficiently.

Components of CPU:

a. Arithmetic Logic Unit (ALU)

Performs arithmetic operations (add, subtract, multiply, divide).

Handles logical operations (comparison, decision-making).

Supports AI/ML tasks using built-in vector/matrix operations (in modern CPUs).

b. Control Unit (CU)

Directs the operations of all computer parts.

Decodes instructions and coordinates data flow.

Sends control signals to memory and I/O devices.

c. Registers

High-speed memory locations within the CPU.

Temporarily store instructions, addresses, and intermediate data.

Examples: Accumulator, Instruction Register, Program Counter, Address Register.

Modern CPUs include 64-bit or even 128-bit registers for faster processing.

3. Memory / Storage Unit


The memory unit holds data and instructions before, during, and after processing.

a. Primary Memory (Main Memory):

RAM (Random Access Memory): Temporarily stores data during execution.


Types in 2025: DDR5, LPDDR5X, and emerging MRAM.

ROM (Read-Only Memory): Stores boot-up instructions and firmware.

Cache Memory: Ultra-fast memory between CPU and RAM (L1, L2, L3 levels).

b. Secondary Storage:

Used for long-term data storage.

Examples: SSDs (NVMe drives), HDDs, flash drives, and cloud storage.

Modern Trend: Use of Cloud Integration and hybrid storage models.

4. Output Unit
Purpose: Converts processed data (binary) into a form users can understand.

Examples:

 Visual: Monitors (LED, OLED, 4K/8K displays)


 Print: Printers (Inkjet, Laser, 3D Printers)
 Audio: Speakers, Headphones
 Haptic: Vibration feedback devices

Emerging Tech: AR/VR headsets, voice-based output, Braille displays for accessibility

What is the Processor in a Computer?


The processor or CPU is the brain of your computer. It performs program tasks, calculates data from
input, and manages and coordinates other parts like memory, devices connected to the computer, and
what shows up on the screen.

Components of CPU

[Link] or Storage Unit

[Link] Unit

[Link](Arithmetic Logic Unit)


CPU Operations

 Fetch: The processor usually gets instructions from RAM.


 Decode: A decoder translates an instruction into signals that the computer's other parts can
use.
 Execute: Each component receives the now-decoded instructions.
 Store: After the execute step the instructions are ready to store in the memory.

Types of Processors

Single Core Processors: The oldest type of computer CPUs is single core CPU. These CPUs were used in
the 1970s. these CPUs only have a single core that preform different operations. This means that the
single core CPU can only process one operation at a single time. single core CPU is not suitable for
multitasking.

Dual-Core Processors: Dual-Core CPUs contain a single Integrated Circuit with two cores. Each core
has its cache and controller. These controllers and cache are work as a single unit. dual core CPUs can
work faster than the single-core processors.

Quad-Core Processors: Quad-Core CPUs contain two dual-core processors present within a single
integrated circuit (IC) or chip. A quad-core processor contains a chip with four independent cores. These
cores read and execute various instructions provided by the CPU. Quad Core CPU increases the overall
speed for programs. Without even boosting the overall clock speed it results in higher performance.
Computer Memory
Memory is the electronic storage space where a computer keeps the instructions and data it needs to
access quickly. It's the place where information is stored for immediate use. Memory is an important
component of a computer, as without it, the system wouldn’t operate correctly. The computer’s
operating system (OS), hardware, and software all rely on memory to function properly.

Computer memory functions similarly to the human brain, storing data, information, and instructions. It
acts as a storage unit or device where data to be processed and the instructions necessary for
processing are kept. Both input and output data can be stored in memory.

Types of Computer Memory


In general, computer memory is divided into three types:

[Link] memory

[Link] memory

[Link] memory

[Link]
Now we discuss each type of memory one by one in detail:

1. Primary Memory
It is also known as the main memory of the computer system. It is used to store data and programs, or
instructions during computer operations. It uses semiconductor technology and hence is commonly
called semiconductor memory. Primary memory is of two types:

RAM (Random Access Memory):

It is a volatile memory. Volatile memory stores information based on the power supply. If the power
supply fails/ interrupted/stopped, all the data and information on this memory will be lost. RAM is
used for booting up or starting the computer. It temporarily stores programs/data which has to be
executed by the processor. RAM is of two types:

S RAM (Static RAM):S RAM uses transistors and the circuits of this memory are capable of retaining
their state as long as the power is applied. This memory consists of the number of flip flops with
each flip flop storing 1 bit. It has less access time and hence, it is faster.

D RAM (Dynamic RAM):D RAM uses capacitors and transistors and stores the data as a charge on
the capacitors. They contain thousands of memory cells. It needs refreshing of charge on capacitor
after a few milliseconds. This memory is slower than S RAM.

ROM (Read Only Memory):

It is a non-volatile memory. Non-volatile memory stores information even when there is a power
supply failed/ interrupted/stopped. ROM is used to store information that is used to operate the
system. As its name refers to read-only memory, we can only read the programs and data that are
stored on it. It contains some electronic fuses that can be programmed for a piece of specific
information. The information is stored in the ROM in binary format. It is also known as permanent
memory. ROM is of four types:

MROM(Masked ROM): Hard-wired devices with a pre-programmed collection of data or


instructions were the first ROMs. Masked ROMs are a type of low-cost ROM that works in this way.

PROM (Programmable Read Only Memory): This read-only memory is modifiable once by the
user. The user purchases a blank PROM and uses a PROM program to put the required contents into
the PROM. Its content can't be erased once written.

EPROM (Erasable Programmable Read Only Memory):EPROM is an extension to PROM where


you can erase the content of ROM by exposing it to Ultraviolet rays for nearly 40 minutes.

EEPROM (Electrically Erasable Programmable Read Only Memory): Here the written
contents can be erased electrically. You can delete and reprogram EEPROM up to 10,000 times.
Erasing and programming take very little time, i.e., nearly 4 -10 ms(milliseconds). Any area in an
EEPROM can be wiped and programmed selectively.

2. Secondary Memory
It is also known as auxiliary memory and backup memory. It is a non-volatile memory and used to store
a large amount of data or information. The data or information stored in secondary memory is
permanent, and it is slower than primary memory. A CPU cannot access secondary memory directly. The
data/information from the auxiliary memory is first transferred to the main memory, and then the CPU
can access it.

Types of Secondary Memory

1. Magnetic Tapes: Magnetic tape is a long, narrow strip of plastic film with a thin, magnetic coating on
it that is used for magnetic recording. Bits are recorded on tape as magnetic patches called RECORDS
that run along many tracks. Typically, 7 or 9 bits are recorded concurrently. Each track has one
read/write head, which allows data to be recorded and read as a sequence of characters. It can be
stopped, started moving forward or backwards or rewound.

2. Magnetic Disks: A magnetic disk is a circular metal or a plastic plate and these plates are coated with
magnetic material. The disc is used on both sides. Bits are stored in magnetized surfaces in locations
called tracks that run in concentric rings. Sectors are typically used to break tracks into pieces.

Hard discs are discs that are permanently attached and cannot be removed by a single user.

3. Optical Disks: It's a laser-based storage medium that can be written to and read. It is reasonably
priced and has a long lifespan. The optical disc can be taken out of the computer by occasional users.

Types of Optical Disks


CD - ROM

 It's called a compact disk. Only read from memory.


 Information is written to the disc by using a controlled laser beam to burn pits on the disc
surface.
 It has a highly reflecting surface, which is usually aluminium.
 The diameter of the disc is 5.25 inches.
 16000 tracks per inch is the track density.
 The capacity of a CD-ROM is 600 MB, with each sector storing 2048 bytes of data.
 The data transfer rate is about 4800KB/sec. & the new access time is around 80 milliseconds.

WORM-(WRITE ONCE READ MANY)

 A user can only write data once.


 The information is written on the disc using a laser beam.
 It is possible to read the written data as many times as desired.
 They keep lasting records of information but access time is high.
 It is possible to rewrite updated or new data to another part of the disc.
 Data that has already been written cannot be changed.
 Usual size - 5.25 inch or 3.5 inch diameter.
 The usual capacity of a 5.25-inch disk is 650 MB,5.2GB etc.

DVDs

The term "DVD" stands for "Digital Versatile/Video Disc," and there are two sorts of DVDs:

DVDR (writable)

DVDRW (Re-Writable)

DVD-ROMS (Digital Versatile Discs): These are read-only memory (ROM) discs that can be used in a
variety of ways. When compared to CD-ROMs, they can store a lot more data. It has a thick
polycarbonate plastic layer that serves as a foundation for the other layers. It's an optical memory that
can read and write data.

DVD-R: DVD-R is a writable optical disc that can be used just once. It's a DVD that can be recorded. It's a
lot like WORM. DVD-ROMs have capacities ranging from 4.7 to 17 GB. The capacity of 3.5 inch disk is 1.3
GB.

Hard Disk Drive (HDD): Magnetic storage device used for long-term data storage. It is slower than SSD
but offers large capacity.

USB Flash Drive: Portable storage device using flash memory, widely used for transferring and storing
data.
3. Cache Memory
Cache Memory is a type of high-speed semiconductor memory that can help the CPU run faster.
Between the CPU and the main memory, it serves as a buffer. It is used to store the data and programs
that the CPU uses the most frequently.

Advantages of Cache Memory

 It is faster than the main memory.


 When compared to the main memory, it takes less time to access it.
 It keeps the programs that can be run in a short amount of time.
 It stores data for temporary use.

Disadvantages of Cache Memory

 Because of the semiconductors used, it is very expensive.


 The size of the cache (amount of data it can store) is usually small.
Computer memory is important for storing and processing data in a computer. Data is stored in the form
of bits and bytes. As the amount of data grows, it's important to understand how larger units like
kilobytes, megabytes, and gigabytes are used to store and manage bigger files. Understanding file sizes
makes it easier to organize and manage data.

Difference between primary and secondary memory


[Link] Memory
Register memory is a type of computer memory that consists of a small set of storage locations within
the central processing unit (CPU) itself. These storage locations, known as registers, are used to store
data temporarily during the execution of a program. More and bigger registers allow faster CPU
operation. Different register types like accumulators, data registers, and address registers serve
different purposes for the CPU.

Registers are small storage areas in CPU. Registers are typically the fastest type of memory in a
computer system, offering very fast access times compared to other types of memory like RAM
(Random Access Memory) or disk storage. So, the CPU uses registers to hold the most important small
pieces of data and instructions it needs right away. This allows the CPU to work quickly without having
to wait for data from the slower main memory. All data must go through registers before the CPU can
process it. Registers hold a very small amount of data, typically between 32 and 64 bits (Small
information units). The speed of the CPU depends on how many registers it has and how big they are.
More and bigger registers allow the CPU to work faster.

Architecture of Register Memory

This architecture works by following instructions that tell the CPU what operations to do on the
registers and memory. It's called a "register plus memory" architecture when all the data
needed for an operation is already in the registers.
An operation can use two pieces of data: one from memory and one from a register. Or, both
pieces of data can be in registers or in memory. This is different from other architectures.

Examples of this type of architecture are Intel x86 and IBM System/360 computers.

The CPU has a small number of registers, and they are tiny in size, less than 64 bits. Registers
are faster than disk memory and main memory (RAM). The size of the general-purpose registers
affects how much data the CPU can work with at once.

The computer has instructions that identify which register to use by a number or address, like
R0, R1, R7, SP, and PC. Registers act as a link between the program and the computer's data
storage.

Types and Functions of Computer Registers


1. Data Register

The data register is a 16 bit register it used to temporarily store the operands (variables) that
need to be operated on by the processor. It acts as a temporary holding area for the data that
being transmitted to or received from the peripheral devices like the printers or keyboards.

2. Program Counter (PC) Register


The program counter (PC) register holds the memory address of a next instruction that needs to
be fetched and then executed after the current instruction completes. Its role is to maintain the
proper sequence of the path for the executing different program instructions one by one.

3. Instruction Register

The instruction register is another 16-bit register that stores the current instruction code that
has been fetched from the main memory. The control unit takes this instruction from the
register, decodes what operation it is, and executes it accordingly.

4. Accumulator (AC) Register

The accumulator (AC) register, 16 bits in size, is used to store the result produced by the CPU
after carrying out arithmetic or logical operations. Any final output data generated by the
system is stored here.

5. Address Register

The address register is a 12-bit register that stores the specific address location in the memory
where a particular instruction or data is residing. The CPU uses this address to fetch or store
instructions/data from/to the memory.

6. I/O Address Register

The I/O address register specifies the unique address associated with a particular input/output
device that the CPU wants to communicate or interact with, such as a mouse, printer, etc.

7. I/O Buffer Register

The I/O buffer register acts as a temporary buffer to exchange or hold data that is being
transferred between an I/O module (like a USB port) and the CPU before or after processing.

[Link] Buffer Register (MBR)

Temporarily holds data being transferred to/from memory. Contents of MBR are directly
connected to the data bus.

Acts as a buffer between CPU and memory.

You might also like