nerdexam
CompTIA

XK0-006 · Question #113

Which of the following allows modules to be used in Python scripts?

The correct answer is B. import. This statement makes functions, classes, and variables from a module available for use within a Python script, enabling modular and reusable code.

Automation and Scripting

Question

Which of the following allows modules to be used in Python scripts?

Options

  • Ainit
  • Bimport
  • Cname
  • Ddet

How the community answered

(35 responses)
  • A
    6% (2)
  • B
    89% (31)
  • C
    3% (1)
  • D
    3% (1)

Explanation

This statement makes functions, classes, and variables from a module available for use within a Python script, enabling modular and reusable code.

Topics

#Python#import statement#modules#scripting

Community Discussion

No community discussion yet for this question.

Full XK0-006 Practice