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
Ahat [919]
3 years ago
8

Which of the following functions sends the the GPA entered by the user to the calling function? A. def get_gpa(): gpa = float(in

put("Enter GPA: ")) B. def get_gpa(gpa): gpa = float(input("Enter GPA: ")) C. def get_gpa(): gpa = float(input("Enter GPA: ")) return gpa D. All of the above
Computers and Technology
1 answer:
anzhelika [568]3 years ago
8 0

Answer:

option c is the correct answer for the above question.

Explanation:

  • The above function code which is written in the option is written in the python language. So when a user wants an entered gpa value returned by the function then there is a code of return statement which returned the input value.
  • Option c states a function which first takes the value from the user and stores it into a gpa variable, then it returns the value of that variable by a return function.
  • This option is able to return the user input value to the calling statement while the other option is not able to because there is no return statement in other options.
  • Hence option c is the correct answer.
You might be interested in
A navigation device that transfers packets of data between two or more networks is called a _______
Ira Lisetskai [31]
<span>A navigation device that transfers packets of data between two or more networks is called a Router.</span>
5 0
4 years ago
Assignment 2: room area <br>programming python in Project Stem​
White raven [17]

Answer:I love Python, very useful

Explanation:python is very easy and user friendly!

8 0
3 years ago
If you have cut or copied a set of information, which procedure will NOT work to paste it back into the worksheet?
faust18 [17]
It will work because i did it 
7 0
3 years ago
The function retrieveAt of the class arrayListType is written as a void function. Rewrite this function so that it is written as
Mariana [72]

Answer:

int retrieveAt(int location, array){

   // Function to retrieve the element from the list at the position

   // specified by the location

   if (location <= array.size() - 1){

       return array[location];

   } else{

       cout<<"Location out of range";

       assert(); // Assuming the assert function is defined in the program.

   }

}

Explanation:

The void retrieveAt function is converted to a return function that returns the integer item of the array given the location and the array variable as arguments. The assert function is used to terminate the program.

4 0
3 years ago
What should you do if a dialog box covers an area of the screen that you need to see?
KatRina [158]

Hm ok, so a dialog box is in the way it may just be as simple as zooming out if it is on a internet browser. The first picture below shows you how to do it on chrome,and the second picture on how to on Mozilla Firefox.

Both of these areas are found in the upper right corner of your internet browser, but <u>if I didn't answer this question the way you need it answered let me know!</u> I can edit and revise for whatever device or system you need me to, for a short period of time before the question locks.

Thanks!

5 0
4 years ago
Read 2 more answers
Other questions:
  • How does hardware differ from software
    9·1 answer
  • When using an online media source, students should ensure the information is
    13·2 answers
  • Olivia has developed a great presentation with a distinct purpose and excellent content. She delivered it in a workshop and got
    9·1 answer
  • What is this car first to awnser is the brianliest
    5·2 answers
  • Add and multiply
    10·1 answer
  • MAN speeds are faster than WAN speeds because of ________. technological limitations regulatory limitations
    6·1 answer
  • Which century saw the development of letterpress printing?
    10·1 answer
  • pharmaceutical company is using blockchain to manage their supply chain. Some of their drugs must be stored at a lower temperatu
    5·2 answers
  • How many total bits are required for a direct-mapped cache with 128 blocks and a block size of 8 bytes, assuming a 4GB main memo
    15·1 answer
  • An algorithm is a step by step process that describes how to solve a problem and/or complete a task, which will always give the
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!