Which line of code will create an instance of the pet class?

class pet:
def __init__(self,strSpecies,strName):
self.species = strSpecies
self.petName = strName

myPetA = pet('dog', 'Spot'), myPetA = pet(self, 'dog', 'Spot'), myPetA = new pet('dog', 'Spot'), myPetA .pet() = 'dog', 'Spot'

Answers

Answer 1

Answer:

myPetA = pet(self, 'dog', 'Spot')

Explanation:

I mite be wrong

Answer 2

The line of code that will create an instance of the pet class is myPetA = pet (self, 'dog', 'Spot'). Option B is correct.

What is code?

Computer code, or a set of instructions or a system of rules defined in a specific programming language, is a term used in computer programming (i.e., the source code). It is also the name given to the source code after a compiler has prepared it for computer execution.

Code, often known as source code, refers to text that a computer programmer has created in a programming language. Programming languages like C, C#, C++, Java, Perl, and PHP are examples.

Another less formal term for text produced in markup or style languages, such as HTML and CSS, is code (Cascading Style Sheets)

Therefore Option B is correct.

Learn more about code:

https://brainly.com/question/17204194

#SPJ2


Related Questions

Ellie is conducting formal research for a new design project and wants to find demographic information. What source is considered most credible to use for her research?

Wikipedia articles

competitor websites

government data

magazine opinion pieces

Answers

may be wikipedia i’m sorry if it’s wrong ☹️

Answer:

Its governmental data

Explanation:

Heres a survey
What's your fav food
What do you do for a living
What do you do for fun
Are you a boy or girl
What's your fav color
And last what kind of pet do you have if you dont have a pet then whats ypu fav game to play

Answers

food.

I'm a child of God snatching lost souls out of Hell

bake

I go to church

some is to much information to give thx and have a blessed day

Answer:

My favourite food is pizza.

I have food, I drink water and stay neat to live.

I play indoor games, read books and plays social media for fun.

I am a girl.

My favourite colour is black and white.

I have a dog name Freddie and a cat called Jacky. My favourite game is football and badminton

ASKING AGAIN CAUSE I GOT A WEIRD LINK

HTML5 allows web pages authors to place a/an _________ element around a block-level element that contains child elements
a. nav
b. div
c. h1
d. a

Answers

Answer:

A. Nav

Explanation:

....,..........

What are some other sites similar to brainly? By similar I mean being able to ask a question and answer them based on categories.

Answers

Answer:

jiskha.com

Explanation:

Answer:

Quora and Yahoo answers are alright

Choose the tag required for each stated goal.

To style text as larger than adjacent text:








To style text as bold:








To style text as italicized:








To style text as small:

Answers

capslockbolditalicscapslock

Write a program that will have Tracy draw a stretched out slinky. The slinky should have: Five rings Each circle should have a radius of 35 Tracy should move forward 40 pixels after every circle

Answers

Solution :

The Tracy commands :

main.py

   circle(35)

   forward(40)

   circle(35)

   forward(40)

   circle(35)

   forward(40)

   circle(35)

   forward(40)

   circle(35)

   forward(40)

Which of the following refers to the informal rules for how to behave online?​

Answers

Answer:

Question: Where is the following?

Uhhhhhhhhhh picture??

How does a filmmaker decide which events to include in a documentary?

Answers

Answer:

A documentary is a film based on facts in which the maker tries to portray an aspect of reality, such as politics, science, society or history, nature or the personal perception of the documentary maker.

Documentaries are informative in nature. Sometimes documentaries attempt to provide an objective picture of a subject. There is a lot of debate about what is objective, because the documentary maker chooses his images from reality, which is in itself a subjective act. In a creative author's documentary, the emphasis is on the subjective vision of the filmmaker.

Therefore, the documentary maker will select the events to include in the documentary according to the approach he or she wants to give to it, be it objective or subjective.

2. Which of the following is not one of the guidelines for using instant messaging?A.You can use in place of all face-to-face communication.
B.Keep messages short.
C.Never text or send an instant message when you are angry.
D.Use it for casual conversations.​

Answers

Answer:

A. You can use in place of all face-to-face communication.

Explanation:

Hope this helps

