CompTIA
FC0-U71 · Question #117
A developer creates the following code: If the light is red, then stop Else if the light is green, then go Which of the following programming concepts is the developer using?
The correct answer is D. Branching. The code uses branching, which allows the program to make decisions and follow different paths based on conditions (e.g., "if... else if...").
Software Development Concepts
Question
A developer creates the following code:
If the light is red, then stop Else if the light is green, then go Which of the following programming concepts is the developer using?
Options
- ACommenting
- BLooping
- CObject-oriented
- DBranching
How the community answered
(60 responses)- A8% (5)
- B2% (1)
- C3% (2)
- D87% (52)
Explanation
The code uses branching, which allows the program to make decisions and follow different paths based on conditions (e.g., "if... else if...").
Topics
#Branching#Conditional logic#Control flow#Programming concepts
Community Discussion
No community discussion yet for this question.