CF - Unit 2 PDF
CF - Unit 2 PDF
CF - Unit 2 PDF
Computer Software
and
DBMS
Contents
1. Introduction
➢ Understanding Computer Hardware and Software
2. Types of Software
a. System Software
b. Application Software
3. Operating Systems : Functions, Types
4. Language Translators
a. Compilers
b. Translators
c. Assemblers
5. Database Management Systems
2
Understanding Computer Hardware
⬡ Computer hardware includes the physical parts of
a computer, such as the central processing
unit (CPU), monitor, mouse, keyboard, computer data
storage, graphics card, sound
card, speakers and motherboard.
5
Examples of Computer Software
⬡ Office suites
⬡ Database programs
⬡ Software development tools
⬡ Web browsers
⬡ Word processors
⬡ Image editors
⬡ Communication platforms.
6
Hardware Software
Definition Devices that are required to Collection of instructions that
store and execute (or run) enables a user to interact with
the software. the computer.
Types Input, storage, processing, System software,
control, and output devices. Programming software, and
Application software.
Examples CD-ROM, monitor, printer, Adobe, Google Chrome,
video card, scanners, Microsoft Word, Microsoft
routers and modems Excel etc.
Durability Hardware wears out over Software does not wear out
time. over time.
Nature Hardware is physical in Software is logical in nature.
7
nature.
Contents
1. Introduction
➢ Understanding Computer Hardware and Software
2. Types of Software
a. System Software
b. Application Software
3. Operating Systems : Functions, Types
4. Language Translators
a. Compilers
b. Translators
c. Assemblers
5. Database Management Systems
8
Types of Software
Based on the goal, computer software can be
divided into:
1. Application Software
2. System Software
9
Application Software
⬡ Software that uses the computer system to perform special
functions or provide functions beyond the basic operation of the
computer itself.
⬡ Application software (app for short) is software designed to
perform a group of coordinated functions, tasks, or activities for
the benefit of the user.
⬡ The collective noun application software refers to all applications
collectively. This contrasts with system software, which is mainly
involved with running the computer.
10
Application Software
Examples of an application include:
✓Word Processor
✓Spreadsheet
✓Accounting Application
✓Media Player
✓File Viewer
✓Flight Simulator
✓Console Game
✓Photo Editor
✓Integrated Development Environments
✓Oracle, MS Access
System Software
⬡ System software is software for managing computer hardware
behaviour, as to provide basic functionalities that are required by
users, or for other software to run properly, if at all.
⬡ System software is also designed for providing a platform for
running application software and it includes the following:
o Operating Systems
o Device Drivers
o Utilities
o Malicious Software or Malware
12
System Software
Examples of an system software include:
✓Windows
✓Mac oS
✓Linux
✓Android
✓Anti virus
✓Disk formatting
✓Computer language translators
✓Display card
✓Network card
Contents
1. Introduction
➢ Understanding Computer Hardware and Software
2. Types of Software
a. System Software
b. Application Software
3. Operating Systems : Functions, Types
4. Language Translators
a. Compilers
b. Translators
c. Assemblers
5. Database Management Systems
14
Operating Systems
➢ An operating system (OS) is system
software that manages computer
hardware, software resources, and
provides common services for computer
programs.
20
Functions of Operating Systems
3. Security
The operating system uses password protection to protect user
data and similar other techniques. It also prevents unauthorized
access to programs and user data.
4. Control over system performance
Monitors overall system health to help improve performance.
records the response time between service requests and system
response to have a complete view of the system health. This can
help improve performance by providing important information
needed to troubleshoot problems.
21
Functions of Operating Systems
5. Coordination between other software and users
Operating systems also coordinate and assign interpreters,
compilers, assemblers and other software to the various users of
the computer systems.
6. Memory Management
The operating system manages the Primary Memory or Main
Memory. Main memory is made up of a large array of bytes or
words where each byte or word is assigned a certain address.
Main memory is a fast storage and it can be accessed directly by
the CPU. For a program to be executed, it should be first loaded
22
in the main memory.
Functions of Operating Systems
7. Processor Management
In a multi programming environment, the OS decides the order in
which processes have access to the processor, and how much
processing time each process has. This function of OS is called
process scheduling.
8. Device Management
An OS manages device communication via their respective
drivers. It performs the following activities for device
management. Keeps tracks of all devices connected to system.
designates a program responsible for every device known as the
Input/output controller. 23
Functions of Operating Systems
9. File Management
A file system is organized into directories for efficient or easy
navigation and usage. These directories may contain other
directories and other files. An Operating System carries out the
following file management activities. It keeps track of where
information is stored, user access settings and status of every file
and more. These facilities are collectively known as the file
system.
24
Batch Operating System
➢ This type of operating system does
not interact with the computer directly.
26
Time-Shared Operating System
➢Each task is given some amount of CPU
time to execute, so that all the tasks work
smoothly.
➢These systems are also known as
multitasking systems.
➢The time that each task gets to execute
is called a quantum, after this time
interval is over the operating system
switches over to the next task.
➢Examples of Time-Shared Operating
System: Multics, UNIX etc.
Advantages Disadvantages
1. Each task has an equal 1. Data communication problem
opportunity. 2. Reliability problem
2. CPU idle time can be 3. Security and integrity of user
reduced. programs and data must be
3. Less chances of duplication taken care of.
of software.
28
Distributed Operating System
➢ In distributed operating systems
independent interconnected computers
communicate with each other using a
shared communication network.
30
Network Operating System
➢These types of operating systems
allows shared access of files, printers,
security, applications, and other
networking functions over a small
private network.
➢All the users are well aware of the
underlying configuration, of all other
users within the network, their
individual connections etc. and that’s
why these computers are popularly
known as tightly coupled systems. ➢ Examples of Network OS:
Microsoft Windows Server 2008,
Linux, Mac OS X etc.
Advantages Disadvantages
1. Highly stable centralized 1. Servers are costly
servers 2. User has to depend on
2. Security concerns are central location for most of
handled through servers the operations
3. New technologies and 3. Maintenance and updates
hardware up-gradation are are required regularly
easily integrated to the
system
32
Real-Time Operating System
➢These types of operating systems serve
the real time systems.
➢The time interval required to process
and respond to inputs is very small. This
time interval is called response time.
➢Real-time systems are used when the
time requirements are very strict like
missile systems, air traffic control
systems, robots etc.
➢Examples of Distributed Operating
System: medical imaging systems,
robots, air traffic control systems, etc.
Types of Real-Time Operating Systems
34
Advantages Disadvantages
1. Maximum utilization of 1. Limited Tasks run at a given
devices and system, thus time and their concentration
more output from all the is very less on few
resources applications to avoid errors.
2. These types of systems are 2. The algorithms are very
error free. complex.
3. Memory allocation is best 3. It needs specific device
managed in these types of drivers and interrupts signals
systems. to response earliest to the
interrupts.
35
Desktop Operating System
➢Desktop Systems include PCs running
Microsoft Windows and the Apple
Macintosh.
39
Utilities
➢ Utility programs, commonly referred to as just "utilities," are
software programs that add functionality to your computer or
help your computer perform better.
➢ These include antivirus, backup, disk repair, file management,
security, and networking programs.
➢ Utilities are computer programs designed to assist users in the
maintenance and care of their computers.
40
Malicious Software/ Malware
➢ Malicious software or malware is software that is developed to
harm and disrupt computers.
➢ As such, malware is undesirable.
➢ Malware is closely associated with computer-related crimes,
though some malicious programs may have been designed as
practical jokes.
41
Contents
1. Introduction
➢ Understanding Computer Hardware and Software
2. Types of Software
a. System Software
b. Application Software
3. Operating Systems : Functions, Types
4. Language Translators
a. Compilers
b. Translators
c. Assemblers
5. Database Management Systems
42
Computer Languages
⬡ A language is the main medium of communicating
between the Computer systems and the most common
are the programming languages.
⬡ As we know a Computer only understands binary
numbers that is 0 and 1 to perform various operations
but languages are developed for different types of
work on a Computer.
⬡ A language consists of all the instructions to make a
request to the system for processing a task.
43
There are mainly three different languages
with the help of which we can develop
computer programs. They are:
44
45
Machine Level Language
Computer can understand only the language of Digital
Electronics. Digital Electronics deals with presence and absence
of voltages. Within the computer there are two logics:
Positive Logic – Here presence of voltage will be denoted by 1 and
absence of voltage will be denoted by 0
Negative Logic – Here presence of voltage will be denoted by 0 and
absence of voltage will be denoted by 1
Computer directly understands a program written in the
machine language. So as a result, machine language program
does not require any translator to convert from one form to
another. 46
Assembly Level Language
Assembly language uses mnemonics or symbolic instructions in
place of a sequence of 0s and 1s.
As an example, we can consider, to add register A and B in a
particular computer, assembly language uses the mnemonic
‘ADD B’ in place of 10001111.
In assembly language, we use symbolic names to denote
addresses and data.
Writing a program in assembly language has advantages over
writing the same in a machine language.
47
High Level Language
High-level languages are like English-like language, with less
words also known as keywords and fewer ambiguities.
Each high level language will have its own syntax and keywords.
The meaning of the word syntax is grammar.
Examples of some high-level languages are given below:
• PROLOG (for “Programming Logic”);
• FORTRAN (for ‘Formula Translation’);
• LISP (for “List Processing”);
• Pascal (named after the French scientist Blaise Pascal).
48
Generation of Programming Languages
There are five generation of Programming languages:
First Generation Languages: These are low-level languages like machine language.
Second Generation Languages: These are low-level assembly languages used in
kernels and hardware drives.
Third Generation Languages: These are high-level languages like C, C++, Java,
Visual Basic and JavaScript.
Fourth Generation Languages: These are languages that consist of statements that
are similar to statements in the human language. These are used mainly in database
programming and scripting. Example of these languages include Python, Ruby, SQL.
Fifth Generation Languages: These are the programming languages that have visual
tools to develop a program. Examples of fifth generation language include Mercury,
OPS5, and Prolog.
49
Language Translators
➢ Computers only understand machine code (binary), this is an issue
because programmers prefer to use a variety of high and low-level
programming languages instead.
➢ A translator will convert the source code into machine code (object
code) that the central processing unit (CPU) can understand.
1. Compiler
2. Interpreter
3. Assembler
Compilers
➢Compilers are used to translate a program written in a high-level
language into machine code (object code).
➢Once compiled (all in one go), the translated program file can then
be directly used by the computer and is
➢independently executable.
➢Compiling may take some time but the translated program can be
used again and again without the need for recompilation.
52
Compilers
➢ An error report is often
produced after the full program
has been translated.
55
Interpreters
➢ Interpreted programs will
launch immediately, but your
program may run slower then
a complied file
➢ No executable file is
produced. The program is
interpreted again from scratch
every time you launch it.
Advantages & Disadvantages of Interpreters
➢ Here are some advantages of the Interpreter:
1. You discover errors before you complete the program, so you
learn from your mistakes.
2. Program can be run before it is completed so you get partial
results immediately.
3. You can work on small parts of the program and link them
later into a whole program.
➢ Once assembled, the program file can be used again and again
without re-assembly.
58
Advantages & Disadvantages of Assemblers
➢ Here are some advantages of the Assembler:
1. The symbolic programming is easier to understand thus time-
saving for the programmer.
2. It is easier to fix errors and alter program instructions.
3. Efficiency in execution just like machine level language.
59
Contents
1. Introduction
➢ Understanding Computer Hardware and Software
2. Types of Software
a. System Software
b. Application Software
3. Operating Systems : Functions, Types
4. Language Translators
a. Compilers
b. Translators
c. Assemblers
5. Database Management System
60
Database Management Systems
➢ In computerized information system
data is the basic resource of the
organization. So, proper organization
and management for data is required
for organization to run smoothly.
➢ Database management system deals the
knowledge of how data stored and
managed on a computerized
information system.
61
Database Management System
➢Database management system is software which is used to
manage the database.
➢ For example: MySQL, Oracle, etc are a very popular
commercial database which is used in different applications.
➢DBMS provides an interface to perform various operations like
database creation, storing data in it, updating data, creating a
table in the database and a lot more.
➢It provides protection and security to the database. In the case
of multiple users, it also maintains data consistency.
62
Database Management Systems
➢ In any organization, it requires accurate and reliable data for better
decision making, ensuring privacy of data and controlling data
efficiently.
63
What is Data?
➢Data is the known facts or figures that have implicit meaning.
64
What is Information?
➢Information is the processed data on which decisions and actions are
based. Information can be defined as the organized and classified data
to provide meaningful values.
65
What is a Database?
➢A collection of data designed to be used by different people is called
database.
66
Designing a Database
➢Database design is the organization of data according to a database
model.
➢The designer determines what data must be stored and how the data
elements interrelate.
➢ With this information, they can begin to fit the data to the database
model. Database management system manages the data accordingly.
67
Entity Relationship Diagram
68
Entities
➢An entity is an object with a distinct set of properties that is easily
identified.
➢Entities are the building block of database.
➢Entities are represented by means of rectangles.
➢Some of the examples of entities are student, course, grade etc.
Marks
Student
Course
69
Attributes
70
Relationship
➢ A Relationship represents an association between two or more
entities.
➢ Relationship is represented by diamond box.
➢There are four types of relationships:
1. One to One
2. One to Many
3. Many to One
4. Many to Many
71
ER Diagram
Example :
72
Functions Of DBMS
1. Defining database schema
It must give facility for defining the database structure
also specifies access rights to authorized users.
3. Sharing of database
The DBMS must share data items for multiple users by maintaining
consistency of data.
73
Functions Of DBMS
4. Protection of database
It must protect the database against unauthorized users.
5. Database recovery
If for any reason the system fails DBMS must facilitate data base
recovery
74
Advantages Of DBMS
1. Controls database redundancy
It can control data redundancy because it stores all the data in on
single database file and that recorded data is placed in the
database.
2. Data sharing
In DBMS, the authorized users of an organization can share the data
among multiple users.
3. Easy Maintenance
It can be easily maintainable due to the centralized nature of the
database system.
75
Advantages Of DBMS
4. Reduce time
It reduces development time and maintenance need.
5. Backup
It provides backup and recovery subsystems which
create automatic backup of data from hardware and
software failures and restores the data if required.
76
Disadvantages Of DBMS
1. Cost of Hardware and Software
It requires a high speed of data processor and large
memory size to run DBMS software.
2. Size
It occupies a large space of disks and large memory to
run them efficiently.
3. Complexity
Database system creates additional complexity and
requirements.
77
Applications Of DBMS
1. Railway Reservation System
Database is required to keep record of ticket booking, train’s departure
and arrival status. Also if trains get late then people get to know it
through database update.
2. Banking
User make thousands of transactions through banks daily and user can
do this without going to the bank. So how banking has become so
easy that by sitting at home user can send or get money through
banks. That is all possible just because of DBMS that manages all the
bank transactions.
78
Applications Of DBMS
3. Universities and colleges
Examinations are done online today and universities
and colleges maintain all these records through DBMS.
Student’s registrations details, results, courses and grades
all the information are stored in database.
79
Applications Of DBMS
6. Social Media Sites
User all are on social media websites to share their views and connect
with their friends. Daily millions of users signed up for these social
media accounts like facebook, twitter, and Google plus. But how all
the information of users are stored and how we become able to
connect to other people, yes this all because DBMS.
7. Military
Military keeps records of millions of soldiers and it has millions of files
that should be keep secured and safe. As DBMS provides a big security
assurance to the military information so it is widely used in militaries.
One can easily search for all the information about anyone within
seconds with the help of DBMS.
80