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
. Complete the code, drawing a line between points (100, 200) and (34, 67)
Galina-37 [17]

Answer:

The answer for the given question is given below:

public void paint( Graphics g )

{

g.drawLine(100, 200 ,34, 67);

}

Explanation:

In this code we are using “drawLine” method to draw the line between the points

The graphics object “g” is to call the drawLine method .

The syntax of drawline method is given below

drawLine(int X1, int Y1, int X2, int Y2)

Where  X1,  Y1,  X2,  Y2 are the points in the x and y coordinate

Following are the full code of that program  

import java.applet.Applet; // package of applet

import java.awt.Graphics; // package of awt  

public class line1 extends Applet  //inherit applet class

{

public void paint( Graphics g ) // paint method

{

g.drawLine(100, 200 ,34, 67); // drawline

}

}

It draw the corresponding line between the coordinate

8 0
3 years ago
Why might a business use spreadsheet software for bookkeeping?
Ugo [173]

Answer:

organize and categorize

Explanation:

Spreadsheets are an essential business and accounting tool. They can vary in complexity and can be used for various reasons, but their primary purpose is to organize and categorize data into a logical format. Once this data is entered into the spreadsheet, you can use it to help organize and grow your business.

8 0
3 years ago
You’re the network administrator for a large university which has numerous systems that require you to monitor the logs and anal
bezimeni [28]

Answer:

Security Information and Event Management (SIEM) systems are designed specifically  for log aggregation and analysis.

Explanation:

7 0
3 years ago
Explain why a CPU’s speed is affected by the number of buses.
Irina-Kira [14]

The Effect of the Motherboard's Bus Speed on CPU Speed:

 

 

A computer motherboard's bus speed has no effect on the installed CPU's speed. In a computer, the motherboard and the CPU are two separate components and do not alter how well the other one performs. However, the user experience is measured in how well the two perform together.

 

 

CPU

The CPU, or the computer's main processor, has a factory-determined operating speed. The processor's speed can be altered through the motherboard's BIOS settings on some computers. Hardware compatibility errors aside, the CPU's speed is not altered by any other part of the computer. However, the CPU is the fastest part of the computer and often gets held up by other hardware that can't keep up. CPUs handle all the computer's computational work outside of major graphical work performed by the GPU.

 

 

 

 

 

 

 

 

Bus

The motherboard's bus is the part of the device that transfers data between parts. The term "bus speed" refers to how quickly the system bus can move data from one computer component to the other. The faster the bus, the more data it can move within a given amount of time. The system's "Front Side Bus" connects the CPU to the computer's "Northbridge," which handles communication between the computer's RAM and the processor. This is the fastest part of the bus and handles the computer's most vital workload.

 

 

 

Bus Feeds the CPU

The CPU itself is pointless unless it has data to process; the bus’s job is to get that data to the CPU. The bus does not increase or decrease the CPU's speed but handles that data that flows in and out of the device, which plays a key role in how well the CPU performs. This is the point where the Bus can affect the CPU's performance output -- the CPU works in a cyclical process, with data going in and out of the device on a timed interval. If the CPU doesn't have any data to work with in a cycle, it wastes a cycle and doesn't process any data.

 

Insufficient Bus

An insufficient bus speed could leave a computer's CPU hanging as it waits for more information to process. This creates a "bottleneck," or the point at which one part of the computer slows down performance for another part of the system. If the bus is too slow, the CPU will waste a substantial amount of cycles and the computer user would perceive this as slower performance.

 

 

Sufficient Bus

A motherboard that has a sufficient or excessive bus speed for the CPU will offer the optimal performance speed. If the bus is fast enough, the CPU will consistently have new data to process ready to go when it completes a cycle. While the process isn't perfect and there always being unused cycles, a sufficient bus speed helps maximize how many of those cycles are used.

<span>Source: http://smallbusiness.chron.com/effect-motherboards-bus-speed-cpu-speed-70907.html</span>

8 0
3 years ago
Which of the following is not an advantage to using a web hosting provider?
vfiekz [6]

I'd say all of these are wrong, though my best guess would be it will provide security.

8 0
3 years ago
Read 2 more answers
Other questions:
  • What new england industry quickly collapsed with the discovery of oil in pennsylvania
    9·2 answers
  • .<br> 1. Press the _______ key to move to the next cell in a row.
    14·2 answers
  • The destructor automatically executes when the class object goes out of ____.
    12·1 answer
  • Why is it unlawful for an employer to refuse to employ someone based solely on their gender without evidence that such a charact
    9·1 answer
  • IT professionals should help to protect users’ personal information, such as bank account information or Social Security numbers
    7·2 answers
  • An administrator is having some trouble with a disk partition and needs to do maintenance on this partition but their user's hom
    11·1 answer
  • A clock is reading 10:27:54.0 (hr:min:sec) when it is discovered to be 4 seconds fast. Explain why it is undesirable to set it b
    9·1 answer
  • Assume we have a two-class learning problem where the labeled data consists of 1,000 data points from one class, and 10 data poi
    15·1 answer
  • Explain how data is represent in the computer system
    7·1 answer
  • You are the system administrator for Precision Accounting Services, which employs 20 accountants and 25 accounting assistants. T
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!