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
dsp73
2 years ago
5

Choose the output result of the below code.

Computers and Technology
1 answer:
SIZIF [17.4K]2 years ago
4 0

Answer:

B

Explanation:

When you initialize an instance of FunEvent(tags, year) and assign it to bc. The instance variables in this case are: self.tags = ["g", "ml"] and self.year = 2022. But then you alter tags, which will also change self.tags, since self.tags is a reference to the list you passed in as an argument. This is not the case when you do year=2023 because, first of all, integers are not mutable, and also because even if somehow integers were mutable, you're not changing the object in-place, you're simply changing the where the "variable" is pointing to. So for example if you did tags = ["g", "ml", "bc"] instead of tags.append("bc"), it would also not change the value of the instance variable "tags", because you wouldn't be changing the object in-place. So when you print(bc), the instance variables will be ["g", "ml", "bc"] and 2022. When you try to print an object, it call try to convert it into a string using the __str__  magic method. In this case it will return a string formatted as "Event(tags={self.tags}, year={self.year}) which will output "Event(tags=['g', 'ml', 'bc'], year=2022)" So the correct answer is B

You might be interested in
Moving Images are called________.
Troyanec [42]

Answer:

films

Explanation:

- Pictures, comic strips, and animations is wrong because they are static images.

- Films are known as "moving pictures" and therefore are moving images. That makes film your correct answer.

- Hope this helps! If you would like a further explanation please let me know.

6 0
4 years ago
Which of the following is NOT shown on a PERT chart? (Points : 2) Scheduled start date
Reptile [31]

Answer:

Estimated Duration

Explanation:

A PERT Chart is a tool in Project Management that gives a graphical portrayal of an undertaking's timetable. The Program Evaluation Review Technique abbreviated as PERT separates the individual assignments of a venture for investigation.  

The most widely recognized components utilized in a PERT chart are:  

  • Span time.  
  • Activity
  • Early finish time.  
  • Early Ending time
  • Late initiation time.  
  • Late completion time.  
  • Critical path
  • Slack.  

It does not include the Estimated span of time.

4 0
3 years ago
The default page orientation in a microsoft excel worksheet is landscape true false
kobusy [5.1K]
To answer your question it is false. This is because excels default orientation is portrait
6 0
3 years ago
Which of the following best define grit
andreyandreev [35.5K]

Definition of Grit. According to researchers at the University of Penn- sylvania, grit is defined as "perseverance and passion for long-term goals.” Grit involves working strenuously to- ward challenges, maintaining effort and interest over years despite failure, adversity, and plateaus in progress.

Hope This Helps!      Have A Nice Day!!

8 0
3 years ago
Think about a game you've played recently, a program you've interacted with, or an application you've recently used. Explain how
natima [27]
<h2>Answer:</h2>

If we pick Minecraf as a game, you could assume variables like:

<h3>sleeping = false</h3>

Logical or Boolean data type. Used when you need to store a true/false to easily make conditional statements.

<h3>health_point = 20</h3>

Numerical or Integer data type. Used when you need a number without decimal values.

<h3>speed = 3.8</h3>

Numerical or Float data type. Used when you need a number with decimal values.

<h3>name = "John"</h3>

String data type. Used when you need a sequence of characters.

5 0
3 years ago
Other questions:
  • The information that’s displayed in a datalist control is defined by _____.
    10·1 answer
  • Which factor helps drive globalization?
    9·1 answer
  • You would like to emphasize certain key terms on a slide with a bold format. Which slide element should you modify to provide th
    15·2 answers
  • Write an abstract data type for a queue in Java whose elements are generic elements of type T that have an associated integer pr
    15·2 answers
  • By
    7·1 answer
  • What is the missing line of code?
    7·1 answer
  • _____ (without parity) means spreading the data among multiple (at least two) drives. Group of answer choices Parity
    15·1 answer
  • Creative Commons material often costs money to use.<br><br> True<br> False
    9·2 answers
  • A team member who does not feel comfortable disagreeing with someones opinion in front of the team would most likely come from a
    9·1 answer
  • Ed wants to make sure that his system is designed in a manner that allows tracing actions to an individual. Which phase of acces
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!