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
erma4kov [3.2K]
4 years ago
5

Consider the following method.

Computers and Technology
1 answer:
dimaraw [331]4 years ago
5 0

Answer:

The answer to this question is given below in the explanation section.

Explanation:

Consider the following method.

public double secret(int x, double y)

{

return x/2.0;

}

The return type of this function is double, so where it will store the result in a variable, that variable should be of double type. So, among given options, the correct option is double result = secret(4, 4.0);

All others options are incorrect and will give the error.

for example:

int result = secret(4, 4);

in it, the function secret is accepting first integer and second double parameters, while you are passing all integer variables.

int result = secret(4, 4.0);

you are not allowed to store double value into integer.

double result = secret(4.0, 4.0); in it you are passing incorrect types of parameter.

You might be interested in
When you get ###### or 1.1E+13 as a result in a cell, it means:
Zigmanuir [339]
This simply means that the cell is not wide enough to be able to show all the contents entered into that cell
7 0
3 years ago
Paul has been working long hours. He is tired and distracted by family issues,
azamat

Answer: Option (B)

Explanation:

Data leakage is referred to as or known as an unauthorized transmission or broadcast of data and information from one source or an organization to any external recipient. This terminology can be also used in order to describe information and data which is transferred physically or electronically. These data leakage threats tend to usually or mainly take place through email or the web, but can take place through several other data storage devices.

7 0
3 years ago
Your company wants to use an IoT device but wants to make sure it does not interfere with other RF devices that use the 2.4 GHz
Karo-lina-s [1.5K]

Answer:

Option 3 i.e., Z-Wave.

Explanation:

The Z-Wave device should be purchased by the company because It is a standard for connectivity, used mainly for smart home devices that use the 2.4 GHz RF band and this is also that device which the company wanted for the 50 meters away from the base station.  

So, It is a device should be purchased by the company.

Other options are incorrect because those devices not accomplish the following requirements.

7 0
3 years ago
Which of the following is NOT a reason to include comments in programs
wel

Answer:

C. Comments help document how code was written for other programmers to use.

Explanation:

I think it i C.

7 0
3 years ago
Read 2 more answers
The presentation layer describes the layer where computers interact with _____
Dovator [93]
I believe its other computers 
5 0
3 years ago
Read 2 more answers
Other questions:
  • A company requires an Ethernet connection from the north end of its office building to the south end. The distance between conne
    8·1 answer
  • A search engine displays a list of webpage names that contain the search text. what is the term for that list?
    14·1 answer
  • 6. Which of the following options is used to view a computer's memory properties?
    8·1 answer
  • Why do astronomers prefer to use the reflecting telescope rather than the refracting telescope to view distant objects in space?
    15·2 answers
  • The good example of pivoting is changing thedimensions along the axis.? True? False
    9·1 answer
  • Which broad area of data mining applications analyzes data, forming rules to distinguish between defined classes?
    13·1 answer
  • What scientific principle would a plumber need to know when designing and installing plumbing a new construction
    13·1 answer
  • List two ways to insert a chart in powerpoint
    14·1 answer
  • What is a task that is not associated with loading existing data into a new ERP system.
    11·2 answers
  • High speed printer that produce higher quality printouts but are more expensive is
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!