Algorithms and Flowcharts

ICSE Class 8 Computer Studies · Class - 8: ICSE Kips Logix Computer Book Solutions with BlueJ · 33 solved questions

Exercise
Marks
1Fill in the blanks

The step-by-step procedure to solve any problem is called Algorithm.

Solution not available in the source paper.

2Fill in the blanks

Flowcharts are the pictorial representation of a program.

Solution not available in the source paper.

3Fill in the blanks

The process of drawing a flowchart for an algorithm is known as Flowcharting.

Solution not available in the source paper.

4Fill in the blanks

An algorithm should involve Finite number of steps to reach a solution.

Solution not available in the source paper.

5Fill in the blanks

The Decision box is used for checking or applying any condition in the program.

Solution not available in the source paper.

1State True or False

A flowchart is not a pictorial representation of steps to get the solution of a problem.
False

Solution not available in the source paper.

2State True or False

Algorithm means a set of rules which specify how to solve a specific problem.
True

Solution not available in the source paper.

3State True or False

Flowcharts are helpful in analyzing the logic of problems.
True

Solution not available in the source paper.

4State True or False

Connectors are used to connect the boxes.
False

Solution not available in the source paper.

5State True or False

The general direction of flow in any flowchart is from bottom to top or from right to left.
True

Solution not available in the source paper.

11 Mark · Multiple Choice Questions

In a flowchart, .......... indicate the sequence of steps and the direction of flow.

