A program will request user input and perform an operation several times if the input is correct. Which of the following techniques BEST describes the fact that the operation is only performed if the input is correct?
B. Branching
Branching refers to decision-making in programming, where the flow of execution depends on conditions being met. If the user input is correct, the program executes the operation; otherwise, it may take a different path (e.g., ask for input again or exit).
Looping (A) would describe repeating an operation multiple times, but it does not inherently ensure that the operation only runs when the input is correct. Instead, branching ensures that conditions are checked before execution.
"BEST describes the fact that the operation is only performed IF the input is correct"
The wording of this question indicates a conditional, such that a series of instructions will be executed once the condition is met. Jumping from one part of the code to another is branching
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.FC0-U61 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
lexxone
2 months ago[Removed]
7 months, 3 weeks ago