Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 All instances of a class share the same values of the data attributes in the class. True False 5 points QUESTION 2 What

QUESTION 1
All instances of a class share the same values of the data attributes in the class.
True
False
5 points
QUESTION 2
What is the special name given to the method that returns a string containing an object's state?
__state__
__obj__
__str__
__init__
10 points
QUESTION 3
Object-oriented programming allows us to hide the object's data attributes from code that is outside the object.
True
False
5 points
QUESTION 4
Which of the following will create an object, worker_joey, of the Worker class?
def__init__(worker_joey):
worker_joey = Worker()
worker_joey.Worker
class worker_joey:
10 points
QUESTION 5
A class can be thought of as a blueprint that can be used to create an object.
True
False
5 points
QUESTION 6
In ________ programming, the programming is centered on objects that are created from abstract data types that encapsulate data and functions together.
Object oriented
10 points
QUESTION 7
Which method is automatically executed when an instance of a class is created in memory?
__state__
__obj__
__str__
__init__
10 points
QUESTION 8
Which is the first line needed when creating a class named Worker?
def__init__(self):
class Worker:
import random
def worker_pay(self):
10 points
QUESTION 9
The procedures that an object performs are called
methods
instances
actions
modules
10 points
QUESTION 10
Which section in the UML holds the list of the class's methods?
fourth section
third section
second section
first section
10 points
QUESTION 11
What does the acronym UML stand for?
Unified Model Language
Union of Modeling Languages
Unified Modeling Language
United Modeling Language
10 points
QUESTION 12
The self parameter is required in every method of a class.
True
False

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions