Lab 1 & 2
Lab 1 & 2
Lab # 01 .......................................................................................................................................... 6
Basic Computer Hardware, Networking terminologies and Network Devices .............................. 6
1.1 Objective: .............................................................................................................................. 6
1.2 Scope: .................................................................................................................................... 6
1.3 Useful Concepts: ................................................................................................................... 6
1.4 Exercises for lab .................................................................................................................. 10
1.5 Home Work ......................................................................................................................... 10
Lab # 02 ........................................................................................................................................ 11
Microsoft Word Document ........................................................................................................... 11
2.1 Objective ............................................................................................................................. 11
2.2 Scope ................................................................................................................................... 11
2.3 Useful Concepts .................................................................................................................. 11
Create a Document ................................................................................................................ 11
Saving Documents ................................................................................................................ 14
Formatting Text .................................................................................................................... 15
Header Footer and Page Number .......................................................................................... 17
Pictures and Text Wrap ......................................................................................................... 19
Tables .................................................................................................................................... 24
2.4 Exercises for Lab ................................................................................................................ 28
2.5 Home Work ......................................................................................................................... 29
Lab # 02(continued) .......................................................................Error! Bookmark not defined.
Microsoft PowerPoint Document ..................................................Error! Bookmark not defined.
2.1 Objective ..............................................................................Error! Bookmark not defined.
2.2 Scope ....................................................................................Error! Bookmark not defined.
2.3 Useful Concepts ...................................................................Error! Bookmark not defined.
Introduction to PowerPoint Presentation ...............................Error! Bookmark not defined.
Create a Presentation..............................................................Error! Bookmark not defined.
Saving presentation ................................................................Error! Bookmark not defined.
Slides and Layout ...................................................................Error! Bookmark not defined.
Applying Themes ...................................................................Error! Bookmark not defined.
Applying Transitions .............................................................Error! Bookmark not defined.
Applying Animation ..............................................................Error! Bookmark not defined.
Smart Art Graphics ................................................................Error! Bookmark not defined.
2.3Exercise for Lab ....................................................................Error! Bookmark not defined.
2.4 Home Work ..........................................................................Error! Bookmark not defined.
Lab # 02(continued) .......................................................................Error! Bookmark not defined.
Microsoft Excel Document ............................................................Error! Bookmark not defined.
2.1 Objective ..............................................................................Error! Bookmark not defined.
2.2 Scope ....................................................................................Error! Bookmark not defined.
2.3 Useful Concepts ...................................................................Error! Bookmark not defined.
Introduction to Excel Sheet ....................................................Error! Bookmark not defined.
Creating Workbook ................................................................Error! Bookmark not defined.
Sheet Basic .............................................................................Error! Bookmark not defined.
Cell Formatting ......................................................................Error! Bookmark not defined.
Conditional Formatting ..........................................................Error! Bookmark not defined.
Simple Formulas ....................................................................Error! Bookmark not defined.
Freezing Pane .........................................................................Error! Bookmark not defined.
Charts .....................................................................................Error! Bookmark not defined.
2.4 Exercises for Lab .................................................................Error! Bookmark not defined.
2.5 Home Work ..........................................................................Error! Bookmark not defined.
Lab # 03 .........................................................................................Error! Bookmark not defined.
How to install Dev C++ Compiler, Edit, compile and Run a C++ Program.Error! Bookmark not
defined.
3.1 Objective: .............................................................................Error! Bookmark not defined.
3.2 Scope: ...................................................................................Error! Bookmark not defined.
3.3 Useful Concepts: ..................................................................Error! Bookmark not defined.
3.4 Exercises for lab ...................................................................Error! Bookmark not defined.
3.5 Home Work ..........................................................................Error! Bookmark not defined.
Lab # 04 .........................................................................................Error! Bookmark not defined.
Single Line Comment, Multi line Comment, printf and scanf StatementsError! Bookmark not
defined.
4.1 Objective: .............................................................................Error! Bookmark not defined.
4.2 Scope: ...................................................................................Error! Bookmark not defined.
4.3 Useful Concept.....................................................................Error! Bookmark not defined.
4.4 Examples ..............................................................................Error! Bookmark not defined.
4.5 Home Work:.........................................................................Error! Bookmark not defined.
Lab # 05 .........................................................................................Error! Bookmark not defined.
Data Types .....................................................................................Error! Bookmark not defined.
5.1 Objective: .............................................................................Error! Bookmark not defined.
5.2 Scope: ...................................................................................Error! Bookmark not defined.
5.3 Useful Concept: ...................................................................Error! Bookmark not defined.
5.4 Examples: .............................................................................Error! Bookmark not defined.
5.5 Exercises for lab ...................................................................Error! Bookmark not defined.
5.6 Home Work ..........................................................................Error! Bookmark not defined.
Lab# 06 ..........................................................................................Error! Bookmark not defined.
Arithmetic Operators, Arithmetic Expressions and math functionsError! Bookmark not
defined.
6.1 Objective ..............................................................................Error! Bookmark not defined.
6.2 Scope ....................................................................................Error! Bookmark not defined.
6.3 Useful Concepts ...................................................................Error! Bookmark not defined.
6.4 Examples: .............................................................................Error! Bookmark not defined.
6.5 Exercise for Lab ...................................................................Error! Bookmark not defined.
6.6 Home Task ...........................................................................Error! Bookmark not defined.
Lab# 07 ..........................................................................................Error! Bookmark not defined.
Decision Control Structure ............................................................Error! Bookmark not defined.
7.1 Objective ..............................................................................Error! Bookmark not defined.
7.2 Scope ....................................................................................Error! Bookmark not defined.
7.3 Useful concept .....................................................................Error! Bookmark not defined.
7.4 Examples ..............................................................................Error! Bookmark not defined.
7.5 Exercise for Lab ...................................................................Error! Bookmark not defined.
7.6 Home Task ...........................................................................Error! Bookmark not defined.
Lab # 08 .........................................................................................Error! Bookmark not defined.
LOOPS ...........................................................................................Error! Bookmark not defined.
8.1 Objective: .............................................................................Error! Bookmark not defined.
8.2 Scope: ...................................................................................Error! Bookmark not defined.
8.3 Useful Concepts: ..................................................................Error! Bookmark not defined.
8.4 Examples ..............................................................................Error! Bookmark not defined.
8.5 Exercises for lab ...................................................................Error! Bookmark not defined.
8.6 Home Work ..........................................................................Error! Bookmark not defined.
Lab # 09 .........................................................................................Error! Bookmark not defined.
Arrays .............................................................................................Error! Bookmark not defined.
9.1 Objective: .............................................................................Error! Bookmark not defined.
9.2 Scope: ...................................................................................Error! Bookmark not defined.
9.3 Useful Concepts: ..................................................................Error! Bookmark not defined.
9.4 Examples ..............................................................................Error! Bookmark not defined.
9.5 Exercises for lab ...................................................................Error! Bookmark not defined.
9.6 Home Work ..........................................................................Error! Bookmark not defined.
Lab # 10 .........................................................................................Error! Bookmark not defined.
2-D Arrays .....................................................................................Error! Bookmark not defined.
10.1 Objective: ...........................................................................Error! Bookmark not defined.
10.2 Scope: .................................................................................Error! Bookmark not defined.
10.3 Useful Concepts: ................................................................Error! Bookmark not defined.
10.4 Examples ............................................................................Error! Bookmark not defined.
10.5 Exercises for lab .................................................................Error! Bookmark not defined.
10.6 Home Work ........................................................................Error! Bookmark not defined.
Lab # 11 .........................................................................................Error! Bookmark not defined.
Structures in C................................................................................Error! Bookmark not defined.
11.1 Objective: ...........................................................................Error! Bookmark not defined.
11.2 Scope: .................................................................................Error! Bookmark not defined.
11.3 Useful Concept...................................................................Error! Bookmark not defined.
11.4 Examples ............................................................................Error! Bookmark not defined.
11.5 Exercises for lab .................................................................Error! Bookmark not defined.
11.6 Home Work ........................................................................Error! Bookmark not defined.
Lab # 12 .........................................................................................Error! Bookmark not defined.
Function and Parameters ................................................................Error! Bookmark not defined.
12.1 Objective: ...........................................................................Error! Bookmark not defined.
12.2 Scope: .................................................................................Error! Bookmark not defined.
12.3 Useful Concepts: ................................................................Error! Bookmark not defined.
12.4 Examples ............................................................................Error! Bookmark not defined.
12.5 Exercises for lab .................................................................Error! Bookmark not defined.
12.6 Home Work ........................................................................Error! Bookmark not defined.
Lab # 13 .........................................................................................Error! Bookmark not defined.
Recursion in C................................................................................Error! Bookmark not defined.
13.1 Objectives: .........................................................................Error! Bookmark not defined.
13.2 Scope: .................................................................................Error! Bookmark not defined.
13.3 Useful Concepts: ................................................................Error! Bookmark not defined.
13.4 Examples ............................................................................Error! Bookmark not defined.
13.5 Exercises for lab .................................................................Error! Bookmark not defined.
13.6 Home Work ........................................................................Error! Bookmark not defined.
Lab # 14 .........................................................................................Error! Bookmark not defined.
Pointers ..........................................................................................Error! Bookmark not defined.
14.1 Objective: ...........................................................................Error! Bookmark not defined.
14.2 Scope: .................................................................................Error! Bookmark not defined.
14.3 Useful Concept...................................................................Error! Bookmark not defined.
14.4 Examples ............................................................................Error! Bookmark not defined.
14.5 Exercises for lab .................................................................Error! Bookmark not defined.
14.6 Home Work ........................................................................Error! Bookmark not defined.
Lab # 15 .........................................................................................Error! Bookmark not defined.
Strings ............................................................................................Error! Bookmark not defined.
15.1 Objective: ...........................................................................Error! Bookmark not defined.
15.2 Scope: .................................................................................Error! Bookmark not defined.
15.3 Useful Concepts: ................................................................Error! Bookmark not defined.
15.4 Examples: ...........................................................................Error! Bookmark not defined.
15.5 Exercises for lab .................................................................Error! Bookmark not defined.
15.6 Home Work ........................................................................Error! Bookmark not defined.
Lab # 16 .........................................................................................Error! Bookmark not defined.
File handling in C...........................................................................Error! Bookmark not defined.
16.1 Objective: ...........................................................................Error! Bookmark not defined.
16.2 Scope: .................................................................................Error! Bookmark not defined.
16.3 Useful Concepts: ................................................................Error! Bookmark not defined.
Lab # 17 .........................................................................................Error! Bookmark not defined.
Graphics in C .................................................................................Error! Bookmark not defined.
17.1 Objective: ...........................................................................Error! Bookmark not defined.
17.2 Scope: .................................................................................Error! Bookmark not defined.
17.3 Useful Concepts .................................................................Error! Bookmark not defined.
17.4 Examples ............................................................................Error! Bookmark not defined.
Lab # 01
1.1 Objective:
To computer hardware architecture
1.2 Scope:
This document includes information under the following main topics
2. Introduction to Networking
3. Types of Networks
6. Network Topologies
1.3 Useful Concepts:
Computer Hardware Component
Introduction to Networking
A computer network consists of a collection of computers, printers and other equipment that is
connected together so that they can communicate with each other.
Broadly speaking, there are two types of network configuration, peer-to-peer networks and
client/server networks.
Types of Networks
Peer-to-peer Network:
Client/Server Networks:
Client/server networks are more suitable for larger
networks. A central computer, or 'server', acts as the
storage location for files and applications shared on the
network. Usually the server is a higher than average
performance computer. The server also controls the
network access of the other computers which are
referred to as the 'client' computers. Typically,
teachers and students in a school will use the client
computers for their work and only the network
administrator (usually a designated staff member) will
have access rights to the server.
Hub or Switch
A hub is a device used to connect a PC to the network. The function of a hub is to direct information
around the network, facilitating communication between all connected devices. However in new
installations switches should be
Server
A server is a running instance of an application (software) capable
The Internet
This is the largest computer network in the world! It is a constantly growing connection of computers
and networks around the world, and is used to communicate and share information in many ways.
Firewall
A firewall is a tool that is designed to protect a computer or a network from security threats (such
as malware or unauthorized access) from the Internet. A firewall can be a piece of software found
on an individual computer, or a hardware device incorporated into a computer network.
IP Address
An Internet protocol (IP) address is a four part number, written with decimal points (full stops)
separating each part. An example IP address is 192.168.0.200. An IP address is rather like a ‘phone
number’ for a computer or networking equipment. Computers on the Internet that know each other’s
IP addresses can communicate with each other.
MAC Address
The Media Access Control (MAC) address is also known as the physical address for any device (such
as a network interface card or a wireless network adapter) that connects a computer to a network.
Every network device has its own unique MAC address that (like a serial number) cannot be changed
and is useful for identifying that device when it is a part of a network.
TCP/IP
TCP/IP is short for Transmission Control Protocol/Internet Protocol. These protocols (or rules) de-
fine how devices (such as computers and routers) communicate with each other. TCP/IP determines
the best path for information (data) to travel from one device to another. TCP/IP will break up data
into small packets that are sent separately and then reassembled upon arrival.
DHCP
The Dynamic Host Configuration Protocol (DHCP) is a set of rules used by a DHCP server (a server
computer, a firewall, a modem or a router) to allocate IP addresses to computers on a local network
or the Internet. It also keeps track of assign and available IP addresses. In most small networks the
router acts as the DHCP server.
2.1 Objective
2.2 Scope
Word files are called documents. Whenever you start a new project in Word, you'll need to create a
new document, which can either be blank or from a template. You'll also need to know how to open an
existing document.
In addition to creating new documents, you'll often need to open a document that was previously
saved.
1. Navigate to Backstage view, then click Open.
2. Select Computer and then click Browse. Alternatively, you can choose One Drive (previously
known as Skydive) to open files stored on your One Drive.
3. The Open dialog box appears. Locate and select your document, then click Open
Whenever you create a new document in Word, you'll need to know how to save in order to access
and edit it later. As in previous versions of Word, you can save files to your computer.
Word offers two ways to save a file: Save and Save As. These options work in similar ways, with a
few important differences:
Save: When you create or edit a document, you'll use the Save command to save your changes. You'll
use this command most of the time. When you save a file, you'll only need to choose a file name and
location the first time. After that, you can just click the Save command to save it with the same
name and location.
Save As: You'll use this command to create a copy of a document while keeping the original. When
you use Save As, you'll need to choose a different name and/or location for the copied version.
To save a document:
It's important to save your document whenever you start a new project or make changes to an existing
one. Saving early and often can prevent your work from being lost. You'll also need to pay close
attention to where you save the document so it will be easy to find later.
1. Locate and select the Save command on the Quick Access toolbar.
2. If you're saving the file for the first time, the Save As pane will appear in backstageview.
3. You'll then need to choose where to save the file and give it a file name. To save the document
to your computer, select Computer, and then click Browse.
4. The Save As dialog box will appear. Select the location where you wish to save the document.
5. Enter a file name for the document, then click Save.
6. The document will be saved. You can click the Save command again to save your changes as you
modify the document.
Formatting Text
Formatted text can draw the reader's attention to specific parts of a document and emphasize
important information. In Word, you have many options for adjusting the font of your text, including
size, colour, and inserting special symbols. You can also adjust the alignment of the text to change
how it is displayed on the page.
To Change the font
By default, the font of each new document is set to Calibri. However, Word provides a variety of
other fonts you can use to customize text and titles.
1. Select the text you wish to modify.
2. On the Home tab, click the drop-down arrow next to the Font box. A menu of font styles will
appear.
3. Move the mouse over the various font styles. A live preview of the font will appear in the
document. Select the font style you wish to use.
The header is a section of the document that appears in the top margin, while the footer is a section
of the document that appears in the bottom margin. Headers and footers generally contain additional
information such as page numbers, dates, an author's name, and footnotes, which can help keep longer
documents organized and make them easier to read. Text entered in the header or footer will appear
on each page of the document.
Word has a variety of preset headers and footers you can use to enhance your document's design
and layout. In our example, we'll add a preset header to our document.
1. Select the Insert tab, and then click the Header or Footer command. In our example, we'll click
the Header command.
2. In the menu that appears, select the desired preset header or footer. In our example, we'll
select a header.
3. The header or footer will appear. Preset headers and footers contain placeholders for
information such as the title or date, and these are known as Content Control fields.
4. To edit a Content Control field, click it and type the desired information.
5. When you're finished, click Close Header and Footer. Alternatively, you can press the Esc key.
Adding pictures to your document can be a great way to illustrate important information or add
decorative accents to existing text. Used in moderation, pictures can improve the overall appearance
of your document.
If you have a specific image in mind, you can insert a picture from a file. In our example, we'll insert
a picture saved locally on our computer.
1. Place the insertion point where you want the image to appear.
2. Select the Insert tab on the Ribbon, and then click the Pictures command.
3. The Insert Picture dialog box will appear. Select the desired image file, and then click Insert.
4. The image will appear in the document
To use a predefined text wrapping setting:
Predefined text wrapping allows you to move the image to a specific location on the page.
1. Select the image you want to move. The Format tab will appear on the right side of the Ribbon.
2. On the Format tab, click the Position command in the Arrange group.
3. A drop-down menu of predefined image positions will appear. Select the desired image position.
The image will adjust in the document, and the text will wrap around it.
Tables
A table is a grid of cells arranged in rows and columns. Tables are useful for various tasks such as
presenting text information and numerical data. In Word, you can create a blank table, convert text
to a table, and apply a variety of styles and formats to existing tables.
1. Place your insertion point where you want the table to appear, and then select the Insert
tab.
2. Click the Table command.
3. A drop-down menu containing a grid of squares will appear. Hover the mouse over the grid to
select the number of columns and rows in the table.
4. Click the mouse, and the table will appear in the document.
5. You can now place the insertion point anywhere in the table to add text. You can move a
insertion point to the next cell by pressing Tab key while typing. At cell pressing a Tab key
will create a new row at the end.
To add new row or colunm
Hover the mouse near the location where you wish to add a row or column, you will see a plus sign that
appear, click it and new row will appear.
1. Place a insertion a point in the row or column that you want to delete
2. Right Click the mouse button, then select Delete Cells from the menu the appears
To Apply Table Style
1. Click anywhere on the table, then click the Design tab on the right side of the Ribbon.
2. Locate the Table Styles group, and then click the more drop-down arrow to see all available
table styles.
3. Select the desired style.
Formatting Text
1. Open an existing Word 2013 document.
2. Change the font style of some text.
3. Change the font size of some text. Change the font colour of some text.
4. Highlight some text.
5. Try bolding, italicizing, or underlining some text.
6. Change the case of some text.
7. Centre aligns some text.
Header Footer and Page number
1. Create a new Word document
2. Create a blank header.
3. Add a name to the header.
4. Try inserting a pre-set header or footer.
5. Add today's date to the header.
Tables
1. Open an existing Word 2013 document.
2. Convert some text into a table.
3. Apply a table style, and experiment with the Table Style Options.
4. Insert a column into the table.
5. Delete a row from the table.
6. Insert a blank table with six rows and two columns.
7. Add borders to the blank table.