Computer Architecture
Computer Architecture
A computer is an electronic device that can process data and produce results. It
together to perform tasks and deliver the desired output. Computer systems can
take various forms and sizes, including servers, desktop computers, laptops,
tablets, and smart phones. The flow of data and signals between the components
The central processing unit (CPU) is the electronic circuitry in a computer that
performs the actual processing tasks. It is often referred to as the brain of the
computer and can be thought of as the computer's processor. The CPU is typically
composed of one or more microchips called integrated circuits (ICs). These ICs are
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 1
Computer Architecture BPSC PGT CS
computer. It receives instructions and data from programs and retrieves them
from memory. The CPU then performs arithmetic and logic operations based on
During processing, the CPU uses its internal memory called registers to store data,
instructions, and intermediate results. Registers are small and limited in size and
The CPU consists of two main components: the Arithmetic Logic Unit (ALU) and
the Control Unit (CU). The ALU carries out arithmetic and logic operations
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 2
Computer Architecture BPSC PGT CS
Input Devices
Input devices are used to send control signals or input data to a computer. These
devices convert the input data into a digital format that can be understood by the
touch screens, and Braille keyboards for visually impaired individuals. Additionally,
voice input has become possible, such as using Google voice search to enter search
computer's main memory, also known as RAM. However, for permanent storage
and future use, both data and instructions are stored in additional storage
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 3
Computer Architecture BPSC PGT CS
Output Devices
Output devices receive data from a computer system and present it in a human-
understandable form. These devices convert digital information into various forms,
display monitor is specifically designed for visually impaired individuals to read the
Inkjet, LaserJet, and dot matrix printers are the three main types of printers
used. Additionally, there is a new type of printer called a 3D printer, which can
manufacturing industries for prototyping products, and they are also being
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 4
Computer Architecture BPSC PGT CS
Evolution of Computer
Computing devices have evolved significantly over a relatively short period of time.
devices shows their progression. The Von Neumann architecture, depicted in Figure
consists of a CPU for processing instructions, memory for storing data and
The ENIAC, based on the Von Neumann architecture, was the first binary
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 5
Computer Architecture BPSC PGT CS
microchip. In the 1980s, Very Large Scale Integration (VLSI) allowed for the
IBM introduced the first personal computer (PC) for home users in 1981, followed
replacing command-line interfaces. The growth of the World Wide Web (WWW) in
the 1990s further accelerated the widespread use of computers, making them an
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 6
Computer Architecture BPSC PGT CS
Portable computing was made possible with the introduction of laptops, and later
smartphones, tablets, and other personal digital assistants. These devices benefited
connectivity mechanisms.
smart lenses, headbands, headphones, and smart appliances that are part of the
Internet of Things (IoT). These devices leverage the power of Artificial Intelligence
Computer Memory
A computer system requires memory to store data and instructions for processing.
The main or primary memory is used for this purpose, while secondary memory
Memory units in a computer system use binary numbers. The basic units of
memory are called bits (0 and 1). Bits are grouped together to form words, with
Bytes are further grouped to form larger units of memory. Different measurement
units for digital data stored in storage devices are shown in Table.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 7
Computer Architecture BPSC PGT CS
Primary Memory
Primary memory is crucial and is where programs and data are loaded before
processing.
It is divided into Random Access Memory (RAM) and Read Only Memory (ROM).
RAM is volatile and retains data only while the computer is powered on. It is
faster and used for temporary data storage during computer operation.
ROM is non-volatile and retains its contents even when the power is off. It is used
for storing permanent data that rarely changes, such as the startup program
(boot loader).
Cache Memory
Cache memory is a very high-speed memory placed between the CPU and
primary memory.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 8
Computer Architecture BPSC PGT CS
It stores copies of frequently accessed data, reducing the time required to access
Secondary Memory
It is slower and cheaper than primary memory but cannot be directly accessed by
the CPU.
Data from secondary memory needs to be brought into primary memory before
CDs/DVDs, memory cards, and solid-state drives (SSD) which offer faster data
transfer speeds.
Portable storage devices like flash drives have made data transfer between
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 9
Computer Architecture BPSC PGT CS
In a computer system, the transfer of data between the CPU and different types
of memory is crucial for efficient operation. This section explores the mechanisms
involved in this data transfer process.
Together, these three buses form the system bus, creating the necessary pathways
for data transfer.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 10
Computer Architecture BPSC PGT CS
Address Specification: The CPU places the memory address it wants to access on
the address bus. This address indicates the specific location in the main memory.
Control Signal: The CPU sends control signals through the control bus to specify
whether it intends to read data from or write data to the specified memory
address.
Data Transfer: To write data into memory, the CPU places the data on the
bidirectional data bus. The data is then written to the specified address in the
main memory. In the case of a read operation, the CPU specifies the address, and
the memory controller, a dedicated hardware component, retrieves the data from
the main memory and places it on the data bus.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 11
Computer Architecture BPSC PGT CS
The memory controller manages the flow of data between the CPU and the main
memory, ensuring efficient data transfer.
Microprocessors
Microprocessors are the small electronic components inside computers that have
transformed the way we compute. Here's what you need to know:
Size Revolution: In the past, CPUs took up entire rooms or cabinets. But thanks to
technology advancements, CPUs can now fit onto a single microchip, known as a
microprocessor. Nowadays, almost all CPUs are microprocessors.
Powerful Performers: Microprocessors are tiny powerhouses that handle tasks like
data processing, arithmetic operations, and logic operations. They are made up of
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 12
Computer Architecture BPSC PGT CS
millions of components like resistors, transistors, and diodes, all packed into
integrated circuits.
Evolving Excellence: Over time, microprocessors have become faster, smaller, and
more affordable. Modern microprocessors can process millions of instructions in a
fraction of a second, supercharging our computers.
Microprocessor Specifications
(A) Word Size: Word size represents the maximum number of bits a
microprocessor can handle at once. It used to be 8 bits in the past, but now ranges
from a minimum of 16 bits to a maximum of 64 bits.
(B) Memory Size: The word size affects the RAM capacity. Smaller word sizes
limited RAM to 4MB, but with larger word sizes like 64 bits, RAM can reach sizes
up to a whopping 16 exabytes (EB).
(C) Clock Speed: Clock speed refers to the speed at which a microprocessor
executes instructions. It's measured in gigahertz (GHz), representing billions of
pulses per second, and determines how fast a computer can process tasks.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 13
Computer Architecture BPSC PGT CS
(D) Cores: Cores are the computation units of a CPU. Older processors had only
one core, capable of handling one task at a time. Nowadays, multicore processors
with two, four, or even eight cores enable simultaneous execution of multiple tasks,
boosting system performance.
Microcontrollers
Microcontrollers are compact computing devices that contain a CPU, a fixed
amount of RAM, ROM, and other peripherals, all integrated onto a single chip. In
contrast to microprocessors, which only have a CPU on the chip, microcontrollers
provide a complete system on a chip. Figure 1.9 illustrates the structure of a
microcontroller.
Microcontrollers find application in various devices such as keyboards, mice,
washing machines, digital cameras, pen drives, remote controllers, and
microwaves. These devices are designed for specific tasks, resulting in reduced size
and cost. Due to their small size, microcontrollers are embedded within other
devices or systems to perform specific functions.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 14
Computer Architecture BPSC PGT CS
water filling, followed by soaking and washing of clothes. Subsequently, the water
is drained, and the clothes undergo spin drying. By utilizing a microcontroller,
repetitive and mundane tasks can be executed automatically, saving valuable time
and eliminating the need for human involvement.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 15
Computer Architecture BPSC PGT CS
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 16
Computer Architecture BPSC PGT CS
Understanding the different types of data is essential for effective data processing
and deriving meaningful information from it.
(A) Data Capturing: Data capturing involves gathering data from different sources
in a digital format. This process can vary depending on the source of data. It may
involve simple instruments like keyboards, barcode readers (used at shopping
outlets), social media comments or posts, remote sensors on satellites, and more.
Sometimes, capturing data from heterogeneous sources can be complex.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 17
Computer Architecture BPSC PGT CS
(B) Data Storage: Data storage is the process of storing the captured data for
future processing. With the increasing rate of data production, data storage has
become a challenging task. However, the cost of digital storage devices has
decreased, making it easier to store large amounts of data. There are various
digital storage devices available in the market. As data keeps increasing, storage
devices need to be upgraded periodically. In large organizations, dedicated
computers called data servers are deployed to efficiently store vast amounts of
data. However, setting up and maintaining a data server can be costly, especially
for small organizations and startups.
(C) Data Retrieval: Data retrieval involves fetching data from storage devices for
processing according to user requirements. As databases grow, the challenges
associated with searching and retrieving data within an acceptable time frame
also increase. Minimizing data access time is crucial for faster data processing.
One of the significant concerns with digital data is the risk of deletion. Storage
devices can malfunction, resulting in data loss. Users may accidentally erase data,
or it can be intentionally deleted by hackers or malware. When data is deleted, its
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 18
Computer Architecture BPSC PGT CS
address entry is marked as free, and the space is shown as empty to the user
without actually deleting the data at the bit level.
In cases of accidental deletion or data corruption, data recovery becomes
necessary. Data recovery is only possible if the memory space marked as deleted
has not been overwritten by other data. It involves retrieving deleted, corrupted,
and lost data from secondary storage devices.
Data security concerns include unauthorized deletion and unwanted recovery of
data. Limiting access to computer systems, using passwords for user accounts and
files, and encrypting files can help protect against unauthorized deletion. Proper
data deletion or shredding tools should be used before disposing of old or faulty
storage devices to prevent unauthorized data recovery and ensure data
confidentiality.
Understanding the processes of data capturing, storage, retrieval, deletion, and
recovery is crucial for effectively managing and protecting digital data.
Software
In addition to the hardware components we have learned about, there is another
important component of a computer system called software. Unlike hardware,
software cannot be physically touched or seen. It consists of instructions and data
that are used to operate the computer hardware effectively. Software and
hardware work together to complete tasks.
Software is a collection of instructions that, when executed, produce the desired
outcome. Each software is designed for a specific computational purpose. Examples
of software include operating systems like Ubuntu or Windows 7/10, word
processing tools like LibreOffice or Microsoft Word, video players like VLC Player,
and photo editors like GIMP and LibreOffice Draw. When a document or image is
stored on a hard disk or pen drive, it is called a soft-copy. Once printed, it
becomes a hard-copy.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 19
Computer Architecture BPSC PGT CS
Need of Software
The main purpose of software is to make computer hardware useful and
operational. Software knows how to make different hardware components of a
computer work and communicate with each other and with the end-user. We
cannot directly instruct the hardware of a computer. Software acts as an
interface between human users and the hardware.
Software can be broadly classified into three categories based on the mode of
interaction with hardware and the functions it performs: (i) System software, (ii)
Programming tools, and (iii) Application software.
System Software
System software provides the basic functionality to operate a computer by directly
interacting with its hardware components. It knows how to operate and utilize
different hardware components of a computer. System software provides services
directly to the end-user or to other software programs.
Operating System: The operating system is a fundamental system software that
operates the computer. It manages other application programs and provides access
and security to system users. Popular operating systems include Windows, Linux,
Macintosh, Ubuntu, Fedora, Android, iOS, etc.
System Utilities: System utilities are software used for the maintenance and
configuration of the computer system. Some system utilities come bundled with
the operating system, such as disk defragmentation tools, formatting utilities, and
system restore utilities. Others are external utilities required to enhance system
performance, such as antivirus software, disk cleaner tools, and disk compression
software.
Device Drivers: Device drivers ensure the proper functioning of specific devices in a
computer system. Although the operating system manages the overall workings of
the computer system, new devices and components are constantly being added.
The operating system alone cannot handle all existing and new devices, each with
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 20
Computer Architecture BPSC PGT CS
different characteristics. Device drivers act as interfaces between devices and the
operating system. They provide necessary services by hiding the hardware-level
operations of the devices. Similar to a language translator, a device driver
mediates between the operating system and the attached device.
The categorization of software is illustrated in Figure
Programming Tools
To accomplish tasks with a computer, we need to provide instructions that
manipulate input data to produce the desired outcome. However, humans and
computers understand different languages. While humans can write programs in
high-level languages, computers understand machine language. Therefore,
translators are required to convert high-level languages to machine language.
Additionally, code editors (e.g., IDLE in Python) are necessary for writing
instructions. Let's briefly discuss programming languages, language translators,
and program development tools.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 21
Computer Architecture BPSC PGT CS
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 22
Computer Architecture BPSC PGT CS
B) Language Translators
Since computers understand only machine language, translators are needed to
convert code written in assembly or high-level language into machine language.
The code written in assembly or high-level language is called source code.
Translators convert the source code into machine-understandable form, known as
object (machine) code.
Different types of translators are used depending on the computer language. The
three types of translators commonly used are as follows:
1. Assembler: Translates code written in assembly language to machine
language. Each assembler understands a specific microprocessor instruction
set, making the resulting machine code non-portable.
2. Compiler: Converts high-level language source code into machine code. If the
code follows the syntactic rules of the language, it is executed by the
computer. Once translated, the compiler is not needed for execution.
3. Interpreter: Translates and executes one line of code at a time instead of the
entire program at once. The interpreter checks the syntax of each line,
converts it into executable code, and repeats these steps for all lines in the
source code. An interpreter is required whenever the source code needs to be
executed.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 23
Computer Architecture BPSC PGT CS
Application Software
While system software provides the core functionality of a computer system,
application software caters to specific user requirements and is built on top of the
system software. There are two main categories of application software: general-
purpose software and customized software.
A) General-Purpose Software
General-purpose software is developed for generic applications and is designed to
serve a broad audience. End users can utilize ready-made application software
according to their requirements. Examples of general-purpose software include
spreadsheet tools like Calc in LibreOffice, Adobe Photoshop, GIMP, Mozilla web
browser, and iTunes.
B) Customized Software
Customized software, also known as tailor-made software, is developed to meet
the specific requirements of an organization or an individual. It is designed to suit
the unique needs of the user, considering factors like functionality, workflow, and
user interface. Examples of customized software include websites, school
management software, accounting software, etc. It is similar to buying a piece of
cloth and getting a tailor-made garment with the fitting, color, and fabric of our
choice.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 24
Computer Architecture BPSC PGT CS
Proprietary software, on the other hand, requires purchasing from the vendor
who holds the copyright. Examples of proprietary software include Microsoft
Windows, Tally, Quickheal, etc. The categorization of software as freeware, open
source, or proprietary depends on the terms and conditions set by the developers.
Operating System
An operating system (OS) serves as a resource manager, overseeing the computer's
hardware, software, and user interactions. It manages resources such as the CPU,
RAM, disk, network, and input/output devices. The primary objectives of an
operating system are to provide services for building and running application
programs and to offer an interface for user interaction.
When an application program needs to be executed, the operating system loads it
into memory and allocates it to the CPU for processing. The operating system
determines the execution order for multiple programs. It also provides an interface
through which users can interact with the computer. Popular examples of
operating systems include Windows, Linux, Android, Macintosh, etc.
OS User Interface
The user interface (UI) of an operating system provides the means for users to
interact with the computer system. There are several types of user interfaces
commonly used:
A) Command-based Interface: In a command-based interface, users enter specific
commands to perform tasks such as creating, opening, editing, or deleting files.
Users need to remember the names of the programs or commands supported by
the operating system. The primary input device for command-based interfaces is
the keyboard. Examples of operating systems with command-based interfaces
include MS-DOS and Unix.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 25
Computer Architecture BPSC PGT CS
B) Graphical User Interface (GUI): GUI allows users to run programs and give
instructions to the computer through icons, menus, and visual options. Icons
represent files and programs, while windows represent running programs
launched through the operating system. GUIs enable interaction using both the
mouse and keyboard. Examples of operating systems with GUI interfaces include
Microsoft Windows, Ubuntu, Fedora, and Macintosh.
C) Touch-based Interface: Touch-based interfaces are used in smartphones, tablets,
and touchscreen PCs. Users interact with the system by directly touching the
screen, performing actions such as opening apps, closing apps, scrolling, etc.
Examples of operating systems with touch-based interfaces include Android and
iOS. Windows 8.1 and 10 also support touch-based interfaces on touchscreen
devices.
D) Voice-based Interface: Voice-based interfaces allow users to interact with
computers or smartphones using voice commands. Users can give commands to
the operating system, such as opening apps or performing specific tasks, using
their voice. Examples of operating systems that provide voice-based control include
iOS (Siri), Android (Google Now or "OK Google"), and Microsoft Windows 10
(Cortana).
E) Gesture-based Interface: Gesture-based interfaces enable users to interact with
devices using gestures such as waving, tilting, eye motion, and shaking. This
technology is evolving rapidly and has potential applications in gaming, medicine,
and other areas. Some smartphones based on Android and iOS, as well as certain
laptops, support gesture-based interactions.
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 26
Computer Architecture BPSC PGT CS
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 27
Computer Architecture BPSC PGT CS
For All Govt. Exams Previous Year Papers | Visit Us: www.previousyearquestions.com 28