1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lana71 [14]
3 years ago
8

Describe the scope of the variables in this code.

Computers and Technology
2 answers:
Solnce55 [7]3 years ago
7 0

Answer:

The scope of petName is local to the class pet.

The scope of color is accessible by all parts of the program.

Explanation:

The variable petName is local to the class, because the variable was created in a function whose name begins with two underscores.

The variable color, while created in the petCarrier class, is accessible to the entire function. It was not created in a function whose name begins with an underscore.

Correct answer edge 2020

tensa zangetsu [6.8K]3 years ago
6 0

Answer:

Scope of petName is only limited to class pet (pet class) and scope of color is accessible to the entire program.

Explanation:

petName is restricted by the contructor with an underscore: def __init__(self,strSpecies,strName):, meaning it cannot be manipulated outside that class and color does not have that.

You might be interested in
Which network type uses a coaxial cable to receive its signal?.
Tresset [83]
If you’re asking what I think your saying I know comcast does
6 0
2 years ago
Becca is working on a program that will store data. The program will need quick access to data and data persistence is not impor
tester [92]

Answer:

A developer wants to take existing code written by another person and add some features specific to their needs.

Explanation:

pls Mark as Brain list

3 0
3 years ago
If you were to create a new app for a smartphone or tablet that does not already exist, what would you create?
omeli [17]
A app that fry’s your Phone or Tablet.
4 0
3 years ago
What is the purpose of a cover letter? Accompany a résumé to describe who you are and what you can do for the company Describe y
Vaselesa [24]

The answer is "Accompany a résumé to describe who you are and what you can do for the company". A cover letter should help sell you to the company, its information should tell them additional relivent information about you that may not be included on your resume.

8 0
3 years ago
Typing into a text _____
anyanavicka [17]

Answer:  Box?

Explanation:

3 0
3 years ago
Other questions:
  • DOES ANYONE KNOW HOW TO CHAGE THE IP ON A COMPUTER?
    8·1 answer
  • What does the Auto Fill tool do?
    15·2 answers
  • What special precautions should you take when detailing a steel-framed building to avoid excessive conduction of heat through th
    9·1 answer
  • What are the benefits of maintaining you vehicle?
    11·1 answer
  • python Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". Any value that is the same as the immediately preceding value i
    7·1 answer
  • Which best describes the benefits of renting a home
    12·2 answers
  • In the forward chaining technique, used by the inference engine component of an expert system, the _____ condition is evaluated
    5·1 answer
  • Write an expression that will print "in high school" if the value of user_grade is between 9 and 12 (inclusive).
    7·1 answer
  • Ishmael would like to capture a selected potion of his screen and then capture action he performs on that selected portion. What
    5·1 answer
  • Consider the key success factors of B2C. Is it only IT? What is most important?​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!