Final Computer Notes
Final Computer Notes
INTRODUCTION
Memory unit
INPUT DEVICE
OUT PUT DEVICE
AL
U
Control Unit
2
(a). Memory Unit: It is also known as the primary storage or main
memory. It stores data, program instructions, internal results and final
output temporarily before it is sent to an appropriate output device. It
consists of thousands of cells called ―storage locations‖. These cells
activate with ―off-on‖ or binary digits(0,1) mechanism. Thus a
character either a letter or numerical digit is stored as a string of (0,1)
Binary digits ( BITS). These bits are used to store instructions and data
by their combinations.
(b) Arithmetic and Logical Unit(ALU): It is the unit where all
Arithmetic operations (addition, subtraction etc.) and logical functions
such as true or false, male or female are performed. Once data are fed
into the main memory from input devices, they are held and transferred
as needed to ALU where processing takes place. No process occurs in
primary storage. Intermediate generated results in ALU
(c) are temporarily placed in memory until needed at later time. Data may
move from primary memory to ALU and back again to storage many
times before the process is finalized.
(d) (c).Control Unit : It acts as a central nervous system and ensures that
the information is stored correctly and the program instructions are
followed in proper sequence as well as the data are selected from the
memory as necessary. It also coordinates all the input and output
devices of a system .
Input Devices
Devices used to provide data and instructions to the
computer are called Input devices. Some important input
devices are
Key board, Mouse, Scanner, MICR, Web camera, Microphone etc.
1. Keyboard: The Key board is used for typing text into the computer.
It is also known as standard Input device. A computer keyboard is
similar to that of a type writer with additional keys. The most
commonly available computer keyboard has 104 keys.
There are different types of keys on the keyboard. The keys are
categorized as :
Alphanumeric keys , including letters & numbers.
Punctuation keys, such as colon (:), semicolon (;) Question
mark (?), Single & double quotes (‗,‖)
Special keys such as arrow keys, control keys, function keys (F1 to
F12), HOME, END etc.
Laser printer
This code has given alphabets like some numbers which can be
converted to Binary form.
A- 65 …….Z – 90................and a – 97 z – 121
By using these codes the alphabets can be converted to digital & hence to
Binary form.
Types of Memory : A computer memory is of two types
1. Primary Memory ( Internal storage) 2. Secondary Memory (
External storage)
ROM:
It is called Read-only memory as information can only be read from
and not written or changed onto ROM. ROM is the ‗built-in‘ memory
of a computer. It stores some basic input – output instructions put by
the manufacturer to operate the computer. The storage of data and
instructions in ROM is permanent. It does not depend on the power
supply. i.e it is non-volatile memory.
Secondary memory: The primary memory which is faster (and hence
expensive) is generally not sufficient for large storage of data. As a
result, additional memory, called the ―auxiliary‖ or ―secondary
memory‖ is used. It is also referred as ―backup storage‖ as it is used
to store large volume of data on a permanent basis which can be
transferred to the primary memory whenever required for processing.
Data are stored in secondary storage in the same binary codes as in the
main (primary memory) storage. Some of the devices of secondary
storages are Floppy Disk, Hard Disk, CD-ROM, DVD and Flash drive.
Floppy Disk: It is also referred as ―Diskette: and is made of flexible Vinyl
material. It has a small hole on one side called ―Right protect
notch‖, Which protects accidental writing/deleting the information
from the disk. There is a hole in the centre through which the spindle of
drive unit rotates the disk. The disks are available in two sizes of 5.25 and
3.5 inches and these could be either low- density or high-density floppies.
Storage capacity of floppies are measured in kilobytes (KB) and megabytes
(MB). The details about the storage capacities of the floppies are presented
below:
1.
1. Hard Disk: The hard disk can hold more information than the floppy
disk and the retrieval of information from hard disk is faster when
compared to floppies or tapes. A hard disk is fixed inside the CPU and its
capacity ranges from 20 MB onwards. The hard disk is made up of a
collection of discs (one below the other) known as platters on which the data
is recorded. These platters are coated with magnetic material. It is less
sensitive to external environmental disorders and hence the storage in hard
disk is safe. A small hard disk might be as much as 25 times larger than a
floppy disk. Storage Capacity of hard disks varies from 20 MB to several
Gega bytes like 80GB, 160GB.
7
CD-ROM: CD-ROM for Compact Disk–Read Only Memory. It is used to
store a wide variety
9
4. High Level Languages (HLL): These are referred as problem
oriented languages (POL). These are referred as third generation
languages. The advantages of these languages are
The high level languages are convenient for writing programs as
they can be written without any codes. These languages follow
rules like ―English‖ language.
Because of their English like nature, less time is required to write a
program.
3.General Purpose Packages: These packages are developed to suit
the needs of research workers / scientists in different fields. These
packages are categorized as :
Data Analysis ii) Word Processing iii) Spread Sheet iv) Graphics
and v) Databases
Data Analysis
Ex: SPSS (Statistical Package for
Social Science), MSTAT,
MICROSTAT, GENSTAT,
SAS etc.
Word Processing
Ex: WORD PERFECT, WORDSTAR, MS-Word,
CHIRATOR, NORTON EDITOR etc.
Spread Sheet
Ex: LOTUS, Qpro, VP-PLANNER, SYMPHONY, MS-Excel etc.
Graphics
Ex: LOTUS, STORY-BOARD, POWER-POINT etc.
Databases
Ex: dBASE, FOX-BASE, FOX-PRO, ORACLE, MS-Access etc.
Classification of Computers
PERSONAL COMPUTERS
4. Personal Computer: A personal computer has a Monitor (VDU),
a keyboard , Disk Drive (s), printer and CPU. The CPU of PC
has a mother board with several chips mounted on a circuit
board. The major components of the circuit board are :
Microprocessor, RAM and ROM chips and other supporting
circuits.
5. Microprocessor: The Microprocessor chip is like a brain of
human being which contains circuits and registers to perform
arithmetic, logic and control functions. i.e it contains ALU & CU.
These chips will be able to retrieve data from the input output
devices, store, manipulate and process a byte of data at a time.
There is an address bus which is built into these chips to
determine the storage locations (of RAM) of the data and the
instructions of the program.
6. Over the years, different microprocessors were developed and the
first in the series is INTEL 8080. The other procesors are 8088,
80286, 80386, 80486, Pentium I, II, III and Pentium 4. The
Pentium 4 can execute any piece of code that ran on the original
8088, but it does it about 5000 times faster.
7. Clock Speed: The speed with which the instruction is executed or
number of pulses per second is called the clock speed. It is
measured in terms of million pulses per second (MHZs).
8. The following table gives the differences among the different
processors that intel has introduced over the years :
Peripherals: The input, output and secondary storage units like floppy
drives, keyboard, mouse, etc., are called peripherals.
Classification of PCs: PCs are mainly classified on the basis of primary
memory (RAM), Microprocessor, clock speed and peripherals. The
classification is presented in the following table:
Working with personal computers
12
Drives of the computer: A computer can have Floppy Disk Drive along
with Hard Disk drives in the system. These are referred as follows:
Floppy Disk Drive : A or B
Hard Disk: C
Booting of the Computer: Booting imply ―activating‖ the
computer for working. Thus, when the computer is switched on, the
operating system residing in the floppy or in the hard disk is
transferred into the primary memory. After this, the computer is ready
to accept the commands at user terminal. If OS is not existing either in
floppy drive or in the hard disk drive, ― non-system or disk error‖ is
flashed on the screen. The booting of the computer is carried out with a
software which resides on ROM chip called BIOS ( Basic Input Output
System). Thus when a PC with system disk either in Hard-Disk Drive or
Floppy Drive is switched ―on‖, the screen finally displays one of
the following symbols with a blinking cursor at its end:
a) A:\> This imply that the computer is booted through Floppy drive
`A‘ and is ready to accept DOS commands. The symbol ―\>‖ is
referred as DOS prompt from where DOS commands can be
entered.
b) C:\> It imply that the PC is booted through the Hard-Disk Drive `C‘.
MS-DOS
MS-DOS is a collection of programs and other files. It is a single user
and single programming environment.
MS-DOS is designed to provide a method of organizing and using
the information stored on disks, application programs, system
programs and the computer itself.
13
3. A period (.) is used to separate the first part of a file name from
the extension. (LETTER.TXT, RAMA.WK1, etc.,)
4. When a file name includes an extension, it should be referred
along with its extension and not only with the first part
5. Reserved devices names are not allowed. (COMMAND.COM,
DATE, etc.,
Types of files in DOS: -
There are different types of files you can create in your computer,
according to the usage. To differentiate each file, the computer will give
an extension to identify the different types of files you have created.
Executable Files: The files with extension of either .COM or .EXE are
called executable files. These files are directly executed by typing their
names (without the extension) by the computer. A file with
.COM extension refers to COMMAND file name and the other with
.EXE extension refers EXECUTABLE program file.
Batch Files: the file containing a series of DOS commands, which are
executed automatically one at a time in the order entered, is known as
the batch file. A batch file has the extension .BAT. If the batch file is
given a special name AUTOEXEC.BAT, it is automatically executed
when the computer is switched on or during booting.
Backup Files: These are backup files of a file and have extension .BAK.
These files are such that their contents can not be altered (edited). These
files are created while working with WORDSTAR package for typing a
document.
System Files: These are program files developed for system control.
They have .SYS extension. Directory: It is a collection of files, size, date
and time of creation of files. The relation between files, directories and
disk is similar to the relation between papers, filing folders and filling
cabinets. Just as a cabinet contain papers and other folders, a directory
may contain directories also. The main directory of a drive is called
Root Directory into which several directories and sub-directories may
exist.
Ex: 1. COPY STATS MATHS copies a file ―STATS‖ with the name
―MATHS‖ on the same drive
5. DATE: It displays current date and asks for new date in (mm)-
(dd)-(YY) format. If no date is to be changed, the old date can be
retained by pressing ―enter‖ key.
Syntax: C:\> Date
6. TIME: displays current time and asks for new tine and if no new
time is to be entered, pressing
―enter‖ retains the old
time
Syntax: C:\> Time
15
7. VER: displays the version of DOS
8. CLS : when you want to clear the screen, type in the following
command:
C:\> CLS
i) File Allocation Table (FAT) based viruses ii )Key board viruses and
ii) File based viruses
Some of the well known viruses are:
WINDOWS
Menu bar: The Menu bar displays a list of commands that can be used
to perform various tasks. ( this will be below the Title bar). Menu items
are commands within the menu bar that allow choosing of functions &
tasks.
WINDOWS EXPLORER
Windows Explorer is divided into 2 panes. The left pane displays the list
of drives & folders on the computer. The right pane displays the
contents of the selected drive or folder. By using these two panes, you
can browse through the contents of your computer in a single window.
Folder is a list of files (similar to Directory in MS-DOS)
Creating files:
After creating a folder, we can move files into it or create new files within
the folder.
Selecting files & folders:
i) To select all the files in a folder:
Click the folder in the left pane All the files will be displayed in
the right pane.
To select all --CTRL + A
ii) To select consecutive files:
Use shift key + arrow keys
iii) To select non-consecutive files:
In the right pane of Windows Explorer, click the first item to
be selected.
Hold down CTRL
Click all other items that need to be selected.
20
Copying Files & Folders:
Once we select the files to be copied, the next
step is to copy the files. To copy the files &
folders:
i) In Windows Explorer, select the file or folder to be copied.
ii) On the edit menu click copy
( the files are copied to the clip board. The clip board is a
location where the information you copy or cut is temporarily
stored)
iii) Click the destination folder in the left pane.
iv) In W.Exp, click paste in the Edit menu.
Alternatively, to copy a file or folder, select it and then press ctrl +C. To
paste, press ctrl+ V
WORD PROCESSING
MS-WORD
MS- Word is a word processor. The extension name of MS- word is .doc.
It is an application used to create, edit, print and save a document. It
allows the user to insert pictures, tables, charts, drawings & features
that will make the text richer & more interactive.
( The term document refers to a file created using word processor)
Starting MS-Word:
Start All Programs MS-
office MS-word MS-word icon
is w.
Standard Toolbar:
This toolbar contains buttons to allow you to perform the basic operations
such as opening and closing a document, moving and printing data.
Formatting Toolbar:
The formatting Tool bar is the easiest way to change many attributes of a
text.
24
Style menu: Allows you to make your text Bold, Italic,
underlined… depending on the style you choose.
Font : Allows you to change the font by clicking on the drop-
down arrow on the right of the font name box. You can view a list
of fonts available, you can scroll down to view more fonts and
select the font name you wish to use by clicking on its name.
Font size : Allows you to change the font size by clicking inside the
Font size box and entering a value or by clicking on the drop-down
arrow on the right of the box to view a list of sizes available. Select
then a size by clicking on it.
Note : A Font size of 11 or 12 is best for paragraphs of text.
Bold, Italic, Underline : Each button respectively allows you to
make your text appear as bold, italic or underlined.
Alignment : Each button respectively allows you to make your
text aligned to the left, center or right side of the page. You can
also justify the text across the page using the justify button.
Line spacing : Allows you to set the amount of space that word puts
when go to a new line.
Text orientation : Allows you to change the typing direction of
your text, from left to right or right to left manner.
In order to change the format of the text you just typed, it must be first
highlighted, i.e selected with the mouse cursor.
To highlight the whole text or part of it, locate the mouse at the start of
the text you wish to highlight and click the left button, then drag the
mouse over the desired text while keeping the left mouse button pressed.
Shortcuts used for selecting a portion of the text:
Whole word : Double click within the word.
Whole paragraph: Triple click within the paragraph.
Sentence : ctrl + click in a sentence
Entire document : Edit select all ( ctrl + A)
Deleting text:
Use the BACKSPACE or the DELETE key to delete text.
BACKSPACE key will delete text to the left of the cursor and
DELETE key will erase text to the right.
To delete a large section of text, highlight the text using any of the
methods outlined above and press the DELETE key.
Standard Toolbar
The Standard toolbar, located beneath the menu bar, has buttons
30
for commonly performed tasks like adding a column of numbers,
printing, sorting, and other operations. Excel let's you customize the
toolbar or even display multiple toolbars at the same time. The
Standard Excel XP toolbar appears in the figure below.
Formatting toolbar
The Formatting toolbar, located beneath the Standard toolbar bar,
has buttons for various formatting operations like changing text size
or style, formatting numbers and placing borders around cells.
Name box
The Name box displays the reference of the selected cells in the form of
column label followed by row number.
Creating a New Workbook:
The steps to create a new workbook are,
1. On the File menu, click New.
The new workbook task pane appears at the right side of the screen.
Click blank workbook.
A new workbook with 3 worksheets appears. By default, the
workbook is named as Book 1, and sheet 1 is the active worksheet &
A1 is the active cell.
Entering data:
You can enter text, numbers and dates in an Excel worksheet.
To enter data of any type,
1. Select the cell by clicking on it.
2. Type in the information.
3. Press the Enter key.
When you begin typing, your data also appears in the formula bar.
Editing text:
The easiest way to edit the contents of a cell is to select the cell and
then retype the entry. The new entry replaces the old contents.
Alternatively, to edit the data in a cell, press F2.
Ex: Suppose you find that in the cell A6, you have entered the marks
as 78 instead of 87, then click on A6 and type 87 enter
Formatting Numbers:
Formatting data in a worksheet includes changing the number of
decimal places, displaying dates, times & fractions and adding currency
symbols.
To format the number in a cell, the steps are:
Format/Cell/N/umber/Decimal places/2
32
1. Rest the mouse pointer over the column before which you want to
insert the new Column.
2. On the Insert menu, click columns.
Changing Row height & Column width:
By default, every row is 12.75 points high and every column is 8.43
characters wide. As you fill it with data, however you have to change the
size of rows & columns so that it is fitted to the length of the data. To
Resize a column:
1. Rest the mouse pointer on the column boundary on the right side.
2. The shape of the mouse pointer changes to
3. Drag the boundary until the required width is obtained.
(OR)
1. The column which is to be adjusted is made active by clicking on
column letter.
2. The column option is selected from the Format menu.
3. Click on the width option. A dialogue box is displayed.
4. Type in the required size of the column in the
text box column width. Similarly, Row height can
also be adjusted by selecting the rows.
Sorting: Highlight the cells that should be sorted and click the sort
Ascending (A-Z) button or Sort Descending (Z-A) button found on the
Standard toolbar.
Printing: To print the worksheet, select File Print from the Menu bar
(or) click on the Print button
from the Standard Toolbar (or) follow the key sequence Ctrl + p
Inserting Page breaks: To set the page breaks within the worksheet,
select the row you want to appear just below the page break by clicking
the row‘s label. Then choose Insert page break from the Menu bar.
When you attempt to print a worksheet Excel automatically inserts page
breaks view.
File menu page break preview
The page breaks are shown in dasher lines. If the automatic allocation
of page breaks does not satisfy with your requirements, you can add
the page breaks in the required space.
Step 1: select a cell above which the page break is needed. After that,
select the full row until the data in the sheet exists.
Step 2: select insert
page break Saving a
workbook:
To save a workbook,
File Save (or)
Ctrl +S (or)
click on the save button on the Tool bar.
Save dialogue box appears. Type the name and click Save.
Formulas:
In Excel. One of the powerful features is formulas. A formula is an
equation that is used to perform calculations on data in a worksheet.
We can use formula to perform Mathematical, Statistical & date/time
33
operations on a single value or a set of values by using operators.
The cells in which formulas are stored, display the result of the
calculation and not the formula. In Excel, a formula starts with an
equal (=) sign and should be followed by the operation to be
performed. We can use any number of operators in a single
formula. MS- Excel evaluates the formula according to the order
of precedence of the operators.
34
Step i) Click the cell I3
ii) Type ― = ( C3 * F3)
iii) press Enter
The result ―23607‖ will be displayed in the cell I3.
Functions :
A function is a built-in, readymade and frequently used formula that
accepts data, perform calculations & returns results.
To enter a function in a cell,
i) Click the cell in which you want the result of the function to be
displayed.
ii) Type ―=‖ sign.
iii) Type the function name.
iv) Type the cell range & other arguments within brackets.
v) Press Enter.
Note : To specify a range of cells, a colon (:) is used between
the first & last cell addresses. Example: =Average(B1: B10)
Calculates the average of the values in the cells B1 to B10
Mathematical functions with syntax and purpose:
i) Sum( number1, number2,…) – gives the sum of the values in a
specified range
ii) Abs( number) - gives the absolute value of the number
iii) Fact( number) - gives the factorial of the number
iv) Sqrt(number) - gives the square root of the number
v) Log(number) - gives the logarithm of the number
Statistical functions with syntax and purpose:
i) Average( range of cells) - calculates the average of the values in a
specified range
ii) Stdev(range of cells) - calculates the standard deviation of the given
data
iii) Mean( range of cells) - calculates the mean of the given data
iv) Max( range of cells) - gives the maximum value within the
range specified
v) count( ) - counts how many numbers are there in the list of
arguments
Function Wizard :
The Function Wizard is a tool in Excel through which a user can enter
formulas in the correct format without any errors. It contains all the
functions according to the type such as Mathematical, Statistical,
Date/time, Financial etc.
Column Chart: Column charts are one of the most common types of
graphs used to display data.
A column chart represents data in the form of a series of vertical bars.
Each bar represents a value.
For example, to draw a column chart for the production of different
crops in a region:
36
To construct a bar chart for the above data:
Step i) Enter the data in a table.
ii) Open the Insert Menu and select Chart
iii) In the Chart Wizard – Step 1 of 4, select Column chart and click
Next
iv) In the step 2 of 4, enter chart source data
v) In the step 3 of 4, enter the chart options like label of the chart
vi) In the step 4 of 4, give the chart location where you want the
chart to be located and press Fin
Pie Chart:
For example, to draw a pie chart for the production of different crops in
a region:
37
Accessing the data analysis tools: The Analysis Tool Pak includes the
tools described below. To access these tools, click Data Analysis on the
Tools menu. If the Data Analysis command is not available, you need to
load the Analysis Tool Pak add-in program.
Analysis Tools:
ANOVA: Single factor
ANOVA: Two-Factor with
replication ANOVA: Two-
Factor without replication
Correlation
Covariance
Descriptive
statistics
F-test two-sample
for variances
Histogram
Regression
t-test: two sample assuming equal variances
t-test: two sample assuming
unequal variances Z-test: two
sample for means
Steps to use Analysis Tools:
Step i) From the Menu bar choose Tools and click on Data Analysis
ii) When the Data Analysis dialogue box appears, click on the one you
want.
iii) The corresponding dialogue box appears. Enter the Input
range and Output range (addresses of the cells)
iv) give the address of the cell where you want the result to be shown.
iv) click OK
v) The result will be given in the corresponding output format.
Step i) From the Menu bar, choose Tools and click on Data Analysis.
ii) Select Correlation in the Data Analysis Dialogue box and click OK.
iii) When the Correlation dialogue box appears, enter the Input
range and also give the output range where you want the result to
be shown, clock OK.
v) the
result will be shown in the following format:
Summary output:
Protein gain in
content weight
Protein
content 1
gain in
weight 0.989783 1
38
Ex 2: Following is the data of head and body weights of 5 insects. Find the
regression equation of y on x
Step i) From the Menu bar, choose Tools and click on Data Analysis.
ii) Select Regression in the Data Analysis Dialogue box and click OK.
iii) When the Regression dialogue box appears, enter the Input Y range
and input X range.
iv) give the output range where you want the result to be shown, clock
OK.
v) The result will be shown in the following format.
SUMMARY OUTPUT
Ex 3:
The daily production of two pesticide factories is recorded as follows.
Factory 1 2 3 4 5 6 7 8
A 12 16 9 13 15 17 20 23
B 8 13 21 16 11 12
MS-ACCESS
40
Com Pu
mand rp
os
e
Create Used to create a table by entering values directly in a row
table by and column format
enterin
g data
Design Used to assign fields for the new table and modify field
view properties
Table Used to create a table through a guided sequence of steps
wizard
I. Create Table by entering data:
Click on Table (object) in the main switch board.
Click on create table on Datasheet view now a window appears
here we find fields ( field1, field2,……)
Give the field names ( Name, roll no., marks etc)
Click on close button of the table and save the table with some name
To enter details into the table, click on table in the main switch
board and double click on the table name.
Enter the details
42
Queries :
By using queries we can view, change and analyze data in
different ways. You can also use them as the source of records
for forms and reports.
You can bring together data from multiple tables and sort it in a
particular order.
You can perform calculations on groups of records.
Forms :
In a table, number of records are displayed at a time. But, if the
table has many fields, then it may not be possible for a user to
view all of them. The screen may be too small to fit it. The user
may have to scroll horizontally or vertically to view the rest of
the fields/ records.
In forms, the data can be displayed as per the users
requirement. The records are generally displayed one at a time.
The fields can be arranged as the user wants it. Pictures can be
added to a form. The display and contents of the form is
controlled fully by the user.
In forms there are 3 views,
i. Design ii. Datasheet & iii. Form view
The datasheet view shows many records whereas form view
displays single record. You can toggle between these three
views using the View Tool.
Report:
The data shown in a table, Query and forms are meant for
displaying it on screen, but when you take the printout or the
Hard copy, it is known as Report. In the database window, the
open button is replaced by the preview button, when you click the
report tab. Reports can be viewed either in print preview mode or
design mode. Data cannot be edited in the reports. The report
preview shows how the data will appear on taking out the
printouts.
Types of Networks
Networks can range from a small group of computers linked
together in a class room to thousands of computers linked together
across the globe. Depending on the geographical location, networks can
be classified as
a) LAN ( Local Area Network)
b) MAN ( Metropolitan Area Network)
c) WAN (Wide Area Network)
E-Mail
E-mail or electronic mail is a service for sending or receiving
messages electronically through a computer network. The electronic
mail uses various technologies that support electronic transmission of
text, data and graphics.
46
47