EDPT - Electronic Data Processing Flowchart Interpretation Questions and Answers — Questions and Answers
Question 1: A process is defined by the following flowchart logic: 1) Start. 2) Set variable X = 5. 3) Set variable Y = 10. 4) Is X greater than Y? 5) If YES, add 5 to X. 6) If NO, add 3 to Y. 7) Is Y equal to 16? 8) If YES, end the process. 9) If NO, loop back to step 4. What are the final values of X and Y when the process ends?
- X = 5, Y = 13
- X = 10, Y = 16
- X = 5, Y = 16 (Correct answer)
- X = 10, Y = 13
Correct answer: X = 5, Y = 16
Let's trace the execution: - Initial: X=5, Y=10. - Loop 1: Is X>Y (5>10)? No. Add 3 to Y. Y is now 13. Is Y=16? No. Loop again. - Loop 2: Is X>Y (5>13)? No. Add 3 to Y. Y is now 16. Is Y=16? Yes. End. The final values are X=5 and Y=16.
Question 2: In a standard data processing flowchart, which shape is used to represent an input or output operation, such as 'Get User Record' or 'Print Report'?
- Oval
- Rectangle
- Diamond
- Parallelogram (Correct answer)
Correct answer: Parallelogram
A parallelogram is the standard symbol used in flowcharts to denote an input/output (I/O) operation. Ovals are for start/end, rectangles for processes, and diamonds for decisions.
Question 3: Consider a flowchart that evaluates an employee's bonus. The process is as follows: A decision diamond checks if 'Years of Service' is greater than 5. If true, the flow proceeds to a second diamond that checks if 'Performance Rating' is 'Excellent'. If both conditions are true, a 10% bonus is assigned. If service years are > 5 but the rating is not 'Excellent', a 5% bonus is assigned. If service years are 5 or less, a 3% bonus is assigned regardless of performance. An employee with 6 years of service and a 'Good' performance rating is evaluated. What bonus do they receive?
- 10%
- 5% (Correct answer)
- 3%
- 0%
Correct answer: 5%
The employee has 6 years of service, which is greater than 5, so the flow follows the 'true' path from the first decision. The next decision checks if the performance rating is 'Excellent'. Since the rating is 'Good', the flow follows the 'false' path, which results in a 5% bonus.
Question 4: A flowchart contains a loop controlled by a decision diamond with the condition 'Is Counter < 5?'. The process inside the loop increments the 'Counter' variable by 1 during each pass. If 'Counter' is initialized to 0 before the loop begins, how many times will the process inside the loop be executed?
- 4
- 6
- 5 (Correct answer)
- 0
Correct answer: 5
The loop will execute for Counter values of 0, 1, 2, 3, and 4. When the counter is incremented to 5, the condition '5 < 5' becomes false, and the loop terminates. Therefore, the process inside the loop runs a total of 5 times.
Question 5: A flowchart is designed to sort numbers. It takes an input number 'N' and follows this logic: If N is even, it is sent to 'Process A'. If N is odd, it is sent to 'Process B'. If the number is greater than 100 (regardless of whether it's even or odd), it is also logged by 'System C'. Which of the following inputs would be handled by both 'Process A' and 'System C'?
- 99
- 101
- 50
- 150 (Correct answer)
Correct answer: 150
The number must satisfy two conditions: it must be even to go to 'Process A', and it must be greater than 100 to be logged by 'System C'. Of the choices, only 150 is both an even number and greater than 100.
Question 6: What is the primary function of the process depicted in the following flowchart description? 1) Start. 2) Set variable 'Sum' = 0. 3) Set variable 'Count' = 1. 4) Add 'Count' to 'Sum'. 5) Add 1 to 'Count'. 6) Is 'Count' <= 10? 7) If YES, loop back to step 4. 8) If NO, Output 'Sum'. 9) End.
- To calculate the factorial of 10
- To find the sum of the first 10 positive integers (Correct answer)
- To check if the number 10 is prime
- To output the number 10
Correct answer: To find the sum of the first 10 positive integers
The flowchart initializes a 'Sum' and then repeatedly adds the value of a 'Count' variable (which goes from 1 to 10) to it. This process is the standard algorithm for calculating the sum of the integers from 1 to 10.
A process is defined by the following flowchart logic: 1) Start. 2) Set variable X = 5. 3) Set variable Y = 10. 4) Is X greater than Y? 5) If YES, add 5 to X. 6) If NO, add 3 to Y. 7) Is Y equal to 16? 8) If YES, end the process. 9) If NO, loop back to step 4.
What are the final values of X and Y when the process ends?