You are on page 1of 11

PRACTICAL WORK

NAME:- SAKSHAM SINGH


CLASS:- 6th ‘H’
ROLL NO.:- 28
ADMISSION NO.:- 38068
SCHOOL:- ARMY PUBLIC SCHOOL JALANDHAR CANTT
PRACTICAL NO. 1
Q:- To illustrate various components of computer
under different blocks.
ANS:- The various components of the computer are:-
INPUT UNIT CENTRAL OUTPUT UNIT
An input device is any PROCESSING UNIT
hardware device that sends Central processing unit, also An output device is any
data to a computer, called CPU. It is the control hardware device used to
allowing you to interact centre of computer. It controls send data from a computer
all the functions of a computer.
with and control it. ... The to another device or user. ...
It has three elements which
most commonly used or help it to do the work , that Typical examples of output
primary input devices on a are:- devices are monitors and
computer are the keyboard Memory Unit projectors, headphones and
and mouse. Arithmetic and Logic Unit speakers or printers
Control Unit
PRACTICAL NO. 2
Q:- To identify and list various types of storage
devices.
ANS:- The various types of storage devices are:-
 Hard Disk
 Compact Disk (CD)
 Digital Versatile Disc (DVD)
 Flash Drive
 Memory Cards
 RAM (Random Access Memory)
 ROM (Read Only Memory)
PRACTICAL NO.3
Q:- To write Algorithms & draw Flow Chart to
calculate square of a number.
ANS:- Algorithm for calculating the square of a
number:-
• Step 1:- START
• Step 2:- Input a number
• Step 3:- Square=number*number
• Step 4:- Print square
• Step 5:- STOP
Flowchart for finding the square of a number

START

Let’s take the


number ‘X’

Square= x*x

Print result

Stop
PRACTICAL NO.4
Q:- To write Algorithms & draw Flow Chart to check
for leap year.
ANS:- The algorithm for checking leap year is:-
 Step 1:- START
 Step 2:- Read the year
 Step 3:- Divide the year by 4
 Step 4:- If it is divisible, then it’s a leap year
 Step 5:- If it is not divisible, then it is not a leap year
 Step 6:- Print the result
 Step 7:- STOP
Flowchart for checking of leap year
START

Read the year

If yes, it’s a leap Is year


divisible If no, it is not a
year
by 4? leap year

Show the result

STOP
PRACTICAL NO. 5
Q:- To write Algorithms & draw Flow Chart to
Calculate Area and Perimeter of Rectangle.
ANS:- Algorithm for calculating perimeter of a
rectangle:-
o Step 1:- START
o Step 2:- Read the length and breadth of the
rectangle
o Step 3:- Perimeter:- 2*(length + breadth)
o Step 4:- Show the result
o Step 5:- STOP
Flowchart for perimeter of rectangle
START

Read length and


breadth

Perimeter of rectangle:-
2*(length + breadth)

Show the results

STOP
Algorithm for calculating the area of a rectangle
 Step 1:- START
 Step 2:- Read length and breadth
 Step 3:- Area of rectangle:- length * breadth
 Step 4:- Show result
 Step 5:- STOP
Flowchart for calculating the area of a rectangle:-
START

Read length
and breadth

Area of rectangle :-
Length * Breadth

Show results

STOP

You might also like