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
xz_007 [3.2K]
3 years ago
10

Functions that do not return values _________.

Computers and Technology
2 answers:
ASHA 777 [7]3 years ago
6 0

Answer:

Functions that do not return values do not have return statements.

Explanation:

Lets take an example of a function in Python

def FunctionName(arguments)

function body  

The function that do not return value does not need to have a return statement.

It works the same as void function C++

The function that do not return values and has no return statements will end when the program control reaches end of the function body. This works same as void but in Python None is returned when such a function ends successfully. None is a special value which is returned in functions that do not have return statements.

Lets take an example of a few functions that have return values and that do not have return values.

def addition(x,y):

   a = b + c

summ = addition(1,2)

print(summ)

This function has no return values so there is no need to have a return statement. This will print None in the output

Another example is of the function that has a return statement and return values.

def addition(x,y):

   a = b + c

   return a

summ = addition(1,2)

print(summ)

Now this will give 3 as output and here return c is written which means that the function returns values.

seropon [69]3 years ago
3 0

Answer:

Do not have return statements.

Explanation:

In programming, a function is a block or group of program statements, specifically written to execute a given task. It is defined in any point of the program and called upon to interrupt the normal program flow.

Functions have locally defined variables and can also use global variable as well. When it is called, it may or may require an argument and a return statement of the needed parameter is defined. The return void statement returns a 0 value.

If a function is defined, but not called, it will not be executed and if a return statement is not defined in the function, it executed function would not return any value to the normal program flow.

You might be interested in
Meaning of fetch cycle​
kherson [118]

Answer:

The instruction cycle (also known as the fetch–decode–execute cycle, or simply the fetch-execute cycle) is the cycle that the central processing unit (CPU) follows from boot-up until the computer has shut down in order to process instructions.

Explanation:

7 0
3 years ago
When I use
slega [8]

Answer:

If it works then no, if it doesn't then yes

Explanation:

Code Academy probably runs either way because it is not taking this as a intense class.

5 0
3 years ago
When one method calls another, which of the following statements are true?
jonny [76]

Answer:

I. The class methods and instance methods of one class may call the public class methods of another class using dot notation and referencing the name of the other class.

Explanation:

Private methods are being accessed from only within the class or scope specified. No other means of accessibility is possible, and even through inheritance. And instance methods can never call without using dot notation, any of the class method of the same class. Hence second and third options are not correct. And the class method and the instance methods of one class may call the public class methods of another class using the dot notation and referencing the name of the other class. Hence, the correct option is the first one.

3 0
3 years ago
Which of the following statements correctly describe a computer program?
Naddik [55]

Answer: A. It’s a robust way to find information

Explanation:

Hope this help.

3 0
3 years ago
Read 2 more answers
How many iphones have Apple sold in 2019?
Phoenix [80]

Answer:

40.7 million iphones

Explanation:

Gupta. Apple's iPhone sales continued to decline in the third quarter of 2019. Apple sold 40.8 million iPhones, a year-over-year decline of 10.7%.

3 0
3 years ago
Read 2 more answers
Other questions:
  • You just read an msds for acetic acid. based on what you read, what type of information is included in an msds sheet? record you
    7·1 answer
  • What environmental concern will hybrid cars address?
    6·2 answers
  • What aspect does not provide context in a portrait?
    10·2 answers
  • Which page feature is used in long documents to assist readers in quickly finding information in the document without having to
    11·2 answers
  • Computer technology has changed our lives write of a least five ways to show how this is so​
    15·1 answer
  • Brainly app won't let me watch ads anymore. I search my question and there is no skip button to watch an ad it only makes me buy
    7·2 answers
  • What might a designer need to consider when choosing an appropriate energy source for products and power systems
    15·1 answer
  • Consider an online shopping portal that allows a customer to browse and purchase different products. The products are arranged u
    9·2 answers
  • Roles of computer in business areas​
    5·1 answer
  • What causes the hidden node problem in a wireless local area network (wlan)?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!