Professional Documents
Culture Documents
Pramod
Pramod
belongs
To:____________________________
_______________________________
_______________________________
TABLE OF CONTENTS
WHY WE ARE USING COMPUTERS: ................................................................................................1
WHERE WE ARE USING COMPUTERS: .............................................................................................1
HISTORY OF COMPUTER: ...............................................................................................................1
COMPUTER ...................................................................................................................................1
SYSTEM: ........................................................................................................................................1
DEFINITION: ..................................................................................................................................1
FEATURES OF COMPUTER: .............................................................................................................1
DATA:............................................................................................................................................2
BLOCK DIAGRAM OF THE COMPUTER: ...........................................................................................2
GENERATIONS OF THE COMPUTERS: ..............................................................................................5
STORAGE DEVICES: - ......................................................................................................................6
TYPES OF COMPUTERS: .................................................................................................................8
SOFTWARE: ...................................................................................................................................9
OPERATING SYSTEMS: ...................................................................................................................9
BOOTING: .....................................................................................................................................9
TO CHANGE BACKGROUND OF DESKTOP AND SCREEN SAVER: ..................................................... 10
DESK TOP ICONS: ......................................................................................................................... 11
TO DELETE A FOLDER/FILE ........................................................................................................... 11
TO RESTORE THE DELETED ITEMS................................................................................................. 12
START MENU: .............................................................................................................................. 12
WINDOW PROPERTIES:................................................................................................................ 12
CREATE A FOLDER........................................................................................................................ 13
TO RENAME A FOLDER/FILE ......................................................................................................... 13
HIDE AND UNHIDE A FOLDER/ FILE .............................................................................................. 13
STEPS TO ADJUST SYSTEM DATE AND TIME FORM TASK BAR ....................................................... 14
STARTING MICROSOFT WORD: .................................................................................................... 17
QUICK ACCESS TOOL BAR: ........................................................................................................... 17
OFFICE BUTTON:.......................................................................................................................... 18
HOME TAB: ................................................................................................................................. 19
Clipboard Group: ....................................................................................................................... 19
Font Group: ............................................................................................................................... 20
Paragraph group: ....................................................................................................................... 21
Styles group ............................................................................................................................... 23
editing group ............................................................................................................................. 23
INSERT TAB ................................................................................................................................. 23
PAGES GROUP ........................................................................................................................... 23
Table Tools: (Design Tab): ......................................................................................................... 25
Table Tools: (Layout Tab): ......................................................................................................... 25
Illustrations group: .................................................................................................................... 29
Format Picture Tab: ................................................................................................................... 30
Link group: ................................................................................................................................. 31
Header and Footer group: ......................................................................................................... 32
Text Group: ................................................................................................................................ 33
PAGE LAYOUT TAB....................................................................................................................... 35
Page setup group:...................................................................................................................... 35
Page background group: ........................................................................................................... 37
REFERENCE TAB: .......................................................................................................................... 37
MAILINGS TAB:............................................................................................................................ 38
REVIEW TAB: ............................................................................................................................... 39
proofing group:.......................................................................................................................... 39
Protect group:............................................................................................................................ 40
VIEW TAB: ................................................................................................................................... 40
Document Views Group: ........................................................................................................... 40
Show/Hide Group: ..................................................................................................................... 41
ZOOM TAB: ................................................................................................................................. 42
WINDOW group:........................................................................................................................ 42
MACROS: ................................................................................................................................... 43
STARTING MICROSOFT EXCEL: ..................................................................................................... 48
HOME TAB: ................................................................................................................................. 48
Alignment Group: ...................................................................................................................... 48
NUMBER GROUP: ...................................................................................................................... 49
STYLES GROUP: .......................................................................................................................... 49
CELLS group: .............................................................................................................................. 51
Editing group ............................................................................................................................. 54
INSERT TAB: ................................................................................................................................ 55
Table group:............................................................................................................................... 55
Charts: ....................................................................................................................................... 55
PAGE LAYOUT TAB: ..................................................................................................................... 55
Page setup Group: ..................................................................................................................... 55
FORMULAS TAB: .......................................................................................................................... 56
Mathematical & Trigonometry functions: - .............................................................................. 56
Statistical Functions:.................................................................................................................. 58
Text functions: ........................................................................................................................... 59
Date & Time Functions: - ........................................................................................................... 60
Logical functions: ....................................................................................................................... 60
DATA TAB:................................................................................................................................... 61
Data Tools group: ...................................................................................................................... 61
VIEW TAB: ................................................................................................................................... 64
Work book views Group: ........................................................................................................... 64
Macro: ....................................................................................................................................... 65
ADD A NEW SLIDE........................................................................................................................ 70
Add text to a placeholder .......................................................................................................... 70
Add text to a text box ................................................................................................................ 70
Adding Animation, Sound, and Movies ..................................................................................... 70
To apply predefined animations ............................................................................................... 70
To change the animation order ................................................................................................. 71
To add sound to an animation .................................................................................................. 71
To apply transitions ................................................................................................................... 71
To set the transition speed........................................................................................................ 71
To insert a sound clip ................................................................................................................ 71
To create a custom slide show .................................................................................................. 71
To start a custom show ............................................................................................................. 71
SOFTWARE .................................................................................................................................. 73
PROGRAMMING .......................................................................................................................... 73
INTRODUCTION TO C ................................................................................................................ 74
Importance of C: - ...................................................................................................................... 74
History of C: - ............................................................................................................................. 74
Basic structure of C language: - ................................................................................................. 75
Data types:................................................................................................................................. 79
Function: .................................................................................................................................... 81
Operators in C -language: .......................................................................................................... 83
CONTROL STATEMENTS: .............................................................................................................. 86
Conditional statements: ............................................................................................................ 86
Select statement: ...................................................................................................................... 90
Jumping Statement: (or Branching Statement) ........................................................................ 93
Iterative statements (loops): ..................................................................................................... 93
STRINGS .................................................................................................................................... 103
Inputand Output String Functions:.......................................................................................... 104
ARRAYS: .................................................................................................................................... 106
POINTERS .................................................................................................................................. 111
USER DEFINED DATA TYPES: ...................................................................................................... 114
Structures ................................................................................................................................ 114
Unions:..................................................................................................................................... 116
typedef: ................................................................................................................................... 117
Enumerations: ......................................................................................................................... 117
FILES MANAGEMENT ................................................................................................................. 118
Text Files: ................................................................................................................................. 119
Sequence files:......................................................................................................................... 122
Computer Fundamentals
COMPUTER FUNDAMENTALS
WHY WE ARE USING COMPUTERS:
To store the data, to perform all type of calculations like scientific and commercial applications, for
entertainment, etc.
HISTORY OF COMPUTER:
Computer is invented by Charles Babbage in 19th century. First, he invented difference engine and
later analytical engine as calculating machine.
Later john nipper related to Greek scientist combine an electronic engine to that calculating
machine.
COMPUTER
The full form of computer tells us what the exact use of the computers is.
C Commonly
O Operating
M Machine
P Particularly
U Used For
T Trade (Business)
E Education
R Research (Development Process)
SYSTEM:
Computer performs any operation depending upon a principle called IPO cycle. Hence, it is called as
System.
DEFINITION:
Computer is an electronic device which inputs the data, processes it and gives accurate result.
It allows DC power for its application
We will get AC (Alternative Current) from our plug. But there is a device called SMPS (Switch mode
power supply) converts coming AC into required DC (Direct Current).
FEATURES OF COMPUTER:
DATA:
It is a collection of raw facts. It consists of alphabets from a-z, numerals from 0-9 and special
ha a te s. The o d data as de i ed f o a Lati o d alled DATUM , hi h ea s olle tio
of something.
INPUT DEVICES:
The main function of the input devices is to give the input instruction or set of input instructions to
the C.P.U
1) Key board: -
This is the major input device used to give different types of data or instructions to the C.P.U.
Keyboard contains following keys:
a) Esc: To exit from the application in the middle.
b) Function keys:
These keys are used to perform special functions and these keys are starts from F1 –
F12.
E.g.: F1 To get the Help for respective application.
c) Alpha-Numeric keys:
These keys are used to enter all the characters from a-z and A – Z and to enter all the
numbers from 0 – 9.
d) Control keys:
Control keys are used to implement some short cut steps like to close the applications,
etc.
E.g.: Ctrl, alt, shift, caps lock, etc.
e) Special keys:
To perform some special operations, like to move the cursor position to end of the
sentence or to home of the sentence, etc.
E.g.: End, home, delete, backspace, insert, page down, page up, etc.
f) Navigation keys or cursor control keys:
Na igatio ke s a e used to o e the u so positio i all di e tio s su h as left ← ,
ight → , up ↑ a d do ↓
g) Numerical pad:
Here the arrangement of keys is same like as calculator. So, that we can enter numbers
easily and we can also perform all arithmetical operations easily.
2) Mouse:
It is the input device and used to move the cursor position in all directions easily.
3) Scanner:
Scanners are used to scan our photographs into the system.
4) Joystick:
It is especially used to play the games.
5) Barcode Reader:
A barcode reader (or barcode scanner) is an electronic device that can read and output
printed barcodes to a computer.
1. [CRT (Cathode Ray Tube)] 2. [LCD (Liquid Crystal Display)] 3. [LED (Light Emitting Diodes)]
Advantages:
1) Calculations
2) Storing of information up to one lakh characters.
3) Size is reduced Transistor
4) Language changed to High level (Code language)
3RD GENERATION COMPUTERS:
The du atio sta ts f o to a d used ha d a e o po e t is la ge s ale i teg ated
hips LSIC . I this ge e atio la guages a d so e ulti use
operating systems had developed.
Advantages:
Integrated
1) Calculations
circuit
2) Storing of information up to ½ Million characters.
3) Multi User Operating System is introduced.
4TH GENERATION COMPUTERS
The du atio sta ts f o to a d used ha d a e o po e t is Ve la ge s ale
i teg ated hips VLSIC .
Advantages:
1) Calculations
2) Business Applications, Scientific applications, Software Development.
5TH GENERATION COMPUTERS:
The duration starts from 1985 and till now running. Used hard ware component is
Mi op o esso s .
Advantages: Micro
1) Calculations Processor
2) Special applications like Robots, Population calculation.
3) Internet and E-Mail Communications.
STORAGE DEVICES: -
Computer memory is classified into two types of Storage devices…
1) Primary storage devices.
2) Secondary storage devices.
RAM
In this type of memory information stored temporarily until the power supply is off or
respective application is closed.
b) ROM (Read only Memory)
The other name given for this memory is secondary storage device where data stored
permanently.
c) PROM (Programmable read only Memory):
In this type of memory, we can write some new programs.
d) EPROM (Erasable Programmable read only Memory):
In this type of memory, we can write some new programs and erase previous programs by
writing some new programs in the place of existing programs.
e) EEPROM (Electrically Erasable Programmable read only Memory):
In this type of memory, we can write some new programs and erase previous programs by
applying some electrical signals or high voltage signals like sunlight, etc.
2) SECONDARY STORAGE DEVICES: -
Here the data is stored permanently. (When the system power is on or in off stage).
1) Hard disk
2) C.D (Compact Disk)
3) Pen drives (Removable Disks)
4) DVD (Digital versatile disk)
Hard disk
TYPES OF COMPUTERS:
There are mainly 3 types of computers
1) ANALOG COMPUTERS:
These computers are used to just process the information that is continuously varying like
measurement of temperature, voltages, etc. It has no storage capacity. But it has little bit of
memory.
2) DIGITAL COMPUTERS:
These computers work on discreet numbers and have large amount storage capacity. These
computers are particularly used for data processing, scientific calculations, commercial applications,
etc.
There are following 3 types of digital computers
a) Main frame Computers:
These computers are specially used in huge networks. It has large amount of storage capacity.
Especially these computers are used for population calculating, etc. These computers are
connected with W.A.N (Wide Area Network) connections.
b) Mini Computers:
These computers are used in smaller networks and it has large amount of storage capacity but
less than that of main frame computers. These computers are connected with L.A.N (Local Area
Network) connections.
c) Micro Computers:
These computers are the general-purpose computers used for smaller applications like preparing
Documents, Data storing, etc.
There are following 3 types of Microcomputers.
personal computers. (PC)
PC/XT (Extended Technology)
PC/AT (Advanced Technology)
SOFTWARE:
SOFTWARE
Software is a program or collection of several programs.
This Software is further classified into following 2 types
1) System software:
The Software that provides environment between the user and system is called system
software.
E.g.: Operating systems
2) Application software:
The Software that is used for particular purpose is called as application software. Generally,
la guages a d pa kages a e the atego ies of this appli atio soft a e s.
E.g.: MS-office, MS-paint, Calculator, etc.
HARDWARE:
Physical components of C.P.U are called as Hardware like Motherboard, Processor, Ram, Hard disk
and S.M.P.S.
OPERATING SYSTEMS:
Operating systems are mediators between software and hardware. And it provides an interface or
environment between user and system to complete his requirements.
There are following 2 types of operating systems
1) SINGLE USER OPERATING SYSTEM:
In this operating system user, can provide one and only one command or instruction to the system
at any time. We are unable to implement networking concepts using this type of Operating System.
E.g.: Ms-Dos
2) MULTI USER OPERATING SYSTEM:
In this operating system user, can give multiple commands or instructions to the system at the same
time. For networking concept, we need to use any one of Multi user operating systems.
E.g.: MS-Windows, LINUX, UNIX, etc.
BOOTING:
It is an activity of loading the Operating System files into the Computer Memory i.e., RAM
Booting is of two types:
COLD BOOT: If we boot the system for the first time is called Cold Boot
WARM BOOT: A booted system rebooted is called as Warm Boot.
MICROSOFT WINDOWS
It is Multi user operating system or Multi-tasking operating system that is no. of operations can
be implemented at the same time or user can give number of commands at a time.
It is GUI (Graphical User Interface) based Operating system. That is user can interact with the
system through some graphical steps.
It is User Friendly Operating System that is every one can work with the system very easily.
Networking concepts are possible by using this Operating system.
MS-windows consists windows, desktop, all possible Colours, Pictures, etc.
A desktop contains icons, taskbar, backgrounds (wallpapers), etc.
Windows Versions
Version Year
Windows 3.1 1993
Windows 95 1995
Windows 98 1998
Windows 2000 2000
Windows ME(Millennium) 2000
Windows XP 2001
Windows vista 2007
Windows7 2009
Windows 8 2012
Windows 8.1 2014
Windows 10 2015
DOS WINDOWS
It is a 16-bit operating system It is a 32-bit and 64-bit operating system
It provides CUI (Character User Interface) It provides GUI (Graphical User Interface)
It is a Single User operating system. It is a Multi User Operating System
It is a single window operating system It is a Multi-Tasking operating system
It uses keyboard as input device It uses keyboard & mouse as
It uses command based approach It uses menu based approach
It does not support plug & play technology It supports plug & play technology
TO DELETE A FOLDER/FILE
1) Select Folder/File that you want to delete
2) Right click on that Folder/File
3) Click on Delete
4) Click on Yes to delete. (Or) Use Delete Key form keyboard to delete a file or folder.
START MENU:
SEARCH
The Start menu includes a search box that you can use to find files, folders, and programs stored on
your computer.
POWER BUTTON OPTIONS
There are now more options on the Shutdown Window menu:
a) Shutdown – Closes all applications and Windows, turns off the computer.
b) Switch User – Co i atio of Lo k a d sho i g the logo s ee fo a othe use .
c) Log Off – Closes all applications and ends the session for that login. The computer stays on.
d) Lock – Saves everything including applications just as they are and you remain logged in.
Allow another user to log on.
e) Restart – Restarts the computer.
f) Sleep – Saves everything including applications just as they are, but does not turn the
computer completely off.
ALL PROGRAMS:
We can open default programs like calculator, notepad, paint etc. from the accessories folder and
installed programs like, MS Office, Page maker, Typing Master etc. from this All Programs.
WINDOW PROPERTIES:
Close
Maximize
Menu Bar
TO RENAME A FOLDER/FILE
1) Select Folder/File that you want to rename
2) Right click on that Folder/File
3) Click on Rename
4) Type the new name and press enter
Step 2
Step1
SHORTCUT KEYS
1) CTRL+C Copy
2) CTRL+X Cut
3) CTRL+V Paste
4) CTRL+Z Undo
5) DELETE to delete selected item.
6) SHIFT+DELETE Delete the selected item permanently without placing the item in the
Recycle Bin
7) F2 key Rename the selected item.
8) CTRL+RIGHT ARROW Move the insertion point to the beginning of the next word
9) CTRL+LEFT ARROW Move the insertion point to the beginning of the previous
word
10) CTRL+DOWN ARROW Move the insertion point to the beginning of the next paragraph
11) CTRL+UP ARROW Move the insertion point to the beginning of the previous paragraph
12) SHIFT + Arrow keys Select more than one item in a window (or) select text in a
document.
13) CTRL+A Select all
14) F3 key Search for a file or a folder
15) ALT+ENTER View the properties for the selected item
16) ALT+ENTER Display the properties of the selected object.
17) ALT+SPACEBAR Open the shortcut menu for the active window.
18) CTRL+F4 Close the active document in programs that enable you to have
multiple documents open simultaneously.
#2-2-132, Main Road, Naimnagar, Hanamkonda. Cell: 9059981526. P a g e 14 | 130
Microsoft Windows
19) ALT+TAB Switch between the open items.
20) ALT+ESC Cycle through items in the order that they had been opened.
21) F6 key Cycle through the screen elements in a window or on the desktop.
22) F4 key Display the Address bar list in My Computer or Windows Explorer.
23) SHIFT+F10 Display the shortcut menu for the selected item.
24) CTRL+ SHIFT+ N New Folder.
25) CTRL+ESC Display the Start menu.
26) ALT+ Underlined letter Display the corresponding menu.
27) F10 key Activate the menu bar in the active program.
28) RIGHT ARROW Open the next menu to the right, or open a submenu.
29) LEFT ARROW Open the next menu to the left, or close a submenu.
30) F5 key Update the active window.
31) BACKSPACE View the folder one level up in My Computer or Windows Explorer.
32) ESC Cancel the current task.
MICROSOFT WORD
This is the application software available in Ms-office package and particularly used to create the
documents like letters, Resumes, to prepare the notes, etc.
This product invented by Microsoft Corporation.
The e te sio a e of the do u e t is . Do
Executable name on RUN: winword
HOME TAB:
CLIPBOARD GROUP:
1) CUT: (CTRL + X)
This option is used to cut the selected text.
Steps:
1. Select the text which you want to move.
2. Click on Ho e Ta
3. Click on Cut i o located on the Home tab.
2) COPY: (CTRL + C)
This option is used to copy the selected text.
Steps:
1. Select the text which you want to copy.
2. Click on Ho e Ta
3. Click on Cop i o located on the Home tab.
FONT GROUP:
1) FONT:
This option is used to apply different types of fonts to the selected text.
Steps:
1. Select the required text.
2. Click on the Fo t field on the Home tab.
3. Click on the drop-down arrow beside the font field.
4. Scroll through the list until you find the font you want to use.
2) FONT SIZE:
We can increase or decrease the size of selected text by using this option.
Steps:
1. Select the required text.
2. Click on the Fo t size field on the Home tab.
3. Click on the drop-down arrow beside the Font Size Field.
4. Select a different size from the drop down list.
3) FONT STYLES:
We can change the font styles like Bold, Italic and Underline.
Steps:
1. Select the required text.
2. Click on B i o f o the Ho e ta fo Bold st le. Ct l + B
3. Click on I i o f o the Ho e ta fo Itali st le. Ct l + I)
4. Click on U i o f o the Ho e ta fo U de li e St le. Ct l + U
4) TEXT EFFECTS:
We can apply effects to the selected text like, Strike Through, super script and sub script.
Steps:
1. Select the required text.
2. Click on abc i o f o Ho e ta to appl St ike Th ough effe t.
3. Click on X2 i o f o Ho e ta to appl Supe S ipt . Ct l + Shift + =
4. Click on X2 i o f o Ho e ta to appl Su S ipt . Ct l + =
PARAGRAPH GROUP:
Styles are a set of pre-defined text formats. We can set the text styles to Heading, Titles and Sub-
Titles.
Steps:
1. Select any style from the Styles Group under the Home tab.
2. Start typing the text; the text will appear in the format of selected style.
EDITING GROUP
1) FIND: (CTRL + F)
This option is used to find specified word or information in the document.
Steps:
1. On the Home tab, in the Editing group, click on Fi d Icon.
2. In the Find what box, type the text that you want to search for.
3. Click on Fi d Ne t button.
2) REPLACE: (CTRL + H)
This option is used to replace an existing text in the document with a new text.
Steps:
1. On the Home tab, in the Editing group, click on Repla e Icon.
2. In the Find what box, type the text that you want to search for.
3. In the Replace with box, type the replacement text.
4. To replace the selected text, click on Repla e Button.
5. To replace all the repeated text, click Repla e All Button.
3) SELECT ALL: (CTRL + A)
This option is used to select all the text in the document.
Steps:
1. On the Home tab, in the Editing group, click on dropped-down arrow of Sele t Icon.
2. Click on Sele t All .
INSERT TAB
PAGES GROUP
1) COVER PAGE:
This option is used to insert a pre-formatted cover page to the document.
Steps:
1. Click on I sert Ta select Cover page, the cover page drop down menu will be
displayed.
2. Select the pre-formatted options under cover page.
1) TABLE STYLES:
After create a table, we can change format of the entire table by using Table Styles. By placing
mouse pointer over each of the pre-formatted table styles, you can preview what the table will look
like.
Steps:
1. Click in the table that you want to format.
2. Under Table Tools, click the Design tab.
3. In the Table Styles group, place the mouse pointer over each table style until you find a
style that you want to use.
4. Click on the style to apply it to the table.
5. In the Table Style Options group, select or clear the check box next to each the table
element to apply or remove the selected style.
2) TABLE BORDERS:
You can add or remove borders to format a table the way that you want.
Add Borders:
Steps:
1. To add table borders
2. Under Table Tools, click the Layout tab.
3. Click on Select, and then click Select Table.
4. Under Table Tools, click the Design tab.
5. In the Table Styles group, click Borders.
6. Click one of the pre-defined border sets.
7. Click Borders and Shading, click the Borders tab, and then choose the options that you
want.
Remove Borders:
Steps:
1. To remove table borders from the whole table
2. Under Table Tools, click the Layout tab.
3. In the Table group, click Select, and then click Select Table.
4. Under Table Tools, click the Design tab.
5. In the Table Styles group, click Borders, and then click No Border .
ILLUSTRATIONS GROUP:
LINK GROUP:
Headers and footers are the text, or graphics, that appear at the top and bottom of a page. After you
set up a header and footer, they will appear on all pages. We can also add a page number, a
company logo, the document title or file name to a header or footer.
1) HEADER:
Steps:
1. Click on the Insert tab at the top, move to the Header & Footer group on the ribbon and
click on the [Header] button.
2. Click on the Edit Header option which is found just under the built-in headers.
3. The Header and Footer Tools Design ribbon is displayed.
4. If you want a header, type the required text into the header box. (E.g.: Title of the
Document).
TEXT GROUP:
1) TEXT BOX:
A text box is an object that you can add to document and can type text in it.
Steps:
1. On the Insert tab, in the Text group, click Text Box, and then click Draw Text Box.
2. Click in the document, and then drag to draw the text box the size that you want.
3. To add text to a text box, click inside the text box, and then type the text.
4. To delete the text box, click the border of the text box that you want to delete, and then
press DELETE key.
1) MARGINS:
This option is used to set the Margins to the entire document. You can use the default page margins
or you can specify your own.
Steps:
1. On the Page Layout tab, in the Page Setup group, click Margins.
2. Click the margin type that you want. For the most common margin width, click Normal.
3. You can also specify your own margin settings. Click Margins, click Custom Margins, and
then in the Top, Bottom, Left, and Right boxes, enter new values for the margins.
2) PAGE ORIENTATION:
This option is used to choose either portrait (vertical) or landscape (horizontal) orientation of your
document.
Steps:
1. On the Page Layout tab, in the Page Setup group, click Orientation.
2. Click Portrait or Landscape.
To Use portrait and landscape orientation in the same document:
Steps:
1. Select the pages or paragraphs that you want to change to portrait or landscape
orientation.
2. On the Page Layout tab, in the Page Setup group, click Margins.
3. Click Custom Margins.
4. On the Margins tab, click Portrait or Landscape.
5. In the Apply to list, click selected text.
3) PAPER SIZE:
This option is used to choose a paper size from the default sizes.
Steps:
4) COLUMNS:
This option is used to split the paragraph format text into two or more columns.
Steps:
1. On the Page Layout tab, in the Page Setup group, click Columns.
2. Select any one of the column type from the drop down list, like two, three, left or right.
3. To insert more than three columns click on More Columns from drop down list, type
required no of columns in the Number of Columns box.
5) BREAKS:
This option is used to add page, section, column breaks to the document.
Insert a section break: Section breaks are used to create layout or formatting changes in a portion of
a document. You can change the formats for individual sections like, Margins, Paper size or
orientation, Page borders, Headers and footers.
Steps:
1. Select the document where you want to make a formatting change.
2. On the Page Layout tab, in the Page Setup group, click Breaks.
3. In the Section Breaks group, click the section break type that fits the type of formatting
change that you want to make.
4. To remove section break, select the section break that you want to delete.
5. Press DELETE.
6) LINE NUMBERS:
This option is used to add line numbers in the margin along with each line of the document.
Steps:
1. Go to the Page Layout tab.
2. In the Page Setup section, click the Line Numbers button.
3. In the menu that pops down, select the type of numbering you would like.
4. Continuous – will number the lines continuously throughout the document.
5. Restart Each Page – will restart at 1 at the top of each page of the document.
6. Restart Each Section – will restart at 1 at the beginning of each section.
7. None – turns off line numbering.
#2-2-132, Main Road, Naimnagar, Hanamkonda. Cell: 9059981526. P a g e 36 | 130
Microsoft Word
PAGE BACKGROUND GROUP:
1) WATER MARK:
Watermarks are text or pictures that appear behind document text. We can add text watermarks,
such as Confidential, to your document. We can insert galleries of ready-made watermarks, or can
create our own custom watermark, such as a company logo.
Steps:
1. On the Page Layout tab, in the Page Background group, click Watermark.
2. Click a pre-designed watermark, such as Confidential or Urgent, in the gallery of
watermarks.
3. Click Custom Watermark, click Text watermark and then select or type the text that you
want. You can also format the text.
2) PAGE COLOUR:
This option is used to add a back-ground colour or picture to a document.
Steps:
1. On the Page Layout tab, in the Page Background group, click Page Colour.
2. Click the Colour that you want under Theme Colours or Standard Colours.
3. Click Fill Effects to change or add special effects, such as gradients, textures, or patterns.
3) PAGE BORDERS:
This option is used to add a border around the page.
Steps:
1. To add a border to a page, click on the Page Layout tab, then on Page Borders.
2. The Borders and Shading dialog box will open.
3. Click on Page Border tab.
4. Select any one of the border style from the settings like, box, shadow or 3D.
5. Choose your style, Colour, and width.
REFERENCE TAB:
TABLE OF CONTENTS:
We can create a table of contents by choosing the heading styles — for example, heading 1, Heading
2, and Heading 3 — that you want to include in the table of contents.
Create a table of contents from built-in heading styles: Use this procedure if you created a document
by using heading styles.
Steps:
1. Click where you want to insert the table of contents, usually at the beginning of a
document.
2. On the References tab, in the Table of Contents group, click Table of Contents, and then
click the table of contents style that you want.
REVIEW TAB:
PROOFING GROUP:
PROTECT GROUP:
PROTECT DOCUMENT:
Protect document is used to protect the document with read only protection. So others cannot
modify the document.
Steps:
1. On the Review tab, in the Protect group, click Protect Document, and then click Restrict
Formatting and Editing.
2. Give click in Formatting restrictions.
3. Give click Under Editing Restrictions; select the Allow only this type of editing in the
document check box.
4. Under Start enforcement, click Yes, Start Enforcing Protection.
5. Stop Protection:
6. On the Review tab, in the Protect group, click Protect Document, and then click Restrict
Formatting and Editing.
7. In the Protect Document task pane, click Stop Protection.
VIEW TAB:
1) PRINT LAYOUT:
This option displays the document as it will appear on the printed page.
Steps:
1. Click on View Tab.
2. Under Documents Views group; Click on Print Layout.
2) FULL SCREEN READING:
This option is used to view the document in Full Screen mode; without any tools on the screen, to
maximize the space available for reading.
Steps:
1. Click on View Tab.
2. Under Documents Views group; Click on Full Screen Reading.
3) WEB LAYOUT:
This option is used to view the document; as it would look like a web page.
Steps:
1. Click on View Tab.
2. Under Documents Views group; Click on Web Layout.
SHOW/HIDE GROUP:
1) RULER:
Rulers display the vertical and horizontal measurements for margins, table rows, indents, etc.
Steps:
1. Click on View Tab.
2. Under Show/Hide group; Apply in the check box of Ruler to display rulers.
3. Under Show/Hide group; Remove in the check box of Ruler to hide rulers.
2) GRIDLINES:
Drawing gridlines are the thin lines that appear on your on-screen document in Print Layout view.
Gridlines do not print when you print a document.
Steps:
1. Click on View Tab.
2. Under Show/Hide group; Apply in the check box of Gridlines to display Grids.
3. Under Show/Hide group; Remove in the check box of Gridlines to hide remove Grids.
3) DOCUMENT MAP:
This option is used to see the structure of document in Document Map view. Here all the headings
of the document were displayed a side in special window.
Steps:
1. Click on View Tab.
2. Under Show/Hide group; Apply in the check box of Document Map to display
structure of the document.
2. Under Show/Hide group; Apply in the check box of Thumbnails to display the
document in Thumbnails panel.
3. Under Show/Hide group; Remove in the check box of Thumbnails to close the
document in Thumbnails panel.
ZOOM TAB:
ZOOM:
This option is used to increase or decrease the zoom percentage of a document.
Steps:
1. Under View tab, in the Zoom group, click Zoom.
2. Under View tab, in the Zoom group, click 100%, One Page, Two Pages, or Page Width.
3. Under View tab, in the Zoom group, click Zoom, and then enter a percentage to increase
or decrease the zoom.
(OR)
1. On the status bar, click the Zoom slider.
2. Slide to the percentage zoom setting that you want.
WINDOW GROUP:
1) NEW WINDOW:
Open a new window containing a view of the current document.
Steps:
1. Under View tab, in the Window group, click New Window.
2. Original document displays as 1:1, duplicate display as 1:2.
2) ARRANGE ALL:
This option arranges all the opened documents side by side on the screen.
Steps:
1. Under View tab, in the Window group, click Arrange All.
2. Opened documents display in Tile position on the screen.
3. Click in any one of the document to work.
3) SPLIT WINDOW:
MACROS:
MICROSOFT EXCEL
It is Application software available in Ms- Office. This is used to create the Workbooks. Here the
information is in the form of rows and columns.
A workbook contains 256 no of work sheets.
Each work sheet contains 1048576 rows and 16384(XFD) columns.
Totally A sheet contain 1048576*16384 cells.
A cell can identify by its cell name.
To move to the Last row press Ctrl +
To move to the Last Column Press Ctrl +
To move to the first-row Press Ctrl +
To move to the first column Press Ctrl +
The extension name for Excel file is . ls
Executable name to open Excel from Run is Excel.
Row
Column
ALIGNMENT GROUP:
1) TEXT ALIGNMENTS:
Text in the cells can be adjusted according to the alignment settings like Top Align, Middle Align and
Botto Alig et .…
Steps:
1. Select the cells which you want to change the alignments.
2. Under Home Tab, Alignment Group; Click on any Alignment types like, Top Align, Middle
Align, Bottom Align, Left Align, Centre Align and Right Alignments.
2) ORIENTATION:
This option is used to rotate text in the cells to a diagonal angle or vertical Orientation.
Steps:
1. Select the cells which you want to change the Orientation.
2. Under Home Tab, Alignment Group; Click on drop down arrow of Orientation.
3. Drop down menu is displayed with Orientation styles, select any one of the Orientation.
3) WRAP TEXT:
This option is used to wrap the selected cells, so that we can type multiple lines in a cell, you can
format the cell so that the text wraps automatically, or you can enter a manual line break.
Steps:
1. In a worksheet, select the cells that you want to format.
2. On the Home tab, in the Alignment group, click Wrap Text.
3. Data in the cell wraps to fit the column width. When you change the column width, data
wrapping adjusts automatically.
4. To start a new line of text at a specific point in a cell, press ALT+ENTER.
4) MERGE AND CENTRE:
This option is used to merge two or more adjacent horizontal or vertical cells, the cells become one
larger cell that is displayed across multiple columns or rows. Using the Merge & Centre command
centres the text in the merged cell.
Steps:
1. Select two or more cells that you want to merge.
2. On the Home tab, in the Alignment group, click Merge and Centre.
3. The cells will be merged in a row or column, and the cell contents will be cantered in the
merged cell.
NUMBER GROUP:
1) NUMBER FORMAT:
By applying different number formats, you can change the appearance of numbers without changing
the number. You can choose the type of number, like date, currency, percentage, fraction or
general.
Steps:
1. Select the cell(s) you want to format.
2. Under HOME tab, in the NUMBER group, click the dropped down arrow of Number
format.
3. Select the required Number format.
(OR)
1. Select the cell(s) you want to format.
2. In the HOME tab, in the NUMBER group, click on FORMAT CELLS: NUMBER
the FORMAT CELLS dialog box appears with the NUMBER tab displayed.
3. From the CATEGORY list, select the desired number format.
4. If the format offers additional options, select the preferred options
5. Click OK. The selected cells are formatted.
2) INCREASE OR DECREASE DECIMAL:
This option is used to increase or decrease the number of places that are displayed after the decimal
point by using the Increase Decimal and Decrease Decimal buttons.
Steps:
1) CONDITIONAL FORMATTING:
Conditional Formatting is a process that automatically applies formatting, such as cell shading or
font Colour, to cells if specified conditions are met.
Steps: Example: EMPLOYEE ATTENDANCE REPORT
1. Select the cells in a column which you EmployeeNIn Time OutTime Remarks
want to apply conditional formatting. Venkat 10:05AM 4:50PM
2. On the Home tab, in the Styles group, Suresh 10:12AM 4:45PM
Kiran 10:15AM 5:00PM
Click on Conditional Formatting.
Mahesh 10:05AM 4:30PM
6. Click on Format button to set the font Colour, select your choice Colour and click on OK.
7. Enter the In-Time values in the column.
8. Select the cells in another column and do the same process up to the New Formatting
Rule Dialog box.
9. In the dialog box from Format only cells with group apply the Condition settings as
follows.
10. Click on Format button to set the font Colour, select your choice Colour and click on OK.
11. Enter the In-Time values in the column.
2) FORMAT AS TABLE:
This option is used to format a range of cells and convert it to a table by choosing a pre-defined table
styles.
Steps:
1. On the Home tab, in the Styles group, click Format as Table.
2. Under Light, Medium, or Dark, click the table style that you want to use.
3) CELL STYLES:
This option formats a cell from pre-defined cell styles.
Steps:
1. Select the cells that you want to format.
2. On the Home tab, in the Styles group, click Cell Styles.
3. Click the cell style that you want to apply.
1) INSERT CELLS:
Excel provides the ability to insert additional space within the working area of the worksheet. That
is, additional columns, rows, and cells can be inserted within the frame of the worksheet.
1. TO INSERT BLANK CELLS:
Steps:
1. Select the cell or the range of cells where you want to insert the new blank cells.
2. On the Home tab, in the Cells group, click the arrow next to Insert, and then click Insert
Cells.
3. In the Insert dialog box, click the direction in which you want to shift the surrounding
cells.
2. TO INSERT ROW:
Steps:
1. To insert a single row, click in the row above which you want to insert the new row.
2. On the Home tab, in the Cells group, click the arrow next to Insert, and then click Insert
Sheet Rows.
3. TO INSERT COLUMN:
Steps:
1. To insert a single column, click in the column to the right of where you want to insert the
new column.
2. On the Home tab, in the Cells group, click the arrow next to Insert, and then click Insert
Sheet Columns.
4. TO INSERT NEW WORK SHEET:
Steps:
1. To quickly insert a new worksheet at the end of the existing worksheets, click the Insert
Worksheet tab at the bottom of the screen.
2. To insert a new worksheet before an existing worksheet, select that worksheet, and then
on the Home tab, in the Cells group, click Insert, and then click Insert Sheet.
2) DELETE CELLS:
This option is used to delete selected cells, rows, columns from the work sheet or can also delete
entire work sheet from the work book.
Steps:
1. Select the cells, rows, or columns that you want to delete.
2. On the Home tab, in the Cells group, do one of the following:
3. To delete selected cells, click the arrow next to Delete, and then click Delete Cells.
4. To delete selected rows, click the arrow next to Delete, and then click Delete Sheet
Rows.
5. To delete selected columns, click the arrow next to Delete, and then click Delete Sheet
Columns.
ORGANIZE SHEETS:
1. RENAME SHEETS:
Steps:
1. Open the work sheet which you want to rename.
2. On the Home tab, in the Cells group, click Format.
3. Under Organize Sheets click Rename Sheet.
4. Type the New Name and press Enter.
(OR)
Steps:
1. Double click the sheet tab of the work sheet which you want to rename.
2. Type the new name of the work sheet and press Enter.
2. MOVE OR COPY SHEETS:
Steps:
1. Open the work sheet which you want to Move or Copy.
2. On the Home tab, in the Cells group, click Format.
3. Under Organize Sheets click Move or Copy Sheets.
4. To create a duplicate copy of the existing sheet, click in the check box of Create Copy and
click on Ok.
5. To change the position of work sheets, click on Move to End and click on Ok.
3. TAB COLOUR:
Steps:
1. Open the work sheet which you want to change the Tab Colour.
2. On the Home tab, in the Cells group, click Format.
3. Under Organize Sheets click Tab Colour.
4. Click on your choice Colour that to apply for sheet tab.
(OR)
Steps:
1. Right-Click on preferred worksheet tab.
2. Select Tab Colour.
3. Select the preferred Colour and press Enter.
PROTECTION:
1. PROTECT SHEET:
Steps:
1. Open the work sheet which you want to protect with password.
2. On the Home tab, in the Cells group, click Format.
3. Under Organize Sheets click Protect Sheets.
4. In the Password to unprotect sheet box, type a password and click on OK.
5. In the Re-enter password to precede box, type the password you entered before, click on
OK.
EDITING GROUP
1) FILL:
This option is used to fill the data in cells in any direction and into any range of adjacent cells.
Steps:
1. On the Home tab; in the editing group, click on drop down arrow to Fill the data.
a. Left: -To fills the information from Right to left side.
b. Right (Ctrl + R): -To fills the information from left to Right side.
c. Up: -To fills the information from down to up
d. Down(Ctrl + D): - To fills the information from top to down.
e. Series: - To fill the series values in to the respective rows or columns by specifying
step-value and stop value.
f. Justify: - justifying the selected cells into a single cell.
2) CLEAR:
This option is used to delete the content or formats and comments of a selected cell.
Steps:
1. On the Home tab; in the editing group, click on drop down arrow to clear the data.
a. All: To delete the all selected information including formats, contents and
comments.
b. Formats: To deletes the Formats of the selected text.
c. Contents: To deletes the Contents of the selected text.
d. Comments: To deletes the comments of the selected text.
3) SORT & FILTER:
This option is used to sort the data in ascending order and in descending order, and can filter the
specified column values.
Sort:
Steps:
1. Select a column of alphanumeric data in a range of cells, or make sure that the active cell
is in a table column containing alphanumeric data.
2. On the Home tab, in the Editing group, and then click Sort & Filter.
3. Do one of the following:
4. To sort in ascending alphanumeric order, click Sort A to Z.
5. To sort in descending alphanumeric order, click Sort Z to A.
Filter:
Steps:
INSERT TAB:
TABLE GROUP:
1) PIVOT TABLE:
This option is used to give the detailed report to the selected information of the Workbook.
Steps:
1. Select the range of data.
2. On the Insert tab, in the Table group, click Pivot table, and then click Pivot table.
3. C eate Pi ot ta le dialog o is displa ed.
4. B sele ti g Ne orksheet then click on OK button.
5. Pivot table field list is displayed in the task panel.
6. Drag and Drop the required fields on to the page, row, column and Data.
CHARTS:
This option is used to insert the Graphical chart for selected information of the work book.
Steps:
1. Select the data which you want summarize visually.
2. On the Insert tab, in the Charts group, types of charts are displayed like Colum chart, Line
chart, Pie chart etc.
3. Select any one of the chart style from the charts group.
1) MARGINS:
We can adjust the margins size of a page by using this option.
Steps:
1. On the Page Layout tab, in the Page setup group, click desired margins or click custom
margins to set margins manually.
2) ORIENTATION:
This option switches the page between Portrait and Landscape layout.
Steps:
1. On the Page Layout tab, in the Page setup group, click on the drop down arrow of
Orientation.
2. select either portrait (Vertical) or landscape (Horizontal) orientation.
3) PAPER SIZE:
This option is used to select the paper size of the worksheet.
Steps:
FORMULAS TAB:
Function is a subprogram with self-contain block of statements used to perform a specific task.
1) ABS ():
This function returns Absolute value of the given Number. (A number without its sign)
Syntax:
=abs(number)
e.g.:
=abs (-23.456)
23.456
2) SUM ():
This function adds the specified range of numbers.
Syntax:
=sum(range)
=sum(n1,n2,n3,n4,.....)
e.g.:
= sum (1,2,3,4,5,6,7,8,9,10)
55
3) POWER ():
This function returns the result of the number raised to a power.
STATISTICAL FUNCTIONS:
1) AVERAGE ():
This function returns average of the given range of values.
Syntax:
=average(range)
=average (n1, n2, n3, ............)
e.g.:
= average (1,2,3,4,5,6,7,8,9,10)
5.5
2) MAX ():
This function returns maximum number from given range of numbers.
Syntax:
=max(range)
=max(n1,n2,n3,............)
e.g.:
=max (10,343,0,9,76,987,1)
987
3) MIN ():
This function returns minimum number from given range of numbers.
Syntax:
=min(range)
=min(n1,n2,n3,............)
e.g.:
=min(-10,343,0,9,76,987,1)
-10
4) COUNT ():
This function counts the no.of cells that have the number in the specified range of cells.
Syntax:
TEXT FUNCTIONS:
1) CODE ():
This function returns ASCII (American standard code information interchange) code of the given
character.
Syntax:
= code("char")
e.g.: -
=code("A")
65
2) CHAR ():
This function returns ASCII symbol of the given number.
Syntax:
=char(number)
e.g.: -
=char (65) A
3) LEN ():
This function returns length of the given string.
e.g.: -
=Len ("Satyam Computers")
16
4) UPPER ():
This function returns given string in Upper case letters
e.g.: -
=Upper ("Satyam Computers")
SATYAM COMPUTERS
5) LOWER ():
This function returns given string lower case letters
e.g.:
=lower ("SaTyaM ComPuterS")
satyam computers
6) TRIM ():
=sum(c2:e2)
Average:
=Average (c2: e2) (or) =f2/3
Result:
=if a d >= , d >= , e >= , Pass , Fail
Grade:
=if(and(h2= pass ,g >= , A ,if a d h = pass ,g >= , B ,if a d h = pass ,g >= , C ,if a d
h = pass ,g >= , D ,if a d h = fail , *
DATA TAB:
1) TEXT TO COLUMNS:
This option is used to separate the content of one cell into separate columns.
Steps:
1. Select the range of data that you want to
convert.
2. On the Data tab, in the Data Tools group,
click Text to Columns.
3. In Step 1 of the Convert Text to Columns
Wizard, click Delimited, and then click
Next.
4. In Step 2, select the Space check box,
and then clear the other check boxes
under Delimiters.
5. The Data preview box shows the first
and last names in two separate columns.
6. Click Next.
7. Click Finish.
2) REMOVE DUPLICATES:
This option is used to delete duplicate (repeated data) rows.
5) GOAL SEEK:
This option is used to set the specified cell value to a target value.
E.g.: - A B
1 Item Computers
2 Qty 9
3 Rate 24500
4 Amount =b2*b3
Steps:
1) NORMAL:
This option is used to view the work sheet in normal mode. (without any ruler margins).
2) PAGE LAYOUT:
In Page Layout view, Excel provides a horizontal ruler and a vertical ruler so that you can take precise
measurements of cells, ranges, objects, and page margins.
Steps:
1. Click the worksheet that you want to change in Page Layout view.
2. On the View tab, in the Workbook Views group, click Page Layout View.
3) PAGE BREAK PREVIEW:
This option is used to view a preview of where a page will break when the document is printed. We
can also adjust page break manually.
Steps:
1. Click the worksheet that you want to print.
2. On the View tab, in the Workbook Views group, click Page Break Preview.
3. To insert a vertical page break, select the row below where you want to insert the page
break.
4. To insert a horizontal page break, select the column to the right of where you want to
insert the page break.
5. On the Page Layout tab, in the Page Setup group, click Breaks.
6. Click Insert Page Break.
4) CUSTOM VIEW:
This option is used to create the Custom view for selected cells.
Steps:
1. Select the required cells or rows or columns which you want to add it to custom view.
2. On the View tab, in the Workbook Views group, click Custom Views.
3. Click Add.
4. In the Name box, type a name for the view.
Apply a custom view
5. On the View tab, in the Workbook Views group, click Custom Views.
6. In the Views box, click the name of the view that you want to apply, and then click Show.
5) FULL SCREEN:
This option is used to view the work sheet in full screen mode. (it displays the work sheet without
any tools).
Steps:
MACRO:
To automate a repetitive task, you can quickly record a macro. You can run the recorded information
from the macro again if it is required.
Steps:
1. On the View tab, in the Macro group, click drop down arrow of macros and click Record
New Macro.
2. Type the information in work sheet and click on Stop recording from macro option in
macro group.
3. To run the macros; click drop down arrow of macros and click View Macro.
4. Recorded macros list is displayed, click on required macro and click on Run.
Below, the dotted border represents the placeholder that contains the title text for the slide.
Use text boxes to place text anywhere on a slide, such as outside a text placeholder. For example, to
add a caption to a picture, create a text box and position it near the picture.
Steps:
1. Click the text or object you want to animate. Then on the Animations tab, in the
Animations group, click the animate arrow, and in the list, click the animation you want.
2. To refine the animation, click the Custom Animation button, and then in the
3. Custom Animation task pane, apply the options you want.
Steps:
1. In the Custom Animation task pane, click the arrow to the right of the animation, and
then click Effect Options.
2. On the Effect tab of the dialog box, click the Sound arrow, and in the list, click thesound
you want.
TO APPLY TRANSITIONS
1. On the Animations tab, in the Transition to This Slide group, click a transition. Or click the
more button, and then in the gallery, click the transition you want.
2. To apply the same transition to all the slides, in the Transition to This Slide group, click
the Apply to All button.
C
Language
PROGRAMMING
A computer program is nothing but a set of instructions. If the instructions are correct then the
result will be correct. The process of creating program is known as programming.
To understand the features of the programming different mythologies are derived.
1. Algorithm
2. Flow chart
3. Structure
1. Algorithm: - Instructions given by user in step by step processing is called as algorithm.
2. Flow chart: - It is a diagrammatic representation of program.
3. Structure: - Executing the instructions for program in middle level language.
LANGUAGE: It is a mean used by the program to interact with the system which consists of set of
codes and symbols.
1) Machine Language:
The language which uses binary codes i.e. 0's and 1's is called Machine Language. It is Machine
dependent.
2) Assembly Language:
The language which uses English like abbreviations to write a program is called Assembly Language.
3) High Level Language:
The language which uses English words to write a program in a code level is called as High level
language.
INTRODUCTION TO C
Elementary of programming: -
1. Importance of C
2. History
3. Basic structure of C program.
4. Character set data
5. Functions and keywords.
IMPORTANCE OF C: -
HISTORY OF C: -
In 1960, an international committee was constituted which came out with a language called ALGOL-
60. This language could not become popular because it was too general and highly abstract.
In 1963, a modified ALGOL-60 by reducing its generality and abstractness, a new language CPL
(Combined programming language) was developed at Cambridge University and was very big and
difficult to learn.
1.Document section.
2.Link section
3.Definition section
4.Global declaration
5.Main function
6.Beginning of the program.
7.Data types and variables (Declaration part)
8.Executable part.
a. Output question
b. Input data.
c. Formula section
d. Output result.
9. Ending of the program.
1) DOCUMENT SECTION:
Document section is used for user information and it is not executed in program. Here user can
enter any information.
E.g.: - /*----Statement----*/
2) LINK SECTION:
It is used to li k the p og a ith a st u tu e a e i lude . This help to all output a d i put
statement with header file.
Syntax: - #include<header. file>
E.g.: -
#include<stdio.h>
#include<math.h>
#include<conio.h>
#include<string.h>
3) DEFINITION SECTION:
This section is used to mention any variable values or any functions in short form.
DATA TYPES:
A data type is defined as type of the data that is which type of data we can store in to the respective
variables.
Integer (int):
This data type allows an integer value and range starts from -32768 to 32767. It occupies 2Bytes of
memory space.
E.g.:
int a;
a=32767;
print a;
short int:
This data type also allows integer values and range is less than that of "int". It occupies 2Bytes of
memory space.(Range from -32768 to +32767)
E.g.:
short int a;
a=12744;
print a;
long int:
This data type allows integer values only range is greater than that of "int". It occupies 4B of
memory space. The Range is -2147483648 to +2147483647
E.g.:
long int a;
a=100000;
print a;
float:
This data type allows decimal numbers. It occupies 4Bytes of memory space. Range is starts from
3.4(10**-38) to 3.4(10**+38)
A function is a subprogram defined with set of statements and used to perform a specific task.
There are following two types of functions in C-language.
1) LIBRARY FUNCTIONS OR BUILT-IN FUNCTIONS:
Functions which are developed by the developers for the support of user are known as library
functions.
E.g.:
abs (), sqrt (), pow (), strlen (), printf (), scanf () etc.
2) USER DEFINED FUNCTIONS:
Functions which are developed by the user according to his program are known as user defined
functions.
E.g.:
add (), sub (), mul () ........
Write a program to calculate the addition of the 2 values and accept the values at run time.
/*Program to find the addition of 2 numbers*/
#include<stdio.h>
#include<conio.h>
void main ()
{
int a, b, c;
clrscr ();
printf ( E te Numbers\n ;
scanf ( %d%d , &a, &b);
c=a+b;
printf ("Addition = %d , );
getch();
}
Write a program to print the square value and cube value of the given number
/*Program to print Square value and Cube Value*/
#include<stdio.h>
#include<conio.h>
void main ()
{
int n;
clrscr ();
printf ("Enter any number");
scanf ("%d , &n);
printf ("Square: %d\n , *n);
printf ("Cube: %d\n , *n*n);
}
1) ARITHMETICAL OPERATORS:
These operators are used to perform all types of mathematical calculations.
Operator Description
+ Addition
- Subtraction
* Multiplication
/ Division (Quotient)
% Division (Remainder)
2) UNARY OPERATORS:
If an operand or variable is given with a single operator, then it is called Unary operator.
E.g.:
+a, -a ....
3) BINARY OPERATORS:
If a single operator is given with 2 operands or 2 variables, then it is called as binary operator.
E.g.:
a+b, a-b, a*b, ....
4) COMPARISON OPERATORS: (OR RELATIONAL OPERATORS)
These operators are used to provide the relationships or to compare the values of the variables.
Operator Description
< Less than
== Equal to
!= Not Equal to
5) LOGICAL OPERATORS:
An expression containing logical operator returns expression either true or false. Logical operators
are commonly used in decision making in C programming.
CONTROL STATEMENTS:
These statements are used to control the compiler execution at run time and execute the statements
according to the given conditions.
1. Conditional statements
2. Select statement
3. Jumping statement
4. Iterative statements (or loops)
CONDITIONAL STATEMENTS:
These statements are executes given the statements depending up on given condition.
There are following 4 types of conditional statements.
1. Simple if
2. if ... else
3. Nested if
4. else...if ladder
1) Simple if:
Syntax:
if (condition)
{
Statements;
}
In the above structure the statements are executed when the specified condition is true otherwise
compiler avoids the statements from execution.
2) if...else:
Syntax:
if(condition)
SELECT STATEMENT:
By using select statement, we can provide individual results for individual conditions.
E.g.:
SWITCH-CASE.
Syntax:
switch (variable)
{
case 1:
statements1;
break;
case 2:
statements2;
break;
case 3:
statements3;
break;
#2-2-132, Main Road, Naimnagar, Hanamkonda. Cell: 9059981526. P a g e 90 | 130
C - Language
...
case n:
statements n;
break;
default:
statements;
}
In the above structure the value of the variable matched with any one of the given cases then that
respective case statements will be executed; otherwise control will execute the default statements.
Here "break" statement is given b/w the cases to break the continuity of the switch-case.
These are Control statements used to control the compiler or controller at run time.
E.g.:
GOTO.
It is an iterative statement or control statement used to move the compiler or control position to the
specified label name.
Syntax:
label name:
Statement;
goto label name;
These statements are control statements used to repeat the set of statements for n number of
times. This concept is called as looping or conditional branching. This can be implemented by using
following 3 control statements.
1) for
2) while
3) do. while
1) WHILE LOOP:
This control statement used to repeat the same set of statements for n number of times.
Syntax:
#2-2-132, Main Road, Naimnagar, Hanamkonda. Cell: 9059981526. P a g e 93 | 130
C - Language
Initializations:
while(condition)
{
Statements;
Incr/Decr;
}
In the above structure compiler check for the result of the condition if it is true then it executes the
statements again check for the result of the condition, if it is true again it execute the statements.
This procedure will continue until the given condition is false.
S A T Y A M \0
1) puts ():
This function is used to print the string on the screen in a new line.
Syntax:
puts("String");
2) gets ():
This function is used to accept a string in to the respective String variable.
Syntax:
gets(String_var);
Wap to print the given string in lower case, upper case, reverse order and its length.
/*program to Demo on Strings */
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main ()
{
char name [10];
clrscr ();
#2-2-132, Main Road, Naimnagar, Hanamkonda. Cell: 9059981526. P a g e 104 | 130
C - Language
puts ("Enter your name");
gets(name);
printf ("In lower case: %s\n , st l a e ;
printf ("InUpper case: %s\n , st up a e ;
printf ("In reverse order: %s\n , st e a e ;
printf ("Length = %d\n , st le a e ;
getch ();
}
Wap to find whether the given string is palindrome or not.
/*program to Demo on Strings */
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main ()
{
char s1[10], s2[10];
clrscr ();
puts ("Enter any string");
gets(s1);
strcpy (s2, s1);
strrev(s1);
if (strcmp (s1, s2) ==0)
{
puts ("It is Palindrome");
}
else
{
puts ("It is not Palindrome");
}
getch ();
}
ARRAYS:
According to programs sometimes he requires to declare no of Variables. This is a problem to the
user to access those variables in the program and this will produce complexity for the program. To
avoid this complexity of the program user should implement arrays concept.
An array is a group of similar data elements. Array stores number of values. To access the array
elements, we must use subscript reference starts from 0 to n-1.
Types of Arrays:
1) Single dimensional arrays
2) Double dimensional arrays
3) Multi-dimensional arrays
#2-2-132, Main Road, Naimnagar, Hanamkonda. Cell: 9059981526. P a g e 106 | 130
C - Language
1) SINGLE DIMENSIONAL ARRAYS:
In this type of array, we can store values in a single dimension that is linearly. (One by one)
Syntax:
Datatype Array_name [size];
Note: Size should be a positive integer number and it should not be a Negative or Float number.
E.g.:
int a [5];
No e a sto e alues i to a a a .
Memory map diagram:
10 20 30 40 50
1 2 3 4 5 indexes
Sum=a [1] +a [2] +a [3] +a [4] +a [5];
=150
Wap to accept 10 values into an array and print them.
/*Program to Demo on Arrays */
#include<stdio.h>
#include<conio.h>
void main ()
{
int a [10], i;
clrscr ();
printf ("Enter 10 numbers\n");
for (i=1; i<=10; i++)
{
s a f "%d , &a[i] ;
}
puts (" Array values:");
for (i=1; i<=10; i++)
{
printf ("a[%d] =%d\ , i+ , a[i] ;
}
getch ();
}
Wap to accept the n values into an array and find big number in the array.
/*Program to Find Big Number in the given Array values*/
#include<stdio.h>
#include<conio.h>
10 11 12
20 21 22
Diagonalsum=a[0][0]+a[1][1]+a[2][2]
POINTERS
In previous programs we access the variables through its name or identifier, but to access these
variables through its address is the concept of pointers.
STRUCTURES
A structure is a secondary data type and it is also considered as user defined data type. It works like
a single dimensional array with a set of different types of elements. Structures are especially used to
maintain the records. To declare a structure, we have to use a key word called "struct".
1) The declaration will be in declaration section or in the main section
Syntax:
struct structname
{
datatype1 ele1;
datatype2 ele2;
..........................
};
UNIONS:
A Union is a User defined data type or secondary data type that can share the memory for all the
elements of union and it occupies memory as size of the union element whose size is maximum than
other variables. The declaration, accessing of a Union is same like as Structures.
Wap to Demo on unions
/* Program to Demo on unions */
#include<stdio.h>
#include<conio.h>
union emp
{
int eno;
char name [10], job [8];
float sal;
};
void main ()
{
union emp e;
clrscr ();
printf ("\n------------Employee Details---------\n\n");
e.eno=1234;
printf ("\t Empno\t: %d \ , e.e o ;
strcpy(e.name,"Naresh");
printf ("\tEmp Name\t: %s \ , e. a e ;
strcpy(e.job,"Manager");
#2-2-132, Main Road, Naimnagar, Hanamkonda. Cell: 9059981526. P a g e 116 | 130
C - Language
printf ("\tEmp Job\t: %s \ , e.jo ;
e.sal=10000.0;
printf ("\tEmp Salary\t: %.3f \n , e.sal);
printf ("\nUnion occupies %d Bytes of Memory space , sizeof(e));
getch ();
}
TYPEDEF:
This is also secondary data type used to define the new name for specified data type.
Syntax:
typedef datatype namenew name;
Wap to demo on typedef.
/* Program to Demo on typedef */
#include<stdio.h>
#include<conio.h>
typedef int satyam;
void main ()
{
satyama, b, c;
clrscr ();
a=10;
b=20;
c=a+b;
printf ("Addition=%d\n , );
getch ();
}
ENUMERATIONS:
Enumeration is a secondary data type used to declare the constants in C-language. To declare a
e u e atio e ha e to use a ke o d alled e u .
Syntax:
enum name
{
var , a , a ….
};
Eg1:
enum demo
{
FILES MANAGEMENT
A file is a collection of information. We can also create files using C-programming and store the
information on to specified file.
FILE MANAGEMENT INCLUDES
1. Creating a File
2. Reading a file
3. Copying a File
4. Merging File
5. Renaming a File
6. Deleting a File
TYPES OF FILES:
TEXT FILES:
It is collection of different types of characters which are stored in a sequential order. To create a text
file following functions are used.
putc ():
This function prints a character on to a specified Text formatted file. whose extensions like *.txt, *.c,
*.cpp, etc.
Syntax:
putc (charvar, fp);
getc ():
This function accepts a character from a specified text Formatted file whose extensions like *.txt,
*.c, *.cpp, etc.
Syntax:
charvar = getc (fp);
EOF: This keyword indicates that end of the file.
Wap to create a text file
/* Program to Create a Text File */
Here records are stored in a sequence order. to Create the sequence following functions Are Used.
fprintf ():
This function is used to print the formatted outputs on to a specified file.
Syntax:
fprintf (filepointer, "fo atst i gs , a ia les);
Wap to create a sequential file to store the student records in a file called stud.txt.
/*Program to create a Sequence File */
#include<stdio.h>
void main ()
{
int rno, s1, s2, s3, tot;
char name [10], res [5], ch;
float avg;
FILE *sf;
clrscr ();
sf=fopen("Stud.txt","w");
do
{
printf ("Enter Rno, Name and 3 subject Marks");
scanf ("%d%s%d%d%d , & o, & a e, &s1, &s2, &s3);
tot=s1+s2+s3;
avg=(float)tot/3;
if(s1>=35&&s2>=35&&s3>=35)
{
strcpy(res,"Pass");
}
else
{
strcpy(res,"fail");
}
fprintf(sf,"%d\t%s\t%d\t%d\t%d\t%d\t%.2f\t%s\n , o, a e,s1,s2,s3,tot,
avg,res);
puts ("Do You Want to Enter One More record...(Y/N)?");
fflush(stdin);
ch=getchar ();
}
while(ch=='y'||ch=='Y');
puts ("\nSequence File Created...");