Answer:
Option A is the correct choice answer for the above question.
Explanation:
The programming concept says that every function returns some value. If the return value is not defined by the user then the function returns the garbage value otherwise it returns the defined value by the user.
The return value is defined by the user with the help of the "return" statement and with the help of the following syntax-
return value; // The return statement.
Hence the option A is right because it satisfies the above concept while the other is not because--
- Option B states that it must be longer than one line which is not correct.
- Option C states that it cannot be longer than one line but this line does not make any sense about the returned statement.
- Option D states that it describes the parameter value which is the wrong definition about the returned statement.
Answer:
Answered below.
Explanation:
#Answer is written in Python programming language
#Get inputs
radius = float(input("Enter radius in inches: "))
height = float(input("Enter height in feet: "))
#Convert height in feet to height in inches
height_in_inches = height * 12
#calculate volume in cubic inches
volume = 3.14 * (radius**2) * height_to_inches
#convert volume in cubic inches to volume in gallons
volume_in_gallons = volume * 0.00433
#output result
print (volume_in_gallons)
Read it backwords. it helps look for spelling errors.
Answer:
Print.. is your answer...
Answer:
C, Both of these.
Explanation:
You can take notes either way. It's just your preference. Hope this helps :)