Skip to content
CogniSkill

FREE PRACTICE TEST

Python for IT Automation — Course Assessment

9 questionsPassing score: 75%Related course: Python for IT Automation

Original course questions with explained answers. This assessment is for learning; it does not predict certification exam results.

Free sample questions with explanations

Try these sample questions without an account. Choose your answer, then open the explanation. Sign in below to take the full scored test and save your result.

1. Why use DictReader?

  1. It respects CSV parsing and headers
  2. It grants permissions
  3. It automatically validates every number
Show answer and explanation for question 1

Correct answer: A. It respects CSV parsing and headers

Parsing and validation are separate responsibilities.

2. What should an empty measurement become?

  1. A verified zero
  2. A validation error
  3. A successful normal device
Show answer and explanation for question 2

Correct answer: B. A validation error

Missing evidence is not a zero measurement.

3. What belongs in a repeatable automation design?

  1. Unbounded append
  2. No errors
  3. Explicit output and rerun behavior
Show answer and explanation for question 3

Correct answer: C. Explicit output and rerun behavior

Repeated runs must be predictable.

4. A-002 differs in owner and site, while A-004 and A-005 each occur in only one source. What is the result grain?

  1. Four finding rows concerning three asset identities.
  2. Four affected assets because there are four findings.
  3. Two findings because field changes should always be merged.
Show answer and explanation for question 4

Correct answer: A. Four finding rows concerning three asset identities.

There are two field rows for A-002 and one presence row for each of A-004 and A-005. Counts must name their grain. The summary separates field rows, mismatching shared assets and directional population differences.

5. The observed collector declares complete:false. Should the program report register-only assets?

  1. Yes, because a readable CSV is enough.
  2. No; reject the incomplete export before issuing absence findings.
  3. Yes, if the number of rows is non-zero.
Show answer and explanation for question 5

Correct answer: B. No; reject the incomplete export before issuing absence findings.

Missing records in a partial export cannot establish source absence. Even a complete declaration and matching count do not prove organization-wide authority; the collector scope still requires verification.

Sign in to take this free practice test and save your result.

Sign in