CP 111 WEEK 12 LAB AND TUTORIAL WORK
PROGRAMS: First year 2021 and Carry Over
1. Discuss and write short note on Programming Errors
2. With at least three exampled briefly explain the following:
a. Syntax Errors
b. Semantic Errors
c. Logical Errors
3. Describe the following flowcharts
a. What is the type of flow of control represented by the flowchart below? (sequential,
selection, or iteration) Regarding your answer, what is the category that flow of control
you have selected? Why?
b. What is the type of flow of control represented by the flowchart below? (sequential,
selection, or iteration) Regarding your answer, what is the category that flow of control
you have selected? Why?
c. What is the type of flow of control represented by the flowchart below? (sequential,
selection, or iteration) Regarding your answer, what is the category that flow of control
you have selected? Why?
d. What is the type of flow of control represented by the flowchart below? (sequential,
selection, or iteration) Regarding your answer, what is the category that flow of control
you have selected? Why?
4. What is the output of the following charts
a. Let A = 10 and B = 5; what will be the output from the following flowchart? Show how
you have reached to your conclusion.
b. Let n = 5; what will be the output from the following flowchart? Show how you have
reached to your conclusion.
c. Let N = 10; what will be the output from the following flowchart? Show how you have
reached to your conclusion.
d. Let N = 6; what will be the output from the following flowchart? Show how you have
reached to your conclusion.
5. For each of the flowchart in question 3 and 4, write the resulting pseudocode.
Instruction:
1. Form a group of 5 or 6 students
2. Your work should be in handwritten. A copy will be submitted.
Deadline: Monday, March 1 2021