graph LR
accTitle: Pass-or-fail candidate A
accDescr: Scores at least 50 follow the Pass branch; lower scores follow the Fail branch.
A((Start)) --> B[/score/]
B --> C{"Is score >= 50?"}
C -- Yes --> D[/Pass/]
C -- No --> E[/Fail/]
D --> F((End))
E --> F
Pass or fail algorithm
Which of the following correctly represents an algorithm that outputs “Pass” if a student’s score—labeled score—is 50 or above, and “Fail” otherwise? (Note: More than one flowchart may be correct.)
Select the correct flowchart(s) from the options below:
- Flowchart in Figure 1 (a)
- Flowchart in Figure 1 (b)
- Flowchart in Figure 1 (c)
- Flowchart in Figure 1 (d)
- Flowchart in Figure 1 (e)
Figure 1 groups the five candidate flowcharts for comparison.
graph LR
accTitle: Pass-or-fail candidate B
accDescr: Scores greater than 50 follow the Pass branch; a score of exactly 50 follows the Fail branch.
A((Start)) --> B[/score/]
B --> C{"Is score > 50?"}
C -- Yes --> D[/Pass/]
C -- No --> E[/Fail/]
D --> F((End))
E --> F
graph LR
accTitle: Pass-or-fail candidate C
accDescr: Scores below 50 follow the Fail branch; scores of 50 or more follow the Pass branch.
A((Start)) --> B[/score/]
B --> C{"Is score < 50?"}
C -- Yes --> D[/Fail/]
C -- No --> E[/Pass/]
D --> F((End))
E --> F
graph LR
accTitle: Pass-or-fail candidate D
accDescr: Only a score equal to 50 follows the Pass branch; every other score follows the Fail branch.
A((Start)) --> B[/score/]
B --> C{"Is score = 50?"}
C -- Yes --> D[/Pass/]
C -- No --> E[/Fail/]
D --> F((End))
E --> F
graph LR
accTitle: Pass-or-fail candidate E
accDescr: Scores at least 50 follow the Fail branch, while lower scores follow the Pass branch.
A((Start)) --> B[/score/]
B --> C{"Is score >= 50?"}
C -- No --> D[/Pass/]
C -- Yes --> E[/Fail/]
D --> F((End))
E --> F