CLASS 8 COMPUTER

 

Questions & Answers

1. A step-by-step procedure to solve a particular problem.
Answer: b. Algorithm
Explanation: An algorithm is a set of ordered steps or instructions designed to perform a specific task or solve a problem. Flowcharts and programs are based on algorithms.


2. Pictorial representation of steps to solve a specific problem.
Answer: d. Flowchart
Explanation: A flowchart uses symbols and arrows to represent the sequence of steps visually, making it easier to understand the process.


3. A shape used to connect different shapes in a flowchart.
Answer: a. Arrow
Explanation: Arrows indicate the flow of control or sequence between steps in a flowchart.


4. A rounded shape in a flowchart is used to show the:
Answer: d. Start and Stop
Explanation: Ovals (or terminals) in flowcharts represent the starting and ending points of the process.


Part A: MCQ

Q5. Which of the following is true about pseudocode?
Options:
a. It must follow strict syntax rules of a specific programming language.
b. It is used for documentation purposes only.
c. It is a high-level description of a computer program. (Correct Answer)
d. It is executable on any computer without modifications.

Explanation:
Pseudocode is a simple, human-readable way of describing the steps of an algorithm without worrying about strict programming syntax. It’s not meant to be executed but to help understand and plan the logic of a program.


Part B: True or False

  1. Algorithm is a step-by-step procedure to solve a particular problem. True
    Reason: That’s the definition of an algorithm.
  2. Algorithm must begin and end with the word ‘Stop’. False
    Reason: It begins with “Start” and ends with “Stop” (or “End”).
  3. Flowcharts also help to understand the logic behind a particular problem. True
    Reason: Flowcharts visually show the logical steps in a process.
  4. If a program is altered, the flowchart does not need to be redrawn completely. False
    Reason: Changes in the program logic require redrawing or updating the flowchart.
  5. A computer uses the IF...ELSE statement for decision making. True
    Reason: IF...ELSE is used to make decisions in programming.

Part C: Shapes in a Flowchart

Shape

Name of the Shape

Function

🔵 (Oval)

Terminal

Used to represent Start or End points of a process.

(Rectangle)

Process

Represents a process, task, or action step.

(Diamond)

Decision

Used to represent decision-making with Yes/No or True/False branches.

D. Answer these questions:

1. Write an algorithm to make a cake.
Answer:
Algorithm:

  1. Start
  2. Gather all ingredients: flour, sugar, eggs, butter, baking powder, and milk.
  3. Preheat the oven to 180°C.
  4. Mix flour, baking powder, and sugar in a bowl.
  5. Add eggs, butter, and milk.
  6. Stir the mixture until smooth.
  7. Pour the batter into a cake tin.
  8. Place the tin in the oven.
  9. Bake for 30–40 minutes.
  10. Remove the cake and allow it to cool.
  11. Stop

Explanation:
This is a step-by-step procedure, which is exactly what an algorithm describes.


2. What rules should be followed to write an algorithm?
Answer:

  1. Steps should be written in simple and clear language.
  2. Steps should be in a logical order.
  3. Each step should be precise and unambiguous.
  4. The algorithm should have a start and stop point.
  5. It should solve the problem in a finite number of steps.

3. What is a flowchart? Why is it used?
Answer:
A flowchart is a diagram that represents the steps of a process using different symbols and arrows.
Uses:

  • To visualize the sequence of steps in a process.
  • To understand the logic of a program before coding.
  • To identify errors or improvements in the process easily.

4. Explain how a computer uses the IF...ELSE statement for decision making.
Answer:
The IF...ELSE statement allows a computer to choose between two actions based on a condition.

  • If the condition is true, the IF block runs.
  • If the condition is false, the ELSE block runs.

Example:

IF age >= 18 

    Print "You can vote" 

ELSE 

    Print "You cannot vote" 


5. What is the difference between pseudocode and algorithm?
Answer:

Algorithm

Pseudocode

Step-by-step logical procedure to solve a problem.

A simple way of writing an algorithm using plain English, without strict syntax.

Usually written in numbered steps.

Written in short sentences similar to programming logic.

More abstract and logical.

Closer to program structure.

 

Comments

Popular posts from this blog

class 8 computer chapter 5

Class 5 computer chapter 4