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
In the table below identify the data type that would be most suitable for the second field
marishachu [46]

Answer:

C.

Explanation:

The second field is Age. Age is expressed as a number so will most likely be stored in a number data type.

6 0
3 years ago
How does the discussion of “Luddites,” “Marx,” and “John Maynard Keynes” in paragraph 21 contribute to the development of the id
gavmur [86]

Answer:

d

Explanation:

6 0
3 years ago
A(n) ______is like an intranet except it shares its resources with users from a distant location. Select your answer, then click
nasty-shy [4]

An <u>extranet</u> is like an intranet except that, it shares its resources with users from a distant location.

<h3>What is an intranet?</h3>

An intranet simply refers to an internal organizational network which is exclusively designed and developed to be used privately. Also, it is used for providing the employees of an organization with easy access to data and information.

In Computer networking, the end users of an extranet have the ability to access a company's entire intranet from a distant location.

Read more on intranet here: brainly.com/question/2580626

#SPJ1

8 0
2 years ago
Can someone help me so I don’t fail this class:(
charle [14.2K]

Answer:

Whatcha need help with?

Explanation:

4 0
3 years ago
In Microsoft word you can access the blank command from the mini toolbar
Softa [21]
Your answer would be:
<span>
In Microsoft Word you can access the </span><span>insert citation command from the mini toolbar.</span>
3 0
3 years ago
Other questions:
  • 1. Describe an application where a series circuit might work better than a parallel circuit
    11·2 answers
  • Can I change my brainly username?
    9·2 answers
  • Together, what do the divisions of the DHSMV do?
    12·1 answer
  • Kaitlin likes a particular design theme, but she is not sure about every single color for bullets, backgrounds, etc found in the
    5·2 answers
  • What is the maximum upload speed you can get on an isdl internet connection?
    9·1 answer
  • What does ctto mean?
    11·2 answers
  • After adjusting your seat, your _____ should be as close as possible to the backrest
    7·2 answers
  • Write a programme with C++ language wich print the biggest number in between three numbers , whith INT
    14·1 answer
  • Write assembly programs with the following I/O
    15·1 answer
  • Difference between centralized and decentralized processing in computer
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!