This topic contains a solution. Click here to go to the answer

Author Question: Since you cannot take the square root of a negative number, you might use which of the following ... (Read 42 times)

sdfghj

  • Hero Member
  • *****
  • Posts: 552

Question 1

Of the following types, which one cannot store a numeric value?
◦ int
◦ byte
◦ float
◦ char
◦ all of these can store numeric values

Question 2

Since you cannot take the square root of a negative number, you might use which of the following instructions to find the square root of the variable x?
◦ Math.sqrt(x*x);
◦ Math.sqrt((int) x);
◦ Math.sqrt(Math.abs(x));
◦ Math.abs(Math.sqrt(x));
◦ Math.sqrt(-x);


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by sdfghj on Aug 30, 2020

moormoney

  • Sr. Member
  • ****
  • Posts: 326
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 50% of students answer this correctly




sdfghj

  • Member
  • Posts: 552
Reply 2 on: Aug 30, 2020
Excellent


mohan

  • Member
  • Posts: 362
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Recent studies have shown that the number of medication errors increases in relation to the number of orders that are verified per pharmacist, per work shift.

Did you know?

Over time, chronic hepatitis B virus and hepatitis C virus infections can progress to advanced liver disease, liver failure, and hepatocellular carcinoma. Unlike other forms, more than 80% of hepatitis C infections become chronic and lead to liver disease. When combined with hepatitis B, hepatitis C now accounts for 75% percent of all cases of liver disease around the world. Liver failure caused by hepatitis C is now leading cause of liver transplants in the United States.

Did you know?

Once thought to have neurofibromatosis, Joseph Merrick (also known as "the elephant man") is now, in retrospect, thought by clinical experts to have had Proteus syndrome. This endocrine disease causes continued and abnormal growth of the bones, muscles, skin, and so on and can become completely debilitating with severe deformities occurring anywhere on the body.

Did you know?

Drug abusers experience the following scenario: The pleasure given by their drug (or drugs) of choice is so strong that it is difficult to eradicate even after years of staying away from the substances involved. Certain triggers may cause a drug abuser to relapse. Research shows that long-term drug abuse results in significant changes in brain function that persist long after an individual stops using drugs. It is most important to realize that the same is true of not just illegal substances but alcohol and tobacco as well.

Did you know?

To prove that stomach ulcers were caused by bacteria and not by stress, a researcher consumed an entire laboratory beaker full of bacterial culture. After this, he did indeed develop stomach ulcers, and won the Nobel Prize for his discovery.

For a complete list of videos, visit our video library