nerdexam
CompTIA

FC0-U71 · Question #41

Which of the following is used to create a repetitive process within code?

The correct answer is A. Loop. A loop is a programming construct that causes a block of code to execute repeatedly until a specified condition is met (or indefinitely). Common loop types include for, while, and do-while. A branch (if/else) controls which code path executes but does not repeat. A comment is non

Software Development Concepts

Question

Which of the following is used to create a repetitive process within code?

Options

  • ALoop
  • BBranch
  • CComment
  • DIntegrate

How the community answered

(61 responses)
  • A
    93% (57)
  • B
    2% (1)
  • C
    2% (1)
  • D
    3% (2)

Explanation

A loop is a programming construct that causes a block of code to execute repeatedly until a specified condition is met (or indefinitely). Common loop types include for, while, and do-while. A branch (if/else) controls which code path executes but does not repeat. A comment is non-executable documentation text. 'Integrate' is not a standard programming construct for repetition.

Topics

#Loops#Programming constructs#Control flow#Repetition

Community Discussion

No community discussion yet for this question.

Full FC0-U71 Practice