A student is learning Python using the interactive interpreter mode. The student issues these commands: Which type of Python structure is created?

IT Exam Items Repository › Category: DevNet › A student is learning Python using the interactive interpreter mode. The student issues these commands: Which type of Python structure is created?

A student is learning Python using the interactive interpreter mode. The student issues these commands:

Which type of Python structure is created?

  • a method
  • a class
  • a function
  • a module

Explanation: In Python, classes are a means of bundling data storage and functionality in a single structure. Each class declaration defines a new object type. A class is defined with the class Class_Name() command.

Related exam: DevNet Associate – Practice Final Exam Answers