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
Licemer1 [7]
3 years ago
15

What is the difference between a method and a function? In what ways are they similar? Why do you think Python makes a distincti

on between methods and functions?
Computers and Technology
1 answer:
makvit [3.9K]3 years ago
5 0

Answer:

A method in python is somewhat similarto a function, except it is associated with object/classes. Methods in python are very similar to functions except for two major differences. The method is implicitly used for an object for which it is called. The method is accessible to data that is contained within the class.

You might be interested in
The lightbulb transfers electricity energy into light what is one type of energy that is also generated that is not a desired af
Leviafan [203]
Heat energy is also present when the bulb glows
8 0
4 years ago
Which of the following statement is correct? Select one: a. Base register holds the size of a process. b. Limit register holds t
Valentin [98]

Answer:

b. Limit register holds the size of a process.

Explanation:

A limit register is a form of registers used in memory management background that contains logical addresses. It is utilized to determines the size of the psychical memory range for a process. It can only be loaded only by the operating system, through a unique specific instruction.

Hence, in this case, the right answer is option B

Option A is not correct because the Base register specifies where the page table begins in memory

Option C is not correct because Base and limit registers can be only be loaded through the operating system

Option D is also not correct.

4 0
3 years ago
Given the integer variables x, y, and z, write a fragment of code that assigns the smallest of x, y, and z to another integer va
Flura [38]
You should specify what language you're using in these types of questions. Here's an example in C++, which is fairly easy to understand, so you should be able to transfer the concept to another language to problem.

int x = 2, y = 1, z = 3, min;

if (x < y && x < z)
min = x;
else if (y < x && y < z)
min = y;
else if (z < x && z < y)
min = z;
else
std::cout << "There is no minimum";
3 0
3 years ago
is a measurement that quantifies how much information can be transmitted over the network. A. Memory B. DMZ C. Bandwidth D. Clou
AnnZ [28]

Answer: Bandwidth....

6 0
3 years ago
Which of the following statements represents the number of columns in a regular two-dimensional array named values?
puteri [66]

Answer:

(a) values[0].length

Explanation:

In programming languages such as Java, an array is a collection of data of the same type. For example, a and b below are an example of an array.

a = {5, 6, 7, 9}

b = {{2,3,4}, {3,5,4}, {6,8,5}, {1,4,6}}

But while a is a one-dimensional array, b is a regular two-dimensional array. A two-dimensional array is typically an array of one-dimensional arrays.

Now, a few thing to note about a two-dimensional array:

(i) The number of rows in a 2-dimensional array is given by;

<em>arrayname.length</em>

For example, to get the number of rows in array b above, we simply write;

<em>b.length </em>which will give 4

(ii) The number of columns in a 2-dimensional array is given by;

<em>arrayname[0].length</em>

This is with an assumption that all rows have same number of columns.

To get the number of columns in array b above, we simply write;

<em>b[0].length </em>which will give 3

Therefore, for a regular two-dimensional array named values, the number of columns is represented by: values[0].length

5 0
3 years ago
Other questions:
  • How many megabytes of data can a factory made audio cd hold?
    13·1 answer
  • From the video "Your Password Sucks", using computer power to guess your password by trying multiple variations one after the ot
    15·2 answers
  • How do governments correct for negative externalities?
    5·1 answer
  • What allows users to connect via the Internet to its private network?
    11·2 answers
  • What is computer. Write full form of mips​
    15·1 answer
  • How i simplify this boolean expression ?A'.B'.C'+A'.B'.C+A'.B.C+A.B'.C+A.B.C
    6·2 answers
  • What are the functions of super computer?<br> ​
    7·2 answers
  • 1- pensamiento sistémico<br>2- visión oriental y occidental​
    8·1 answer
  • How are most databases organized?
    15·1 answer
  • What is system software?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!