12 Computer CHP 1
12 Computer CHP 1
Q1. What is data and information also discuss different operations performed on
data?
Ans.
Data:
Raw facts and figures are called data.
Data is used to perform certain operation in an organization.
It gives the status of past activities and enables us to make better decisions.
It is an input for any system.
Example: Data may be numerical like inventory figures, test scores etc. Data may be
non-numerical like your name and address.
Information:
Processed data is called Information.
It is usually output of a process and is meaningful.
It can be reproduced again and again easily.
Example: The grade of a student in a particular subject in a semester precisely gives the
complete information of the performance of a student.
Operations:
Manipulation of data is called operation.
In first step, data can be captured from any source.
Then operations are performed on that data.
After operations data become information.
To convert data into information software is used.
Example: Addition of two numbers. Perform any type of sorting or searching.
Data processing activities
Manipulation of data to achieve required objectives is called data processing.
Operations carried out on data to convert it into useful information is called data
processing.
Data processing activities can be divided into three categories.
[Ch#1] Data Basics 2 Computer Science Part-II
1. Data capturing
Data must be given to the computer before processing.
Data can be given to the computer in the form of text using keyboard or in some
other shape using some other input device.
2. Data manipulation
The process to perform various operations on data in order to change its appearance is
called data manipulation.
Data can be manipulated in the following forms.
Classification
o Classification includes the division of data in the form of different classes or
groups.
o After this division different codes are assigned to the data.
o These codes can be numeric, alphabetic or alphanumeric.
Example: Students in a college are divided into different sections and the
section name is the code of a particular group/class of students.
Calculations
o Data can be calculated arithmetically or logically
Example: Addition of two numbers to find the total amount or comparing two
numbers to find which one is the larger.
Sorting
o This involves arrangement of data into a particular sequence to facilitate
processing.
o Arranged data can be in ascending or descending sequence.
Example: For instance, sorting the banks deposits according to account no
will speed up processing. Sorting can also be performed on names as well as
numbers. The people attending the aerobics class can be stored alphabetically
by last names.
Summarizing
o A large amount of data can be reduced to a concise, usable form.
Example: A top management report summarizing a company’s accounting
data will help to determine its profit performance.
[Ch#1] Data Basics 2 Computer Science Part-II
Grades of all students in all classes can be summarized by grade point
average. It helps to find the list of those students who deserve dean’s
scholarship.
3. Managing the output results
Output data can be stored for future use or communicated some where for reproduction.
Storing and retrieval.
o Data can be stored on some storage device e.g. disk, magnetic tape or
microfilm. This stored data can be used in future as per the requirement.
Communication and reproduction.
o Data can be communicated to one or more than one destinations at the same time.
o To communicate or transfer from one place to another a copy of the data is
made and then transmitted.
Q2. What is a traditional file system? What are the problems faced in traditional
file system? Briefly describe the basic units of information.
Ans.
Traditional File System
A file system is a method for storing and organizing computer files and the data they contain.
Files are easily accessed using file system.
It maintains the physical location of the files on storage device.
The data was kept in files.
Each unit of the organization had its own files and each file had a specific set of
programs that were used to manipulate data in that file.
Each department collects and maintains the required data. This usually resulted in
duplication of data because each record of an employee is maintained by every
department separately.
Files are stored on storage media.
Each file consists of records and each record consists of fields. Each field contains
data of one item.
[Ch#1] Data Basics 2 Computer Science Part-II
Problems
Data redundancy
Data inconsistency
Data sharing
Data dependency
Data security
Basic Units of Information:
Field
Each column of the table in relational database is called a field.
Field is a column heading of a table.
Example: Roll Number, Name or Class can be a column heading if we want to store
student’s information in a table named student.
2 Adil FSc
3 Umer I. Com
Record
[Ch#1] Data Basics 2 Computer Science Part-II
A collection of related fields treated as a single unit is called a record.
In the following table each row of the table is called a record because it is
representing the related data to a particular student.
Roll Number 1
Name Adnan
Class ICS
DOB 10-03-1992
Phone 417582
File
A collection of related records treated as a single unit is called a file or data set.
If we collect the information of the students then it becomes the file of student information.
Roll Number 1
Name Adnan
Roll Number 2
Name Adil
Roll Number 3
Name Fazal
Roll Number 4
Name Gafoor
Class ICS
DOB 03-04-1991
Phone 745241
ELECTRONICS
PORTABLE
TELEVISIONS
ELECTRONICS
FLASH
o This type of structure is also referred as an “INVERTED TREE” with the top
referred as “ROOT”. It is a model in which data is organized like an
organizational chart. Each node in a chart represents an entity and its subordinate
entity describes the next level of hierarchical tree.
Relational Model
o Network and hierarchical model were complex and inflexible. It is difficult to
expand or modify the database model. So to over come this problem Dr. E.F.
Codd introduced relational model.
o The relational model represents data in the form of two-dimension tables
(relations).
o Each table represents some real-world person, place, thing, or event about which
information is collected.
o The organization of data into relational tables is known as the logical view of the database.
o The way the database software physically stores the data on a computer disk
system is called the internal view.
[Ch#1] Data Basics 2 Computer Science Part-II
[Ch#1] Data Basics 2 Computer Science Part-II
o At this stage migration of data from one DBMS to another is very difficult.
Example: The defaulters list of bank clients can be used by other banks to
approve or disapprove a loan application.
Conversion Costs
o The existing or older system of data management is called the legacy system. It
usually consists of a traditional file processing system or an older database
technology. The cost of converting an old data management system to a modern
DBMS is usually large.
o It also indicates which application programs use that data so that when a change
in a data structure is contemplated, a list of affected programs can be generated.
[Ch#1] Data Basics 2 Computer Science Part-II
o This data dictionary is an overhead on the system because the system has to
update and maintain the data dictionary during all other system processes.
[Ch#1] Data Basics 2 Computer Science Part-II
Objectives of DBMS
Shareability
o Different programs and people must be able to use the same data at the same time.
o Sharing means that information can be stored once and then retrieved by number
of times by authorized users of database. It reduces storage requirements.
Availability
Data and Database management system must be easily accessible to every user.
Evolvability or Data Growth
[Ch#1] Data Basics 2 Computer Science Part-II
DBMS must be able to grow according to the user need. It must also be able to cope
with the advancement in business and technology.
Data integration
o Data integration is the process of combining data residing at different sources and
providing the user with a unified view of these data.
o It means centralization of information. In manual file system data is stored in
many files at different locations it is difficult to access data from isolated files in
database information is logically centralized. It means data is stored on different
computer but it logically appears as a single file.
Data integrity
o Ensuring that the data is "whole" or complete. Data is maintained as a single
copy to be more consistent.
o Data integrity refers to the correctness and consistency of data in a database.
o Data integrity is related with quality of data. When a database contains any error
it losses its integrity.
o Data integrity is related to security and protection. Security means to protect the
data from unauthorized persons while integrity is related with quality of data.
o Data integrity is expressed in terms of integrity constraints. These are the rules
designed to keep the data accurate and consistent.
Features of DBMS
Data Dictionary
o DBMS uses a file to store the data definition or description of the structure of
database is called data dictionary i.e. data about database.
o It holds the name, type, range of values, source, and authorization for access for
each data element in the organization's files and databases.
o It also indicates which application programs use that data so that when a change
in a data structure is implemented, a list of affected programs can be generated.
o The data dictionary may be a stand-alone system or an integral part of the DBMS.
Data integrity and accuracy is better ensured in the later case. Using data
dictionary any information about data and database can be obtained.
Database Engine:
o Database engine is the heart of DBMS. It stores, retrieves, and updates the data.
Other components of database system rely on the database engine for their
functioning.
Application Generator:
[Ch#1] Data Basics 2 Computer Science Part-II
o Application generator is a part of DBMS. It consists of tools that are used to
create a complete database management application. A database application is a
collection of queries, forms and reports that are used to input and output data and
perform various data manipulation operations.
Form Generator:
o Form generator is used to create data input screens. The form generator enables
developers to build forms by dragging and dropping form components such as
text boxes, radio buttons, check boxes, dropdown menus, etc.
Query Language
o SQL is a language used to insert, update, retrieve and delete any data item from
the database.
o This language is also used to grant access rights on database.
o This is a standard language used with all relational databases.
o The instruction of this language is English like and easily understandable.
Report Generator
o A program used to create a report in the form of hard/soft copy.
o The report format can be specified by the user.
o This format is very much flexible.
o User can give headings and customize messages on this report.
Communication and Integration:
o Some database management systems provide special communication and
integration utilities. These are used to import and export data with different
databases running on different computers.
Utilities
o DBMS utilities are the software programs used to maintain the database by
manipulating the data, records and files.
o Some programs are also used for backup and recovery procedures of the
databases.
Access Security
o This facility is used to secure the data from unauthorized access.
o This feature makes the data secure and private.
o The data security is maintained by access right like password.
Backup and Recovery
[Ch#1] Data Basics 2 Computer Science Part-II
o When data is stored in a database there are chances of being lost or destruction by
natural disasters or by some human mistakes.
o The best option in this situation is to take a backup copy of the data.
o And in the case of corruption of data or failure of system database can be
reinstated with backup copy called recovery.
Q.10 What are the objects or components of database system?
Ans. A database is a computerized record keeping system. Its purpose is to maintain
data and make it available when required.
Data
o Raw facts and figures are called data.
o The data in a database is integrated and shared.
o Integrated means that several files are stored as related files and with minimum
repetition and duplication of data.
o Shared means that the data can be shared among several users. Thus, several users
can use the same data at the same time.
o Ability to maintain integrated and shared data is one of the major advantages of
database systems.
Hardware
The physical components of a system it includes
o I/O Devices
o Primary Storage
o Secondary Storage Devices
o I/O Channels
o Processor
Software
It is a set of programs that are used to perform a specific task.
All kind of programs, which include
o User/System Software
Operating system
Database
DBMS
Application program
o Utilities
[Ch#1] Data Basics 2 Computer Science Part-II
Backup and recovery
Personnel
People who involves with the system
o Programmer / Analyst
Analyst determines the end user requirements about the database system.
He develops initial structure of the database.
Programmer then writes application programs with the help of languages,
DBMS and packaged software.
All operations on data are performed with the help of application program.
o End Users
It is the person who uses the database management system for his need.
He must have knowledge of information technology.
He doesn’t need to have the detail knowledge of the computer system.
He should be aware of the usage details of the software he intends to use.
o Database Administrator
A database administrator (DBA) is a person who is responsible for the
environmental aspects of a database. In general, these include:
Recoverability - Creating and testing Backups
Integrity - Verifying or helping to verify data integrity
Security - Defining and/or implementing access controls to the data
Availability - Ensuring maximum uptime
Performance - Ensuring maximum performance given budgetary constraints
Development and testing support - Helping programmers and engineers to
efficiently utilize the database.