Computer Science Chapter 1
Computer Science Chapter 1
Unit-1
Q.1: What do you mean by digital computer system? Explain
all the functional units and subunits of it.
Ans: Definition of Digital computer:
A digital computer is an electronic device, which can perform
arithmetic and logical operations on data (strings of 0’s and
1’s) and converts it into information. It is also capable of
storing data.
Functional units of a computer system:
Every computer has four basic components- Input unit,
Memory unit, Central processing unit and Output unit.
Storage Unit
Secondary
Memory
Data Information
ALU CPU
register
s
Control Unit
Prepared by: Ashish Kumar Gupta (Dept. of CSE, I.T.S E C, Greater noida)
2
Memory unit:
Memory unit is used to store the data inside the computer. It
has two types-
1. Primary or Main memory
2. Secondary or Auxiliary memory
Output unit:
The devices used to present the processed information by the
computer are called output units.
Example: 1. Monitor or Visual display unit(VDU)
2. Printer
3. Plotter
4. Projector
5. Voice response system
Q.2: Differentiate among High level language, Assembly
language and Low level language.
Ans:
High Level Assembly Language Low Level
Language Language
Easily Not
Less understandable
understandable understandable
Written in User Written in Alpha- Written in String
friendly codes numeric codes of 0’s and 1’s
Debugging is Debugging not
Debugging is easier
complex possible
Programs are Portable for same Portable for
portable interpreter same processor
Suitable for Suitable for
No translation is
software generating object
required
development code
Q.3: Write short notes on – Compiler, Interpreter, Assembler,
Linker, Loader and Editor.
Ans: Compiler: A compiler is a translator software used to
translate the High level language program into Low level
language program. It translates the whole program at once.
Compiler
High Level Language Low Level Language
Error Message
Interpreter: An Interpreter is a translator software used to
translate the High level language program into Low level
language program. It translates the program line-by-line.
Error Message
Assembler: An Assembler is a translator software used to
translate the assembly language program into Low Level
Language program.
1- Memory management
2- Process management
3- File management
4- Security management
5- Network management
Computer
6- Device management
7- Loading and scheduling Hardware
8- Hardware configuration
9- Act as an interface Operating System
10- Act as an internal clock
Application software
Hardware
Types of Operating system:
User
1- Single-user Operating
system: If a single command can be executed at a
time. Example: Disk operating system (DOS).
System Software
Batch processing:
In Batch processing, similar types of programs are executed
in batches.
Multiprogramming:
In multiprogramming, multiple programs can be executed at
the same time.
Multi processing:
In multiprocessing, multiple processes can be executed at
the same time.
Time Sharing:
In time sharing systems the computer resources are used in
a time dependent fashion.
Real Time System:
In Real time systems the correctness of result is required
within a given time period.
CPU
Register
s Storage capacity
Speed increases Cache Memory
increases
Main Memory
Secondary Storage
Prepared by: Ashish Kumar Gupta (Dept. of CSE, I.T.S E C, Greater noida)
5
Types of Software
System software:
System software is a set of one or more programs, designed
to control the operations and extend the processing
capability of a computer system.
Examples of System software:
1. Operating system, such as DOS, windows, Unix etc.
2. Programming language Translators, such as Compilers,
Interpreters etc.
3. Communication software
4. Utility programs
Application software:
Application software is a set
of one or more programs,
designed to solve a specific
problem or to do a specific
task.
Examples of Application
softwares:
1. Word-processing Hardware
software
2. Spread-sheet software System software
3. Graphics software
4. Educational software Application Software
5. Entertainment software
6. Personal assistance System software
User
software
System
Software
Prepared by: Ashish Kumar Gupta (Dept. of CSE, I.T.S E C, Greater noida)
6
Prepared by: Ashish Kumar Gupta (Dept. of CSE, I.T.S E C, Greater noida)
7
Start / Stop
Input/Output
Process
Decision
5. Flow Lines: The flow lines are used to indicate the flow
of operation. These are represented by a straight line
with an arrow head.
Flow Lines
Terminal
6. Connector: The connector symbol is used to indicate an
entry from or exit to another part of the flow chart. It is
represented by a number or an alphabet within circle.
A Connectors
1
Advantages of Flow-charts:
1. Better communication: A flow chart is a pictorial representation of algorithm hence
it is easier for a programmer to explain the logic of a program.
2. Efficient coding: The flow-chart acts as a road map, so, it becomes easy to write
the corresponding program.
Prepared by: Ashish Kumar Gupta (Dept. of CSE, I.T.S E C, Greater noida)
8
Limitations of Flow-charts:
1. Time consuming: Flow-charts are very time consuming to draw proper symbols for
large programs.
2. Not easy to modify: Due to symbol format it is not easy to change or modify the
flow-chart.
Prepared by: Ashish Kumar Gupta (Dept. of CSE, I.T.S E C, Greater noida)
9
Prepared by: Ashish Kumar Gupta (Dept. of CSE, I.T.S E C, Greater noida)
10
Q. 12 What is Data type? Explain all the types of data types in detail.
Data type: Data type defines the size, range, format specifier of a
variable. Data type has three types-
Data types
unsigned %u 1 0 to 255
char
Prepared by: Ashish Kumar Gupta (Dept. of CSE, I.T.S E C, Greater noida)
11
Prepared by: Ashish Kumar Gupta (Dept. of CSE, I.T.S E C, Greater noida)