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
blsea [12.9K]
2 years ago
13

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

Computers and Technology
2 answers:
Sunny_sXe [5.5K]2 years ago
8 0

Answer:

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

Explanation:

I mite be wrong

saul85 [17]2 years ago
8 0

Answer:

myPetA=pet('dog','Spot') or C

Explanation:

credit to who deserves it, the guy in the other answers comment section confimed my thought

You might be interested in
Which statement is true about parity in RAM?
mihalych1998 [28]

Answer:

There needs to be an odd number of 1 bits

Explanation:

In memory, parity checking method is used to test the memory. There are two parity conditions. Either the parity is even or the parity is odd.

Odd parity means, number of 1's in eight bits of data. If the number 1's are odd  it means parity is odd. In case of the memory testing result the parity should be odd.

So, In case of Parity of RAM, the parity should be odd, if the data is stored in the RAM.

8 0
2 years ago
Write: In a five-paragraph essay that is two to three pages in length, address the
brilliants [131]

Why are you asking other people to answer a question about something that's affected <u>you?</u>

4 0
3 years ago
Which tool is used to test electrical current within a source of power, like a power supply?
yawa3891 [41]

Answer:

Multimeter

Explanation:

A multimeter or multitester or VOM (volt-ohm-milliammeter), is a tool to measure electricity and this tool has some function to measure voltage, current, and resistance. We could find analog and digital multimeters, and we can find expensive certificates and professionals multimeters ($5,000) or cheap ($10).

5 0
3 years ago
Implementations <br> in c++ programming when finding lcm and gcd in c++​
vazorg [7]

Answer:

#include<iostream>

using namespace std;

int lcm(int m, int n) {

  int a;

  a = (m > n) ? m: n;

  while (true) {

     if (a % m == 0 && a % n == 0)

        return a;

        ++a;

  }

}

int gcd(int m, int n) {

  int r = 0, a, b;

  a = (m > n) ? m : n;

  b = (m < n) ? m : n;

  r = b;

  while (a % b != 0) {

     r = a % b;

     a = b;

     b = r;

  }

  return r;

}

int main(int argc, char **argv) {

  cout << "Enter the two numbers: ";

  int m, n;

  cin >> m >> n;

  cout << "The LCM of two numbers is: " << lcm(m, n) << endl;

  cout << "The GCD of two numbers is: " << gcd(m, n) << endl;  

  return 0;

}

Explanation:

7 0
2 years ago
How does coding work on computers?
sleet_krkn [62]
Coding works through programming/programs. Programs have different coding languages, and text files. The code within the file is known as the "source CODE" this code is used in different ways, causing for the possibility of separate binary files that computers can directly run. Hope I helped.

5 0
3 years ago
Other questions:
  • Application partitioning gives developers the opportunity to write application code that can later be placed on either a client
    7·1 answer
  • In 125 words describe the steps to active listening.
    6·1 answer
  • A person who wants to buy a compact disc (cd) has just enough money to buy one, and chooses cd a instead of cd
    10·2 answers
  • Free 100 point to first to answer
    5·2 answers
  • Your help will help me understand my answers by comparing to yours. Your kind contribution is very much appreciated.
    6·1 answer
  • A lack of financial literacy can cause you to lose your
    10·1 answer
  • 3.3 Code Practice: Question 1
    15·1 answer
  • An online bank wants you to create a program that shows prospective
    12·1 answer
  • Write code that outputs variable numCats. End with a newline.
    6·1 answer
  • Which of the following could be part of an algorithm?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!