0% found this document useful (0 votes)
6 views4 pages

Algorithm and Flowchart Quiz Guide

Uploaded by

lkwakiki
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

Algorithm and Flowchart Quiz Guide

Uploaded by

lkwakiki
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Algorithm & Flowchart Fundamentals

Quiz
✅ Part A: Multiple Choice Questions
1. What does an algorithm help you do?
– a) Make music
– b) Solve a problem step by step answer:b
– c) Paint pictures
– d) Design clothes
2. What symbol is used to start and stop a flowchart?
– a) Rectangle
– b) Diamond
– c) Oval answer:c
– d) Arrow
3. What is the result of this formula: Area = HEIGHT × WIDTH if HEIGHT = 4 and
WIDTH = 3?
– a) 7
– b) 12 answer:b
– c) 43
– d) 1
4. In a flowchart, the diamond shape is used for:
– a) Input/output
– b) Start
– c) Decision making answer:c
– d) Calculations
5. Which of these is a loop structure?
– a) IF-THEN
– b) GOTO
– c) WHILE answer:c
– d) START

❌ Part B: True or False


1. A flowchart helps you see the steps of a solution. Answer:true
2. The symbol = is used to compare two numbers in an algorithm. Answer:false
3. The oval shape is used for decision-making. Answer:false
4. An algorithm can work without giving any result. Answer:true
✍️Part C: Fill in the Blanks
1. An ……algorithm…………………………is a step-by-step plan to solve a problem.
2. A …flowchart…………is a diagram that shows how to solve a problem using
symbols.
3. The …parallelogram………….symbol is used to take input and give output.
4. In the flowchart, the……Dimond…….. shape is used to do calculations like
addition.
5. The loop that keeps running while a condition is true is called …
while………..loop.

🔄 Part D: Match the Following


A (Term) B (Meaning)
16. Algorithm a) YES/NO choice
17. b) Processing step (like A = B + C)
Parallelogram
18. Diamond c) Step-by-step instructions
19. Rectangle d) Input or Output
20. Oval e) Start or End

Your Matches:
16. ___c___ 17. ___d___ 18. __b____ 19. ___a___ 20. __e____

🧠 Part E: Short Answer Questions


1. What is a flowchart used for?
2. Why should each step in an algorithm be clear and simple?
3. List two advantages of using a flowchart before coding.
4. What happens when the condition in a WHILE loop is false?
Answers
1: A flowchart is a visual diagram that represents the steps in a process or system.
2: ✔️It ensures the algorithm is easy to follow and debug
✔️Simple steps reduce the chance of errors or misunderstanding
3: Better Planning & Improved Communication
4: The loop does not execute even once
What does this algorithm do?
Step 1: Start
Step 2: Input A, B
Step 3: A = A + B
Step 4: B = A - B
Step 5: A = A - B
Step 6: Display A, B
Step 7: Stop

🧮 Part F: Algorithm Writing


[Link] an algorithm to find the sum of two numbers.
Algorithm: Sum of Two Numbers
Step 1: Start
Step 2: Declare variables `num1`, `num2`, `sum`
Step 3: Input `num1`
Step 4: Input `num2`
Step 5: Calculate `sum` = `num1` + `num2`
Step 6: Display `sum`
Step 7: Stop
X=10

Y=10
Sum = y+x
Print(sum)
[Link] an algorithm to check if a number is even or odd.
Algorithm: Check Even or Odd
Step 1: Start
Step 2: Declare variable `number`
Step 3: Input `number`
Step 4: IF `number` MOD 2 = 0 THEN
Display "The number is Even"
Step 5: ELSE
Display "The number is Odd"
Step 6: END IF
Step 7: Stop
[Link] an algorithm to find the area and perimeter of a rectangle.
Algorithm: Area and Perimeter of Rectangle
Step 1: Start
Step 2: Declare variables `length`, `width`, `area`, `perimeter`
Step 3: Input `length`
Step 4: Input `width`
Step 5: Calculate `area` = `length` * `width`
Step 6: Calculate `perimeter` = 2 * (`length` + `width`)
Step 7: Display `area`
Step 8: Display `perimeter`
Step 9: Stop

You might also like