You are a part-time manager for The Mobile Vegan, a food truck catering to vegan diners in Portland, Oregon. Jessica Rosen, the owner of the business, wants to expand by adding other food trucks in Portland and the surrounding area. Whether she purchases new trucks or takes over an existing food truck business with an established clientele, she needs a loan to cover the cost of the trucks. She has asked for your help updating the workbook she created to analyze the loan information and forecast sales. Switch to the Loan Scenarios worksheet, and then calculate the monthly payment for the Add 1 Truck scenario as follows:
a. In cell D11, enter a formula using the PMT function to calculate the monthly payment for a loan.
b. Use the inputs listed under the Add 1 Truck loan scenario in cells D5, D7, and D9. (Hint: The result will be displayed as a negative number to reflect the negative cash flow of a loan payment.)

Answers

Answer:

i acc dont know

Explanation:

srry

A system that connects computers throughout the world is a

Answers

Answer:

Wide Area Network (WAN)

Explanation:

the Internet is the most basic example of a WAN, connecting all computers together around the world. Because of a WAN's vast reach, it is typically owned and maintained by multiple administrators or the public.

What is an example of a composite key in a database table?

InvoiceID
CustomerID
ProductID
OrderID + ProductID

Answers

Answer:

b

Explanation:

OrderID + ProductID is an example of a composite key in a database table. The correct option is 4.

What is composite key?

A composite key is a key in a database table that consists of two or more columns that uniquely identify each row.

In a database table, a composite key is the combination of OrderID and ProductID in a table that tracks sales transactions.

Because a single order can contain multiple products and multiple orders can contain the same product, neither column can uniquely identify a row by itself.

However, by combining the two columns, each row can be uniquely identified, ensuring that the data is accurate and complete.

Similarly, a combination of CustomerID and ProductID might be used in a sales system to track the products purchased by each customer.

Thus, the correct option is 4.

For more details regarding composite key, visit:

https://brainly.com/question/10167757

#SPJ3

help Which of the following triangles can be proven similar through AA?
Question 1 options:

A)

image

B)

image

Answers

A as in Ate my food ya know

The technical information section of Carmine's GDD is fairly brief because his team has included a separate document that explains all the technical information in far greater detail. What is this separate document referred to as?

tech addendum
technical debriefing
amendment to the technical
technical bible​

Answers

Answer: tech addendum

Explanation:

The separate document that explains all the technical information in far greater detail is referred to as the technical addendum.

An addendum simply refers to an attachment that modifies the conditions of a contract or gives more information about the contract.

In this scenario, since the technical information section of Carmine's GDD is fairly brief, the tech addendum will explain all the technical information in far greater detail.

what is the main reason for adding somebody into the BCC list for an email?​

Answers

Answer:

protecting email address privacy

Explanation:

for securing and privacy reasons and it is for the best

For enterprise servers, or servers accessed around the clock, SATA disks are preferred over SAS disks. True or False

Answers

False, sas is hold more then sata disks do

The given statement is false that, SAS disks are preferable over SATA disks for business systems or servers accessed continuously.

What is the SATA disks?

The majority of desktop and laptop hard drives use the SATA (or Serial Advanced Technology Attachment) interface, which was first introduced in 2003. Despite being rotary hard drives with spinning platters and a moving needle that writes data to successive sectors on each platter, they are known as SATA hard drives.

Serial ATA (Serial Advanced Technology Attachment, or SATA) is a command and transport protocol that outlines how data is transferred between a computer's motherboard and these types of mass storage devices (SSDs).

Therefore, it is false.

Learn more about the SAS disks, refer to:

https://brainly.com/question/28310028

#SPJ2

please help thank u!!!!!

Answers

Answer:

i believe you can change slides with the arrow keys not entirely sure though

Explanation:

Answer:

using the arrows

pressing space

and clicking the mouse

Explanation:

Write the purpose of using computer network

Answers

Answer:

sharing resources and data between computer systems. Those shared resources would include that of data storage, printers and other devices.

Explanation:

Answer:

Explanation:Computer networks help you to connect with multiple computers together to send and receive information. Switches work as a controller which connects computers, printers, and other hardware devices. Routers help you to connect with multiple networks. It enables you to share a single internet connection and saves money.

What does input allow a computer to do

Answers

In computer science, the general meaning of input is to provide or give something to the computer, in other words, when a computer or device is receiving a command or signal from outer sources, the event is referred to as input to the device.

