Computers

5th -

12thgrade

Image

Python OOP Terminology

210
plays

11 questions

Show Answers
See Preview
  • 1. Multiple Choice
    1 minute
    1 pt

    What is a class (in python)?

    A user-defined prototype for an object that defines a set of attributes that characterize any object of this. The attributes are data members and methods, accessed via dot notation.

    A special kind of function that is defined in a class definition.

    The assignment of more than one behavior to a particular function. The operation performed varies by the types of objects or arguments involved.

    the system of ordering a society in which people are divided into sets based on perceived social or economic status.

  • 2. Multiple Choice
    30 seconds
    1 pt

    What is a class variable (in python)?

    A user-defined prototype for an object that defines a set of attributes that characterize any object of the class. The attributes are data members (class variables and instance variables) and methods, accessed via dot notation.

    A variable that is shared by all instances of a class. Class variables are defined within a class but outside any of the class's methods. Class variables are not used as frequently as instance variables are.

    A student

    A part of a class that exists like a desk or a smartboard

  • 3. Multiple Choice
    30 seconds
    1 pt

    What is a data member (in python)?

    A class variable or instance variable that holds data associated with a class and its objects.

    a person who is part of the club DATA

    A variable that is defined inside a method and belongs only to the current instance of a class.

    An individual object of a certain class. An object obj that belongs to a class Circle, for example, is an instance of the class Circle.

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?