Show SolutionHide Solution↓
  • Flow lines ✓
  • 21 Mark · Multiple Choice Questions

    .......... is used to accept input and give output of a program.

    Show SolutionHide Solution↓
  • Input/Output box ✓
  • 31 Mark · Multiple Choice Questions

    The .......... represents the starting or ending point of a program.

    Show SolutionHide Solution↓
  • Start /Stop box ✓
  • 41 Mark · Multiple Choice Questions

    .......... connectors are used to join the parts of a flowchart contained within the same page.

    Show SolutionHide Solution↓
  • On Page ✓
  • 1Answer the following

    What is an algorithm? Write any three characteristics of an algorithm.

    Show SolutionHide Solution↓

    The step-by-step procedure to solve any logical and mathematical problem is called an Algorithm. Three characteristics of an algorithm are:

    1. Input — An algorithm accepts an input.
    2. Generality — An algorithm works in a set of inputs.
    3. Definiteness — Each instruction should be written in a simple and precise manner so that everyone can understand it.
    2Answer the following

    Define the term flowchart. Write any two advantages of a flowchart.

    Show SolutionHide Solution↓

    A flowchart is a pictorial representation of the steps or an algorithm used to solve a particular problem. Two advantages of a flowchart are:

    1. Communication — The pictorial representation of the flowchart provides better communication. It is easier for the programmer to explain the logic of a program.
    2. Effective Analysis — It is a very useful technique, as flowchart is a pictorial representation that helps the programmer to analyze the problem in detail.
    3Answer the following

    What is the use of input/output box?

    Show SolutionHide Solution↓

    It is used for accepting inputs or giving output of the program.

    4Answer the following

    When do we use the Process box?

    Show SolutionHide Solution↓

    It is used for writing the processing instructions and doing calculations.

    5Answer the following

    What is the use of Decision box?

    Show SolutionHide Solution↓

    It is used for checking or applying any condition in the program.

    1Write algorithms for the following problems

    To polish your shoes.

    Algorithm

    Step 1: Start
    Step 2: Open the shoe polish
    Step 3: Put shoe polish on brush
    Step 4: Polish one shoe
    Step 5: Put shoe polish on brush
    Step 6: Polish the other shoe
    Step 7: Close the shoe polish
    Step 8: Stop

    Solution not available in the source paper.

    2Write algorithms for the following problems

    To input three sides of a triangle and print if it is scalene, isosceles or equilateral.

    Algorithm

    Step 1: Start
    Step 2: Read three sides of triangle and store them in a, b, c.
    Step 3: Check if a == b and b == c
    Step 4: If true, print "Equilateral Triangle" and goto step 8
    Step 5: Check if a == b or b == c or c == a
    Step 6: If true, print "Isosceles Triangle" and goto step 8
    Step 7: Print "Scalene Triangle"
    Step 8: Stop

    Solution not available in the source paper.

    1Draw the following flowcharts

    Draw a flowchart in Microsoft Word for buying stationery from the market.

    Flowchart

    Draw a flowchart in Microsoft Word for buying stationery from the market.

    Solution not available in the source paper.

    2Draw the following flowcharts

    Draw a flowchart in Microsoft Word for the steps required to play music stored in a CD.

    Flowchart

    Draw a flowchart in Microsoft Word for the steps required to play music stored in a CD.

    Solution not available in the source paper.

    3Draw the following flowcharts

    Draw a flowchart in Microsoft Word to accept two numbers, if the first number is greater than the second number, print their sum, otherwise print their product.

    Flowchart

    Draw a flowchart in Microsoft Word to accept two numbers, if the first number is greater than the second number, print their sum, otherwise print their product.

    Solution not available in the source paper.

    4Draw the following flowcharts

    Draw a flowchart in Microsoft Word for the steps required to find the cost of 24 pens when the cost of one pen is Rs. 12.

    Flowchart

    Draw a flowchart in Microsoft Word for the steps required to find the cost of 24 pens when the cost of one pen is Rs. 12.

    Solution not available in the source paper.

    1Write an algorithm and draw the flowchart for…

    Finding the cube of a given number.

    Algorithm

    Step 1: Start
    Step 2: Read the number and store it in a.
    Step 3: Calculate cube of number as a * a * a
    Step 4: Print cube of number
    Step 5: Stop

    Flowchart

    Draw a flowchart for finding the cube of a given number.

    Solution not available in the source paper.

    2Write an algorithm and draw the flowchart for…

    Print the smallest of two numbers.

    Algorithm

    Step 1: Start
    Step 2: Read the two numbers and store them in a and b.
    Step 3: Check if a < b
    Step 4: If true then print a and goto step 6
    Step 5: If false then print b
    Step 6: Stop

    Flowchart

    Draw a flowchart to print the smallest of two numbers.

    Solution not available in the source paper.

    1Correct the Flowchart symbols

    To wash the face

    Corrected Flowchart

    Correct the symbols of the Flowchart to wash the face

    Solution not available in the source paper.

    2Correct the Flowchart symbols

    To multiply the two numbers

    Corrected Flowchart

    Correct the symbols of the Flowchart to multiply the two numbers.

    Solution not available in the source paper.

    1Make flowcharts for the following statements

    Accept the age of a person. Display the message Eligible For Role if the age is equal to or greater than 18, otherwise display the message Not Eligible.

    Flowchart

    Accept the age of a person. Display the message Eligible For Role if the age is equal to or greater than 18, otherwise display the message Not Eligible.

    Solution not available in the source paper.

    2Make flowcharts for the following statements

    Input a name. If name is Kabir, then accept marks. If marks are >= 85, then display Good Performance else display Pass.

    Flowchart

    Draw a flowchart to print the smallest of two numbers.

    Solution not available in the source paper.

    3Make flowcharts for the following statements

    Accept one character. Display the message Vowel if the entered character is a vowel, otherwise display the message Not a Vowel.

    Flowchart

    Draw a flowchart to print the smallest of two numbers.

    Solution not available in the source paper.

    4Make flowcharts for the following statements

    Input a year. Display the message Leap year if the entered year has 366 days, otherwise display the message Not a leap year.

    Flowchart

    Draw a flowchart to print the smallest of two numbers.

    Solution not available in the source paper.

    Press ↓ to reveal a solution and move to the next question. Back to Class - 8: ICSE Kips Logix Computer Book Solutions with BlueJ.