Computer Notes 5th Class Unit No.1

UNIT NO.1

Algorithm and Flowchart

(Solved Exercise)

A. Choose the correct option:

1. Set of instructions given in natural language is called:
a. Software
b. Algorithm
c. Flowchart
d. None

2. Pictorial representation of a Solution is called:
a. Software
b. Algorithm
c. Flowchart
d. None

3. Oval sign in flowcharts is used for.
a. Start
b. End
c. Both a and b
d. None

4. In flowcharts different steps are connected by:
a. Oval
b. Flow lines
c. Diamond
d. None

5. Diamond symbol represents __________ in flowcharts.
a. Database
b. Input
c. Output
d. None

B. Write down the algorithms to solve the problems:
1. Algorithm to wear shoes.
Step 1: Hold the Shoes
Step 2: Insert Your Feet
Step 3: Shoes are worn

2. Algorithm to calculate the sum of three numbers.
Step 1: Input three numbers N1, N2 and N3
Step 2: Add numbers N1, N2 and N3 and store the result in Sum
Step 3: Display the value of Sum on screen

3. Algorithm to solve the question of your math.
Step 1: Read the math problem
Step 2: Find the possible solution
Step 3: Display the solution with answer

4. Algorithm to make a tea.
Step 1: Take water in kettle
Step 2: Boil water
Step 3: Put ingredients like milk, tea leaves, sugar in water
Step 4: Boil all ingredients with water.
Step 5: Pour tea into cup

C. Write down the flowcharts for the problems:
1. To wear shoes.

2. To calculate the sum of three numbers.

3. To solve the question of you math.

4. To make a tea.

D: Answer the following questions.
1. What is an algorithm?
Answer:
An algorithm is a set of instructions or guidelines given to computer that describes how to perform a specific task.

2. Differentiate between algorithm and flowchart.
Answer:
Algorithm
An algorithm is a set of instructions or guidelines given to computer that describes how to perform a specific task.
Flowchart
Flowchart is simply graphically representation of steps for the solution of a problem.

3. Why do we use connectors in flowcharts?
Answer:
When a flowchart is expand on more than one page then we use connector symbol to connect the flowchart of different pages.

4. Why do we use arrows in flow chart?
Answer:
In flowchart, arrows are used to show the direction of process flow.

5. What is use of diamond symbol in flowchart?
Answer:
Diamond symbol is basically use to show decision making process in flowchart.