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

Author Question: What value will z have if we execute the following assignment statement? int z = 50 / 10.00; (Read 150 times)

jc611

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

Question 1

What value will z have if we execute the following assignment statement?
float z = 5 / 10;
◦ z will equal 0.0
◦ z will equal 0.5
◦ z will equal 5.0
◦ z will equal 0.05
◦ none of these, a run-time error arises because z is a float and 5 / 10 is an int

Question 2

What value will z have if we execute the following assignment statement?
int z = 50 / 10.00;
◦ 5
◦ 5.0
◦ 50
◦ 10
◦ none of these, a run-time error arises because z is an int and 50 / 10.00 is not


Related Topics

Need homework help now?

Ask unlimited questions for free

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

Benayers

  • Sr. Member
  • ****
  • Posts: 328
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 39% of students answer this correctly




jc611

  • Member
  • Posts: 552
Reply 2 on: Aug 30, 2020
Wow, this really help


TheNamesImani

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

 

Did you know?

Always store hazardous household chemicals in their original containers out of reach of children. These include bleach, paint, strippers and products containing turpentine, garden chemicals, oven cleaners, fondue fuels, nail polish, and nail polish remover.

Did you know?

According to research, pregnant women tend to eat more if carrying a baby boy. Male fetuses may secrete a chemical that stimulates their mothers to step up her energy intake.

Did you know?

Amoebae are the simplest type of protozoans, and are characterized by a feeding and dividing trophozoite stage that moves by temporary extensions called pseudopodia or false feet.

Did you know?

There are actually 60 minerals, 16 vitamins, 12 essential amino acids, and three essential fatty acids that your body needs every day.

Did you know?

Certain rare plants containing cyanide include apricot pits and a type of potato called cassava. Fortunately, only chronic or massive ingestion of any of these plants can lead to serious poisoning.

For a complete list of videos, visit our video library