XK0-005 Domain 3: Scripting, Containers, and Automation

Which Python construct loops over list?

Multiple choice — select one answer

Answer choices

  1. a. kubectl apply -f file.yaml
  2. b. Feature branch workflow
  3. c. Roles
  4. d. for item in list:

Architectural breakdown & explanation

for loops iterate sequences in Python.

Correct answer(s): d. for item in list:

Exam domain: Domain 3: Scripting, Containers, and Automation (29% weight on the official guide).

Official documentation & study links

Practice this certification

This page is one question from the CompTIA Linux+ bank. Run a full timed practice exam with domain-weighted random questions in your browser.