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 41 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
Thanks for the timely response, appreciate it


dantucker

  • Member
  • Posts: 346
Reply 3 on: Yesterday
Excellent

 

Did you know?

Aspirin is the most widely used drug in the world. It has even been recognized as such by the Guinness Book of World Records.

Did you know?

For pediatric patients, intravenous fluids are the most commonly cited products involved in medication errors that are reported to the USP.

Did you know?

Many supplement containers do not even contain what their labels say. There are many documented reports of products containing much less, or more, that what is listed on their labels. They may also contain undisclosed prescription drugs and even contaminants.

Did you know?

A strange skin disease referred to as Morgellons has occurred in the southern United States and in California. Symptoms include slowly healing sores, joint pain, persistent fatigue, and a sensation of things crawling through the skin. Another symptom is strange-looking, threadlike extrusions coming out of the skin.

Did you know?

The liver is the only organ that has the ability to regenerate itself after certain types of damage. As much as 25% of the liver can be removed, and it will still regenerate back to its original shape and size. However, the liver cannot regenerate after severe damage caused by alcohol.

For a complete list of videos, visit our video library