Algorithm and flowchart: 28 MCQs with answers

All 28 multiple-choice questions from this kit, free and with no sign-up.

Warm-up · 15 questions

Q1. What is an algorithm?

Beginner
A A visual representation of a process B A type of computer hardware C A programming language D A step-by-step procedure to solve a problem
Show answer & explanation

A step-by-step procedure to solve a problem

An algorithm is a finite set of well-defined steps to solve a specific problem, not a visual or hardware.

Q2. Which symbol in a flowchart represents a decision (yes/no or true/false)?

Beginner
A Rectangle B Oval C Parallelogram D Diamond
Show answer & explanation

Diamond

A diamond is used for decision points, leading to different branches based on a condition.

Q3. In a flowchart, what does a parallelogram represent?

Beginner
A Decision B Process/calculation C Start/End D Input/Output
Show answer & explanation

Input/Output

A parallelogram indicates input or output operations, like reading data or displaying results.

Q4. What is the purpose of a flowchart?

Beginner
A To execute code directly B To replace the need for an algorithm C To visually represent the logic of an algorithm D To compile a program
Show answer & explanation

To visually represent the logic of an algorithm

A flowchart is a visual blueprint of an algorithm, helping to understand and communicate the logic.

Q5. In a flowchart, the start and end symbols are typically:

Beginner
A Parallelograms B Rectangles C Ovals or rounded rectangles D Diamonds
Show answer & explanation

Ovals or rounded rectangles

Ovals (or rounded rectangles) denote the beginning and end of a flowchart.

Q6. What does the 'flow' in a flowchart represent?

Beginner
A The speed of execution B The data types used C The memory usage D The sequence of steps and decisions
Show answer & explanation

The sequence of steps and decisions

Flow lines show the order in which steps are executed, representing the control flow.

Q7. Which symbol is used for a process or calculation in a flowchart?

Beginner
A Rectangle B Parallelogram C Diamond D Oval
Show answer & explanation

Rectangle

A rectangle represents a processing step, such as an arithmetic operation or assignment.

Q8. In a flowchart, what does an arrow indicate?

Beginner
A The start of the process B The direction of flow C An input/output operation D A decision point
Show answer & explanation

The direction of flow

Arrows show the direction of control flow from one step to the next.

Q9. Which of the following is an example of an algorithm in daily life?

Beginner
A Talking to a friend B Following a map to reach a destination C Listening to music D Looking at a picture
Show answer & explanation

Following a map to reach a destination

Following a map involves a step-by-step procedure to reach a goal, which is algorithmic.

Q10. A flowchart can be used to represent an algorithm without using any words.

Beginner
A True B False
Show answer & explanation

True

Flowcharts use symbols and arrows to represent logic, so they can be purely visual.

Q11. An algorithm must always be implemented in a programming language to be valid.

Beginner
A True B False
Show answer & explanation

False

An algorithm is a conceptual step-by-step procedure; it can be expressed in natural language or pseudocode.

Q12. Which flowchart symbol is used to represent a decision point where the flow can branch based on a condition?

Beginner
A Parallelogram B Oval C Diamond D Rectangle
Show answer & explanation

Diamond

A diamond (or rhombus) is the standard flowchart symbol for a decision, with one entry and two or more exit paths labeled with conditions (e.g., Yes/No).

Q13. When constructing a flowchart for an algorithm, what is the primary purpose of using arrows?

Beginner
A To indicate the sequence and control flow between steps B To connect symbols of the same type C To decorate the diagram D To show the direction of data flow only
Show answer & explanation

To indicate the sequence and control flow between steps

Arrows in a flowchart represent the flow of control, showing the order in which steps are executed, including branches and loops.

Q14. In a flowchart, what does a parallelogram symbol typically represent?

Beginner
A Process or computation B Input or output operation C Conditional branch D Start or end of the program
Show answer & explanation

Input or output operation

A parallelogram is used for input/output operations, such as reading a value from the user or displaying a result.

Q15. What is the primary advantage of using a flowchart over a purely textual algorithm?

Beginner
A Flowcharts eliminate all logical errors B Flowcharts provide a visual clarity that makes logic easier to understand and debug C Flowcharts can be executed directly by a computer D Flowcharts are always shorter than algorithms
Show answer & explanation

Flowcharts provide a visual clarity that makes logic easier to understand and debug

Visual representation helps humans grasp the overall structure, spot logical flaws, and communicate the algorithm more effectively than text alone.

Building up · 12 questions

Q16. Which of the following is a characteristic of a good algorithm?

Intermediate
A It must have clear, unambiguous steps and terminate B It should be as long as possible C It must be written in a programming language D It should have ambiguous steps to allow creativity
Show answer & explanation

It must have clear, unambiguous steps and terminate

