0% found this document useful (0 votes)
9 views2 pages

Algorithm Design & Flowchart Test Guide

The document outlines a test on algorithm design, pseudocode, and flowchart correction, consisting of 10 questions with a total of 50 marks. Each question requires identifying and correcting errors in pseudocode, as well as describing or redrawing flowchart symbols. The test is designed for a range of skill levels from beginner to advanced and has a time limit of 45 minutes.

Uploaded by

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

Algorithm Design & Flowchart Test Guide

The document outlines a test on algorithm design, pseudocode, and flowchart correction, consisting of 10 questions with a total of 50 marks. Each question requires identifying and correcting errors in pseudocode, as well as describing or redrawing flowchart symbols. The test is designed for a range of skill levels from beginner to advanced and has a time limit of 45 minutes.

Uploaded by

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

Algorithm & Flowchart Test

Topic: Algorithm Design, Pseudocode, and Flowchart Correction


Level: Beginner to Advanced
Total Marks: 50
Time Allowed: 45 minutes

Instructions:
- Read each question carefully.
- Correct the errors in pseudocode and explain the correction.
- Redraw or describe the correct flowchart symbols (Start/End, Process, Input/Output, Decision,
Flow line).

Q1. Sum of Two Numbers (5 marks)


OUTPUT "Enter first number"
INPUT num1
OUTPUT "Enter second number"
num2 ← INPUT
sum ← num1 + num3
OUTPUT "Sum is", sum

Q2. Even or Odd Number (4 marks)


START
OUTPUT "Enter a number"
INPUT number
IF number / 2 = 0 THEN
OUTPUT "Even number"
ELSE
OUTPUT "Odd number"
END
STOP

Q3. Largest of Three Numbers (5 marks)


START
INPUT a, b, c
IF a > b AND b > c THEN
OUTPUT "a is largest"
IF b > a AND b > c THEN
OUTPUT "b is largest"
ELSE
OUTPUT "c is largest"
END
STOP

Q4. Pass or Fail (3 marks)


BEGIN
INPUT marks
IF marks ≥ 50
PRINT "Pass"
ELSE
PRINT "Fail"
STOP

Q5. Celsius to Fahrenheit (3 marks)


OUTPUT "Enter Celsius"
INPUT C
F = (C × 9/5) + 32
PRINT "Temperature in Fahrenheit is F"
END

Q6. Factorial Program (5 marks)


INPUT num
fact ← 1
FOR i ← 1 TO num
fact = fact * i
i=i+1
NEXT i
OUTPUT fact

Q7. Average of Three Numbers (4 marks)


INPUT a, b, c
avg ← a + b + c / 3
OUTPUT "Average is", avg

Q8. Multiplication Table (4 marks)


INPUT n
FOR i ← 1 TO 10 DO
OUTPUT n * i = result
result ← n × i
END FOR

Q9. Grading System (4 marks)


INPUT marks
IF marks > 90 THEN
OUTPUT "A Grade"
ELSE IF marks > 80 THEN
OUTPUT "B Grade"
ELSE IF marks > 70 THEN
OUTPUT "C Grade"
ELSE
OUTPUT "Fail"
ENDIF
STOP

Q10. ATM Withdrawal (Advanced) (9 marks)


INPUT pin
IF pin = 1234 THEN
OUTPUT "Enter amount"
INPUT amount
IF amount < 50000 THEN
OUTPUT "Transaction Successful"
ELSE
OUTPUT "Limit Exceed"
ELSE
OUTPUT "Invalid pin"
STOP

Total Marks: 50

You might also like