CH 1 (Computer System)
CH 1 (Computer System)
COMPUTER SYSTEM
1 What is a Computer? What are its characteristics?
Ans A computer is an electronic device which inputs data or instructions, stores and processes it and
produces output in the desired form.
The main characteristics of a computer are:
1)Speed:
Computers can process data at an extremely fast rate.
2) High Storage Capacity:
Computer can store large amount of information in very small space.
3) Accuracy:
It can perform all the calculations accurately.
4) Reliability:
Computers are immune to tiredness.
5) Versatility:
Computers can perform repetitive jobs efficiently.
2 Briefly explain the basic Components of a Computer?
Ans A computer system primarily comprises a central processing unit (CPU), memory, input/output
devices and storage devices. All these components function together as a single unit to deliver the
desired output.
1.)Holds data and instructions as well as 1.)This is a permanent memory. It can store large
intermediate output while processing. This volume of information permanently.
is temporary in nature.
2.)It is not directly accessible by the CPU.
2.)It is directly accessible to the CPU.
3.)The size of the Secondary memory is in the
3.)It has limited capacity. range of GB.
4.) It has more sped and high cost. 4.)Compared to primary memory, the secondary
memory has less speed and less cost.
11 Write the parts of main memory.
Ans Main Memory is divided into two types-
–RAM (Random Access Memory)
–ROM (Read Only Memory)
The memory which is in direct contact of CPU is known as primary memory. RAM and ROM both
remains in direct contact of CPU.
12 How many parts of Primary memory are there? Differentiate them.
Ans RAM ROM
13 What is the meaning of volatile Primary Memory? What can be done to overcome the problems of
volatility?
Ans Volatile Primary memory refers to the temporary storage nature of the primary memory. The contents
are erased if the power supply fails.
To overcome the problem of volatility, secondary memory is used along with primary memory.
14 Write short note on Read Only Memory(ROM).
Ans As its name implies, this memory is only for read operations.
•It is programmed at the time of hardware setting and whatever we store in this memory cannot
change later.
•ROM is to be used in the situations when we know that information needs not to be changed in
future.
15 What is a Software?
Ans The set of instructions needed for hardware to be operated is known as software.
16 What are the Software classifications?
Software can be broadly classified into three categories
(i) System software
(ii) Programming tools and Language Translators
(iii) Application software
17 What is System Software? Give example
Ans The software that provides the basic functionality to operate a computer by interacting directly with
its constituent hardware is termed as system software.
Examples of System software include operating system , system utilities , device drivers etc
18 Define the following
1.Operating System:
The operating system is a system software that operates the computer. It acts as an interface between
a user and the hardware. An operating system is the most basic system software, without which other
software cannot work. The operating system manages other application programs and provides access
and security to the users of the system. Some of the popular operating systems are Windows, Linux,
Macintosh, Ubuntu, Fedora, Android, iOS, etc.
2. System Utilities:
Software used for maintenance and configuration of the computer system is called system utility.
Some system utilities are shipped with the operating system for example disk defragmentation tool,
formatting utility, system restore utility, etc. Another set of utilities are those which are not shipped
with the operating system but are required to improve the performance of the system, for example,
anti-virus software, disk cleaner tool, disk compression software, etc.
3. Device Drivers:
The purpose of a device driver is to ensure proper functioning of a particular device. When it comes
to the overall working of a computer system, the operating system does the work. But everyday new
devices and components are being added to a computer system. It is not possible for the operating
system alone to operate all of the existing and new devices, where each device has diverse
characteristics. The responsibility for overall control, operation and management of a particular
device at the hardware level is delegated to its device driver.
The device driver acts as an interface between the device and the operating system. It provides
required services by hiding the details of operations performed at the hardware level of the device.
4. Programming tools:
A programming tool may be any software program or utility that aids software developers or
programmers in creating, editing, debugging, maintaining and/or performing any programming or
development-specific task.
4.i) Classification of Programming Languages:
Programming Languages are broadly classified into:
i) Low Level Languages – Low-level languages are machine dependent languages and include
machine language and assembly language. Machine language uses 1s and 0s to write instructions
which are directly understood and executed by the computer.
ii) High Level Languages - High level languages are machine independent and are simpler to write
code into. Instructions are using English like sentences and each high level language follows a set of
rules, similar to natural languages. However, these languages are not directly understood by the
computer.
Source code: It refers to the original code written in a programming language by a programmer.
Machine code or object code: It refers to the code converted into computer understandable form
(binary code )that a computer can understand and can directly execute.
4.ii) Language Translators:
A language processor is a special type of computer software that can translate the source code into
an object code or machine code. Examples of language translators are: Assembler, Interpreter and
Compiler.
Assembler: Assembler converts the program written in assembly language to machine language.
Interpreter: An interpreter translates program written in high level language to machine language
line by line.
Compiler: A Compiler translates program written in high level language to machine language in one
go.
II) Application Software:
It is the set of programs necessary to carry out operations for a specified application.
They are divided into two categories-
• General Purpose Software:
The application software developed for generic applications, to cater to a bigger audience in
general as per their requirements are called general purpose software. For example,
spreadsheet, Adobe Photoshop, Mozilla web browser, iTunes, etc.
• Customized Software: It is custom or tailor-made application software, that is developed to
meet the requirements of a specific organization or an individual. Eg: Business software,
Inventory Management System, Payroll system etc.
19 What is the difference between Compiler and Interpreter?
Compiler Interpreter
Input A compiler takes entire program An interpreter takes a single line of
as its input code or single instruction (such as
loop)as its input
Output It generates intermediate object It does not generate any intermediate
code from the whole program. object code.
Memory Requires more memory during Requires less memory during
compilation interpretation as interprets single
instruction/ unit-of-code at a time.
Errors Display lists of errors of entire Interpreter displays the error of
program with line numbers and single instruction it is interpreting.
the error(s) in that line Thus errors also appear one line at a
time.
Always No. Once the role of compiler is Always required . Interpreter
required over , a compiler is no longer translates and runs one instruction
required to run the executable every time, so it is always required
file. in memory to run the code.
Workload Compilation once done, stays Interpretation is required each time
always. Recompilation not you have to run the code.The
required if the code (without any interpreter does not create an
change needs to run again. The executable and hence it is required
same executable can be return every time , the code is to run.
without the compiler
Eg of Softwares C , C++, C#, Scala Python, Perl, PHP
Graphical User Interface: Graphical User Interface (GUI) lets users run programs or give
instructions to the computer in the form of icons, menus and other visual options. The input devices
used to interact with the GUI commonly include the mouse and the keyboard. Examples of operating
systems with GUI interfaces include Microsoft Windows, Ubuntu, Fedora and Macintosh, among
others.
Touch based Interface: Today smartphones, tablets and PCs allow users to interact with the system
simply using the touch input. Examples of popular operating systems with touchbased interfaces are
Android and iOS. Windows 8.1 and 10 also support touch-based interfaces on touchscreen devices.
Voice based Interface: Users today can use voice-based commands to make a computer work in the
desired way. Some operating systems which provide voice-based control to users include iOS (Siri),
Android (Google Now or “OK Google”), Microsoft Windows 10 (Cortana).
Gesture based Interface : Some smartphones based on Android and iOS as well as laptops let users
interact with the devices using gestures like waving, tilting, eye motion and shaking. This technology
is evolving faster and it has promising potential for application in gaming, medicine and other areas.
21 What are the functions of operating system?
Ans The important services and tasks that an operating system provides for managing the computer
system are:
(A) Process Management:
A program is intended to carry out various tasks. A task in execution is known as process. We can
activate a system monitor program that provides information about the processes being executed on a
computer. It is the responsibility of operating system to manage these processes and get multiple
tasks completed in minimum time. As CPU is the main resource of computer system, its allocation
among processes is the most important service of the operating system. Hence process management
concerns the management of multiple processes, allocation of required resources, and exchange of
information among processes.