0% found this document useful (0 votes)
69 views3 pages

Flowchart Quiz

The algorithm starts a quiz program that asks 5 multiple choice questions about Lyceum of the Philippines University, reads the user's answer for each question, and prints "correct" or "wrong" depending on if the answer matches the solution. It uses if/else statements to check the answers and directs the flow from one question to the next in the quiz.

Uploaded by

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

Flowchart Quiz

The algorithm starts a quiz program that asks 5 multiple choice questions about Lyceum of the Philippines University, reads the user's answer for each question, and prints "correct" or "wrong" depending on if the answer matches the solution. It uses if/else statements to check the answers and directs the flow from one question to the next in the quiz.

Uploaded by

Emmanuel Diana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 3

String

String
Start A ans2; B ans3;

String ans;
Read ans2; Read ans3;

Read ans;
2. When was Lyceum 3. Who is the current
of the Philippines President of Lyceum
University founded? of the Philippines
A. January 18, 1998 University Laguna?
Who is the founder B. January 18, 2000 A. Peter P. Laurel
of Lyceum of the B. Josefina P. Laurel
Philippines
University? false
A. José Paciano If If (ans=="A"
Laurel García (ans2==“B" false || ans=="a")
Print
Print “wrong”
B. Jose Rizal || “wrong”
ans2==“b")
true
true
If (ans=="A" false Print
C
Print Print “correct”
|| ans=="a")
“wrong” “correct” B

true
Print
“correct” A
String String
C ans4;
D ans5;

Read ans4; Read ans5;

5. What is the former


4. What is the name of Lyceum of
meaning of G in the the Philippines
Core Values of LPUL? University?
A. Glory A. Lyceum Institute
B. God Centeredness of Technology
B. B. Liceo De La
Universidad De
Filipinas

If (ans==“B" false Print


|| ans==“b") “wrong”
If (ans==“A" false Print
|| ans==“a") “wrong”
true
true
Print
“correct” D
Print
“correct”
End
Algorithm
1.Start the program. 15.0Add a condition If (ans==“A" || ans==“a")
2.Input the chosen answer. 15.1 If the inputted value is true print Correct.
3.Read the chosen answer A/B. 15.2 If the inputted value is false print Wrong.
4. Print Question number 1. with choices A. and B. 16. Proceed to no.4 which is C.
5.0Add a condition If (ans==“A" || ans==“a") 17.Input the chosen answer.
5.1 If the inputted value is true print Correct. 18.Read the chosen answer A/B.
5.2 If the inputted value is false print Wrong. 19. Print Question number 4. with choices A. and B.
6. Proceed to no. 2 which is A. 20.0 Add a condition If (ans==“A" || ans==“a")
7.Input the chosen answer. 20.1 If the inputted value is true print Correct.
8.Read the chosen answer A/B. 20.2 If the inputted value is false print Wrong.
9. Print Question number 2. with choices A. and B. 21. Proceed to no.5 which is D.
10.0 Add a condition If (ans==“A" || ans==“a") 22.Input the chosen answer.
10.1 If the inputted value is true print Correct. 23.Read the chosen answer A/B.
10.2 If the inputted value is false print Wrong. 24. Print Question number 5. with choices A. and B.
11. Proceed to no.3 which is B. 25.0 Add a condition If (ans==“A" || ans==“a")
12.Input the chosen answer. 26.1 If the inputted value is true print Correct.
13.Read the chosen answer A/B. 27.2 If the inputted value is false print Wrong.
14. Print Question number 3. with choices A. and B. 28. End the program.

You might also like