You have a small network at home that is connected to the internet. On your home network, you have a server with the IP address of 192.168.55.199/16. You have a single public address that is shared by all hosts on your private network. You want to configure the server as a web server and allow internet hosts to contact the server to browse a personal website. What should you use to allow access

Answers

Static NAT is the answer,. :) great question BTW!

What is the "thinking work" of the computer? How does it help the computer?

Answers

Answer:

El pensamiento computacional es una forma de pensar que utiliza habilidades propias de las ciencias de la computación, como la descomposición y resolución de problemas, lógica, el reconocimiento de patrones y la abstracción

Explanation:

Un computador sirve para guardar los teléfonos de tus amigos, las tareas del colegio, los trabajos de tu papá y mamá y hasta las cartas que le envías a tu novia.

Ivan has five workbooks open. he has arranged these files in a specific grouping so he can view them at the same time. In order to save these files i this specific order, ivan must create a----​

Answers

i think the answer is
folder.

nadine is the systems administrator for a network with a single subnet. The subnet uses 192.168.1.0 with a mask of 255.255.255.0. The network has 10 servers running Windows Server. Srv1 currently provides both DHCP and DNS services. Nadine wants to increase the fault tolerance for her DHCP servers. She installs a new server, Srv11, and configures it for DHCP. She configures a scope on Srv11 to match the scope on Srv1 and then excludes half of the addresses in the scope on Srv1 and the other half of the addresses on the Srv11. Nadine decides to test her solution and shuts down Srv1. As a test, she forces a workstation to release its IP address and request a new one. She finds that the workstation has the IP address 169.254.0.15 with a mask of 255.255.0.0. What should Nadine do to fix the problem?

Answers

Answer:

Authorize Srv11

Explanation:

In order to fix this problem, Nadine should Authorize Srv11. The problem is most likely being caused due to failure of authorization of the server. This would prevent this server from being on the same scope as Srv1 and therefore, it is why the IPaddress being given is different. DHCP is an automatic protocol and would not be able to provide an IP address in the same scope if the server is not Authorized to do so.

C++

Assume the existence of a Window class with integer data members width and height. Overload the << operator for the Window class-- i.e., write a nonmember ostream-returning function that accepts a reference to an ostream object and a constant reference to a Window object and sends the following to the ostream: 'a (width x height) window' (without the quotes and with width and height replaced by the actual width and height of the window. Thus for example, if the window had width=80 and height=20, << would send 'a (80 x 20) window' to the ostream object.) Don't forget to have the function return the proper value as well. Assume the operator has been declared a friend in the Window class.

Answers

Answer:

Following are the code to the given question:

#include <iostream>//header file

using namespace std;

class Window //defining a class Window

{

private:

int width, height;//defining integer variable

public:

friend ostream& operator << (ostream& stm, Window& width)//defining a friend function that takes two parameters

{

return stm<<"a ("<<width.width<<" x "<<width.height<<") window"; //use return keyword that return its values

}  

Window(int width, int height): width(width), height(height)//defining parameterized constructor that inherit width and height in its parameters  

{}

};

int main() //Main method

{

Window w(80,90);//calling class constructor

cout<<w;//print object value

return 0;

}

Output:

a (80 x 90) window

Explanation:

In the above code, a class "Window" is defined that uses a friend function "ostream& operator" is declared that uses the "ostrea&" as a data type to hold two-variable "stm and w" in its parameter, and declared the parameterized constructor to hold value by inheriting width and height in its parameters.

Inside the main method, a class object is created that calls the constructor and uses the print method to print object value.

100POINTS!!!!


Which tool would you use to organize the list from fewest calories to most calories?

Which tool would you use to organize the list from most protein to least protein?

Which tool would you use to show only fruits with 4 or more grams of dietary fiber?

Which tool would you use to navigate to C5, the cell containing the grams of sugar for an orange?

Answers

Answer:

Explanation:

Which tool would you use to organize the list from fewest calories to most calories?

✔ sort by calories from smallest to largest

Which tool would you use to organize the list from most protein to least protein?

✔ sort by protein from largest to smallest

Which tool would you use to show only fruits with 4 or more grams of dietary fiber?

✔ filter

Which tool would you use to navigate to C5, the cell containing the grams of sugar for an orange?

✔ Go To

The answer is in the picture

Explain what Fahd did wrong in the scenario below. Fahd is running ten programs at once on his laptop when it suddenly freezes up. To fix this problem, Fahd buys a new battery for his laptop.