A good algorithm is precise, unambiguous, and finite—it must end after a finite number of steps.

Q17. Which of the following real-life examples best illustrates an algorithm?

Intermediate
A A painting of a landscape B A recipe for baking a cake C A photograph of a building D A musical note
Show answer & explanation

A recipe for baking a cake

A recipe is a step-by-step procedure to achieve a result, just like an algorithm.

Q18. An algorithm to find the largest of three numbers would typically use which control structure?

Intermediate
A Selection (if-else) B Iteration (loop) C Recursion D Sequence only
Show answer & explanation

Selection (if-else)

Comparing numbers requires decision-making, which is implemented using selection (if-else) structures.

Q19. What is the main advantage of using a flowchart over a textual algorithm?

Intermediate
A It is shorter B It is easier to write C It can be executed by a computer D It provides a visual clarity that simplifies understanding
Show answer & explanation

It provides a visual clarity that simplifies understanding

Flowcharts make the logic visually explicit, which helps in understanding and debugging.

Q20. Which of the following is NOT a valid step in designing an algorithm?

Intermediate
A Ensure the algorithm terminates B List the steps in order C Write the code in a specific programming language D Define the problem clearly
Show answer & explanation

Write the code in a specific programming language

An algorithm is language-independent; writing code is a later step, not part of algorithm design.

Q21. What is the role of a connector symbol in a flowchart?

Intermediate
A To perform calculations B To indicate the end of the flowchart C To connect different parts of a flowchart, especially across pages D To represent input/output
Show answer & explanation

To connect different parts of a flowchart, especially across pages

Connectors (usually circles) link parts of a flowchart to avoid crossing lines or to continue on another page.

Q22. Which of the following is a limitation of a flowchart?

Intermediate
A It can become complex and unwieldy for large algorithms B It cannot show decisions C It is difficult to understand D It is not visual
Show answer & explanation

It can become complex and unwieldy for large algorithms

For very large algorithms, flowcharts can become messy and hard to manage, which is a known limitation.

Q23. Which of the following best describes the relationship between an algorithm and a flowchart?

Intermediate
A They are interchangeable terms with no difference B A flowchart is a textual description of an algorithm C An algorithm is a visual representation of a flowchart D A flowchart is a graphical representation of an algorithm
Show answer & explanation

A flowchart is a graphical representation of an algorithm

An algorithm is a step-by-step logical procedure, while a flowchart translates that logic into a visual diagram using standardized symbols.

Q24. When converting an algorithm to a flowchart, what is a common pitfall that leads to an infinite loop?

Intermediate
A Placing input/output symbols before processing B Using an oval for both start and end C Using too many decision symbols D Forgetting to update the loop control variable
Show answer & explanation

Forgetting to update the loop control variable

If the loop variable is not updated inside the loop, the condition never becomes false, causing an infinite loop—a classic flowchart error.

Q25. Which of the following real-world scenarios is best modeled by a flowchart with a loop (repetition) structure?

Intermediate
A Deciding whether to wear a jacket based on temperature B Adding two numbers and printing the sum C Choosing a restaurant from a menu D Checking each item in a shopping list until all are purchased
Show answer & explanation

Checking each item in a shopping list until all are purchased

Looping is used when a set of steps must be repeated for each item, like iterating over a list until a condition (end of list) is met.

Q26. In flowchart construction, what is the correct order of steps when designing an algorithm to find the largest of three numbers?

Intermediate
A Start → Output largest → Input three numbers → Compare → End B Start → Input three numbers → Compare first two, then compare result with third → Output largest → End C Start → Input → Output → Compare → End D Start → Compare all three simultaneously → Input → Output → End
Show answer & explanation

Start → Input three numbers → Compare first two, then compare result with third → Output largest → End

The logical sequence is to start, get inputs, perform comparisons in a structured manner (e.g., pairwise), then output the result and end.

Q27. A flowchart must always have exactly one start symbol and at least one end symbol, but it can have multiple end symbols if different exit points exist.

Intermediate
A True B False
Show answer & explanation

True

Standard flowchart conventions require a single start (to avoid ambiguity) but allow multiple end symbols, e.g., when different branches terminate at different points.

Topper level · 1 questions

Q28. Which flowchart symbol is used to represent a predefined process or subroutine (e.g., a function call)?

Advanced
A Hexagon B Rounded rectangle C Rectangle with double vertical lines D Circle with a letter inside
Show answer & explanation

Rectangle with double vertical lines

A rectangle with extra vertical lines on each side denotes a predefined process, indicating a named subroutine or module that is defined elsewhere.

Make your own

Your notes can be a kit like these

Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free, in 42 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Exam prep

Get Veda free See what students get

Free to start · No ads · Works in 42 languages