Lab Experiment
Lab Experiment
LAB EXPERIMENT # 01
Background Theory:
What is a Computer? A computer consists mainly of a Central Processing Unit (CPU), a
monitor, a keyboard, and a mouse. Other hardware can include a printer, a scanner, flash drives
and other devices. Below is some basic information about those devices and their uses.
CPU: The main part of the computer is the Central Processing Unit
(CPU), which is the “brains” of the computer. On the outside, you
will see the cd/dvd drives, one or more USB drives, the power
button, and the reset button. Older models may have a 5 ¼ floppy
disc drive.
Flash drives (also called jump drives): Handy compact devices that
you can use to transport your data (documents, photos) from one
computer to another. They can hold much information and are
rewritable, which means you can use them over and over again.
DEPARTMENT OF ELECTRICAL ENGINEERING
Software: Programs used to carry out computer functions, such as Microsoft Word;
PowerPoint; Excel, and various photo programs. These programs are knows as application
software. Operating software consists of programs that operate your computer.
.
Lab Task:
1. Make the group of 5 students
2. All should connect power cables to various CPU devices
3. All should connect data cables to hard drive and CD ROM
4. All should connect power cable into mother board
5. All should learn to plug RAM device into mother board
6. All should learn how CPU is inserted into mother board.
Observation Table:
Lab Exercise:
A. Answer the following.
i. Where ROM is located on mother board?
ii. What is procedure of connecting mother board to several other
device
Answers by student:
DEPARTMENT OF ELECTRICAL ENGINEERING
LAB EXPERIMENT # 02
Background Theory:
Turning on the Computer
Most computers have a power switch located on the CPU, either at the top or on the front panel.
Push this switch to turn on (power up or boot) your computer. If your monitor does not come on
when you power up your computer, locate the power button on the monitor and turn it on.
Some computers may require a User Name and Password in order for you to log on. Enter this
information in the space provided and push Enter on your keyboard.
Basic Windows –
Desktop, taskbar, icons and the start menu.
This online video will familiarize your student with the computer desktop
(https://www.youtube.com/watch?v=2v_WnMKl4IA&ab_channel=TeachUComp)
1. Locate the Internet icon on your desktop. Click on it to obtain online access.
2. Type the following in the address bar:
DEPARTMENT OF ELECTRICAL ENGINEERING
Desktop contains
Lab Exercise:
LAB EXPERIMENT # 03
Background Theory:
WORD PROCESSORS:
Microsoft word is a sophisticated Word Processing Package that provides a range of features for document
creation and formatting, including many desktop publishing type features, graphics and drawing utilitis. Word can
be used to produce many document types including: Letter, Reports, Memos, Advertisement, CV.
DEPARTMENT OF ELECTRICAL ENGINEERING
DEPARTMENT OF ELECTRICAL ENGINEERING
.
Lab Task
Task No: 1
ix. Open a new document and insert the table with the following data:
. Task No: 2
Task No: 3
Lab Exercise:
A. Design any one pan flex posted on the wall of Electrical Engineering Department
B. Design your own CV using MS-Word file
Submission:- Submit both of lab exercises in .docs soft copy and hard copy form
LAB EXPERIMENT # 04
Background Theory:
MS POWER POINT
Lab Task:
This exercise will help you explore some creative, and less standard, ways of using PowerPoint
to create an interactive presentation. Read through the instructions on the following pages for an
idea of some of the things you can do with this program. For this exercise, you will create a
PowerPoint slide show that includes the following six slides (Item numbers from the following
instructions are included in parentheses to help you create each slide.)
1. A “homepage” slide with a title and links or buttons to each of your other five pages. Contains
Title and Design of slides, use Design tab)
2. A slide that uses arrows (and/or circles) and text to label different aspects of a photograph or
graphic image. (Use Insert Tab for this)
3. A slide that uses no words but is an image collage that builds itself automatically. (In other
words, images appear on the page one-at-a-time, automatically timed, to create one large
collage). (see how slide transition works)
4. A slide that has a bulleted list of items that are animated so that the items appear on the page
one-at-a-time. Set it up so that each item dims as the next item appears. (see animation tab and
bullets)
5. A slide that uses a sound effect that is integrally tied to the information on the page (either as an
auditory example of something you are talking about, or as an element that helps to create the
DEPARTMENT OF ELECTRICAL ENGINEERING
context for what you are talking about – for example, birds singing as you talk about the rain
forest.) (Use how effects in animation tab can be used in slide)
6. A slide that links to a web page.
NOTE: Rather than using one of the standard design templates that comes with PowerPoint, this
exercise has you designing your own color scheme and slide layout.
ANOTHER NOTE: Be sure that all sound files are saved in a folder with your PowerPoint
presentation. (This does not include sound effects added from PowerPoint; only sound files that
you have inserted from the Web or from your own computer).
In the Mac Lab, PowerPoint is on your Dock under Microsoft Office (with Word). Double-click
to open it, then select PowerPoint presentation and click OK.
MS EXCEL
Microsoft Excel is a powerful electronic spreadsheet program you can use to automate
accounting work, organize data, and perform a wide variety of tasks. Excel is designed to
perform calculations, analyze information, and visualize data in a spreadsheet. Also this
application includes database and charting features.
DEPARTMENT OF ELECTRICAL ENGINEERING
DEPARTMENT OF ELECTRICAL ENGINEERING
Exercise:
A. Design a good presentation of any of your Computer Fundamentals subject lecture having
all the features of slid design, inserting images, transition of slides and animation of slide.
B. Design the Annual budget sheet using MS EXCEL having following format
Total
DEPARTMENT OF ELECTRICAL ENGINEERING
LAB EXPERIMENT # 05
INTERNET WORLD.
Necessary Tools:
Desktop PC
Internet Connection
Browser installed in Windows OS
Background Theory:
Getting Started
Open your internet browser (Internet Explorer, Netscape, or other) by double-clicking the
browser icon located on your desktop or in the Start Menu. This takes you to your Home Page.
The name of the Home Page appears in the address bar.
DEPARTMENT OF ELECTRICAL ENGINEERING
• In the Search bar (located just below the address bar), type the words search engines list.
• Select Search or press the Enter key on your computer. This brings up several sites
from which you can choose.
• Double-click to select Comprehensive list of Search Engines – The Search Engine List.
This brings you to a table that lists various search engines that are used to search the
internet.
Match Up! Put the number of the description in Box A on the line next to the
correct answer in Box B.
Box A Box B
1. The screen you see when you open your Internet Browser 3. Search Engine
2. Where you type the name of a site you wish to visit 4. Email
1. Home page
3. An internet tool you use to search for information
6. Icon
4. An internet tool used to send and receive messages
2. Address bar
5. A popular Search engine
5. Google
6. A picture on your desktop that is a shortcut to a program
or the internet
DEPARTMENT OF ELECTRICAL ENGINEERING
Lab Task:
There are many email servers that you can choose from to create an email account. For this
lesson, we are going to open an account using 1Yahoo!
1 http://www.gmail.com
DEPARTMENT OF ELECTRICAL ENGINEERING
LAB EXPERIMENT # 06
INTRODUCTION TO PYTHON
Necessary Tools:
Desktop PC
Python IDEL or online Python Compiler
(https://www.onlinegdb.com/online_python_compiler#)
Background Theory:
Python is Interactive − You can actually sit at a Python prompt and interact with the
interpreter directly to write your programs.
Python is Object-Oriented − Python supports Object-Oriented style or technique of
programming that encapsulates code within objects.
Python is a Beginner's Language − Python is a great language for the beginner-level
programmers and supports the development of a wide range of applications from
simple text processing to WWW browsers to games.
DEPARTMENT OF ELECTRICAL ENGINEERING
Lab Task:
1. Download the python (https://www.python.org/downloads/) or use online compiler
(https://www.python.org/downloads/
Exercise:
Submission Guidelines:
1. You have to submit the program in as .py file and copy paste your code and output in
Practical Book
DEPARTMENT OF ELECTRICAL ENGINEERING
Exercise:
LAB EXPERIMENT # 07
Necessary Tools:
Desktop PC
Python IDEL or online Python Compiler
(https://www.onlinegdb.com/online_python_compiler#)
Background Theory:
Variables are nothing but reserved memory locations to store values. This means that when
you create a variable you reserve some space in memory. Based on the data type of a variable,
the interpreter allocates memory and decides what can be stored in the reserved memory.
Therefore, by assigning different data types to variables, you can store integers, decimals or
characters in these variables.
Python Numbers
Number data types store numeric values. Number objects are created when you assign a value
to them. For example −
var1 = 1
var2 = 10
int (signed integers)
long (long integers, they can also be represented in octal and hexadecimal)
float (floating point real values)
DEPARTMENT OF ELECTRICAL ENGINEERING
Python Strings
Strings in Python are identified as a contiguous set of characters represented in the
quotation marks. Python allows for either pairs of single or double quotes. Subsets of
strings can be taken using the slice operator ([ ] and [:] ) with indexes starting at 0 in the
beginning of the string and working their way from -1 at the end.
The plus (+) sign is the string concatenation operator and the asterisk (*) is the
repetition operator. For example –
DEPARTMENT OF ELECTRICAL ENGINEERING
Python Lists
Lists are the most versatile of Python's compound data types. A list contains items separated
by commas and enclosed within square brackets. To some extent, lists are similar to arrays in
C. One difference between them is that all the items belonging to a list can be of different data
type.
Python Tuples
A tuple is another sequence data type that is similar to the list. A tuple consists of a number of
values separated by commas. Unlike lists, however, tuples are enclosed within parentheses.
The main differences between lists and tuples are: Lists are enclosed in brackets ( [ ] ) and their
elements and size can be changed, while tuples are enclosed in parentheses ( ( ) ) and cannot
be updated.
DEPARTMENT OF ELECTRICAL ENGINEERING
Lab Task:
1. Design your own integer and float variable assigning certain values
2. Create a string having value “Computer Fundamentals” and apply all operations
3. Create list having values, your name, department, roll number, your CPN and apply all operations.
Open-Ended Lab:
1. Write a python program that sets mass of object as integer variable having value 3 and acceleration as
float variable having value 2.7 and calculate force.
2. Initialize a string named “Welcome to department of Electrical Engineering” and apply following
operations on string.
3. Initialize a python list named subject that contains all the subject of your first semester and apply
following operation on list
Submission Guidelines:
1. You have to submit the program in as .py file and copy paste your code and output in
Practical Book
DEPARTMENT OF ELECTRICAL ENGINEERING
Lab Task:
1. Design your own integer and float variable assigning certain values
2. + Create a string having value “Computer Fundamentals” and apply all operations
3. Create list having values, your name, department, roll number, your CPN and apply all operations
DEPARTMENT OF ELECTRICAL ENGINEERING
LAB EXPERIMENT # 08
Necessary Tools:
Desktop PC
Python IDEL or online Python Compiler
(https://www.onlinegdb.com/online_python_compiler#)
Background Theory:
Types of Operator
Python language supports the following types of operators.
Arithmetic Operators
Comparison (Relational) Operators
Assignment Operators
Logical Operators
Arithmetic Operators: These operators are responsible for basic arithmetic calculation like, addition,
subtraction, multiplication and division. Following are examples.
DEPARTMENT OF ELECTRICAL ENGINEERING
Comparison or Relational Operator: these operators are used to evaluate the relationship among two
variables or numeric values.
Lab Task:
DEPARTMENT OF ELECTRICAL ENGINEERING
Open-Ended Lab:
x is greater than y
y is not equal to x
y is equal to 8
Submission:- Submit .py file and past snap shot of code and output in manual
DEPARTMENT OF ELECTRICAL ENGINEERING
LAB EXPERIMENT # 09
COMPUTING FUNDAMENTALS Dated:
LAB EXPERIMENT # 9
Necessary Tools:
Desktop PC
Python IDEL or online Python Compiler
(https://www.onlinegdb.com/online_python_compiler#)
Background Theory:
Logical operators: perform Logical AND, Logical OR, and Logical NOT operations. It is used to combine
conditional statements.
and Logical AND: True if both the operands are true x and y
Lab Task:
Open-Ended Lab:
Submission:- Submit .py file and past snap shot of code and output in manual
DEPARTMENT OF ELECTRICAL ENGINEERING
LAB EXPERIMENT # 10
Necessary Tools:
Desktop PC
Python IDEL or online Python Compiler
(https://www.onlinegdb.com/online_python_compiler#)
Background Theory:
Input and output in python: Use Python built-in input() function to take integer input from the
user. This input() function returns string data and it can be stored in a string variable. Then use the int()
function to parse into an integer value.
DEPARTMENT OF ELECTRICAL ENGINEERING
Lab Task:
Open-Ended Lab:
LAB EXPERIMENT # 11
Necessary Tools:
Desktop PC
Python IDEL or online Python Compiler
(https://www.onlinegdb.com/online_python_compiler#)
Background Theory:
Variable: Python variable is basically used to store certain value or data. It mainly represents
particular data initialized. Variable keep on changing its value and final depends on last operator used
for particular variable.
DEPARTMENT OF ELECTRICAL ENGINEERING
Lab Task:
Open-Ended Lab:
LAB EXPERIMENT # 12
Necessary Tools:
Desktop PC
Python IDEL or online Python Compiler
(https://www.onlinegdb.com/online_python_compiler#)
Background Theory:
Syntax:
if test expression:
Body of if
else:
Body of else
DEPARTMENT OF ELECTRICAL ENGINEERING
Lab Task:
Open-Ended Lab:
Submission:- Submit .py file and past snap shot of code and output in manual
DEPARTMENT OF ELECTRICAL ENGINEERING
LAB EXPERIMENT # 13
LOOPS IN PYTHON-1
Background Theory:
The for loop in Python is used to iterate over a sequence (list, tuple, string) or other iterable objects.
Iterating over a sequence is called traversal.
Here, Val is the variable that takes the value of the item inside the sequence on each iteration.
Loop continues until we reach the last item in the sequence. The body of for loop is separated from the
rest of the code using indentation.
DEPARTMENT OF ELECTRICAL ENGINEERING
Lab Task:
Open-Ended Lab:
(i) 97, 94, 91, 88, 85, 82, 79, 76, 73, 70
(ii) 40, 44, 48, 52, 56, 60, 64, 68, 72, 76
Submission:- Submit .py file and past snap shot of code and output in manual
DEPARTMENT OF ELECTRICAL ENGINEERING
DEPARTMENT OF ELECTRICAL ENGINEERING
LAB EXPERIMENT # 14
LOOPS IN PYTHON-2
Necessary Tools:
Desktop PC
Python IDEL or online Python Compiler
(https://www.onlinegdb.com/online_python_compiler#)
Background Theory:
The while loop in Python is used to iterate over a block of code as long as the test expression (condition)
is true. We generally use this loop when we don't know the number of times to iterate beforehand.
Python interprets any non-zero value as True. None and 0 are interpreted as False.
DEPARTMENT OF ELECTRICAL ENGINEERING
Lab Task:
Open-Ended Lab:
(i) 105, 100, 95, 90, 85, 80, 75, 70, 65, 60, 55, 50, 45, 40
(ii) 22, 28, 34, 40, 46, 52, 58, 64, 70, 76, 82, 88, 94, 100
Submission: - Submit .pay file and past snap shot of code and output in manual
DEPARTMENT OF ELECTRICAL ENGINEERING
LAB EXPERIMENT # 15
FUNCTIONS IN PYTHHON
Concept of FUNCTIONS
Understanding functions in Python
Necessary Tools:
Desktop PC
Python IDEL or online Python Compiler
(https://www.onlinegdb.com/online_python_compiler#)
Background Theory:
In Python, a function is a group of related statements that performs a specific task. Functions help break
our program into smaller and modular chunks. As our program grows larger and larger, functions make
it more organized and manageable. Furthermore, it avoids repetition and makes the code reusable.
Syntax of Function
def function_name(parameters):
statement(s)
One or more valid python statements that make up the function body. Statements must have
the same indentation level (usually 4 spaces).
An optional return statement to return a value from the function.