Answers

Answer:

Well first off. if the laptop froze that doesn't mean the battery is dead to the point where a simple rest of the laptop wouldn't work out.

Hawaii and japan are examples of islands made by? You have to write it.

Answers

Answer:

Volcanic activity

What is the difference between PowerPoint and Outlook?

PowerPoint is a presentation program; Outlook is a personal information management application.
Outlook is a presentation program; PowerPoint is a personal information management application.
PowerPoint is a program that lets you create, edit, format, and print written documents; Outlook is a computer application that uses a grid system to organize and manipulate data.
Outlook is a program that lets you create, edit, format, and print written documents; PowerPoint is a computer application that uses a grid system to organize and manipulate data.

Answers

Answer:

PowerPoint is a presentation program; Outlook is a personal information management application.

Explanation:

Powerpoint is the program used in presentations where slides designed and then shown to the audience.

Outlook is used to display various types of personal information like calendar appointments and emails.

HURRY GUYS I GOT 3 QUESTIONS LEFT
IM TIMED!!!!!

Which element should be used only when the content simply references the element
a. nav
b. figure
c. hgroup
d. article

Answers

the answer is b i believe

The element that should be used only when the content simply references the element is figure. The correct option is B.

What is element of referencing?

The four components of the author, date, source, and title are all included in reference list entries.

There are four referencing conventions that are frequently used. They go by the names of the Modern Languages Association (MLA), American Psychological Association (APA), Harvard, and Modern Humanities Research Association (MHRA) systems.

In computer programming, a reference is a value that allows a program to access a particular piece of data indirectly, such as the value of a variable or a record, in the computer's memory or in another storage location.

As a result, accessing the data is referred to as dereferencing the reference, and the data is referred to as the reference's referent.

Thus, the correct option is B.

For more details regarding elements of referencing, visit:

https://brainly.com/question/28270502

#SPJ2

In order to multitask, a computer must have two or more processors. True or False

Answers

Answer:

False

Explanation:

:) brainliest pls

Answer:

True

Explanation:

Other Questions
Which is a property of a covalent compound?A.being shaped easilyB.good electrical conductivityC.low melting point Complete the chart which of these clues help you understand what the object means evaluate: (_1_i)^(5/3) Which lists the springs in order of increasing spring constant?W, Y, X, ZOW, Y, Z, XO Z, X, Y, WOX,Z,Y, W Imagine that you are filling treat bags with jellybeans. You have 3 3/8 cups of jellybeans, and each treat bag will contain 1/4 cup of jellybeans. How many treat bags can you fill before you ru out of jellybeans? Show your work (please). Help PLZ will get points + brainliest What does the author of "Sick of Lying" believe? A.Lying causes health problems over time.B.Stress needs to be studied more by researchers.C.Stress can help minor illnesses like headaches.D.Lying feels wrong but is generally harmless. .claim is something that is believed but is still uncertain.O A. minuteO B. succinctO c. theoreticalD. vacuousits c . theoretical Which sentence does not have parallel structure? What is this (College Math) Definition: The energy transferred by a force to a moving object. find the value of x and y 2.A garden is 20 feet long by 10 feet wide. The length and the width of the garden willeach be increased by the same number of feet. This expression represents theperimeter of the larger garden. please first answer gets brainly thing Bhavik bought 3 liters of milk and 5 loaves of bread for a total of $11. A month later, he bought 4 liters of milk and 4 loaves of bread at the same prices, for a total of $10How much does a liter of milk cost, and how much does a loaf of bread cost? PLEASE HELP ASAP!![tex]\frac{3}{4}[/tex] t = -9 what does t equal? Ashley deposited $4,000 into a savings account that earns 4% simple interest. How much interest did she earn after three years? HEllllpp! Will give brainlyiest!!Use the diagram below for this question. The angle bisectors of triangle ABC meet at G.If m ABC = (4x + 12) degrees and m GBA = (3x 4) degrees , find m GBC.26 degrees44 degrees52 degrees36 degrees Find the product.Y^4 x Y^3 You use a Windows system that is a member of a domain. The computer is used by several different users belonging to different groups. You have a custom application on the computer, and you want to configure the firewall as follows: Allow a specific port used by the application. Open the port only for members of the Sales group. Using Windows Firewall with Advanced Security, what should you do to configure the firewall with the least effort possible Hurry