sidneydominguez8516 sidneydominguez8516
  • 07-08-2019
  • Mathematics
contestada

Assume a program has the following variable defenition: int a, b =2; float c = 4.2; and the following statement: a = b * c; What will be stored in a? A. 8.4 B. 8 C. 0 D. None of the above

Respuesta :

erinna erinna
  • 12-08-2019

Answer:

The correct option is B.

Step-by-step explanation:

In a program the variables are defined as

int a, b =2;

float c = 4.2;

The given statement is

a = b * c

a = 2 * 4.2

a = 8.4

It is given that variable a is an integer. So, only integer value can be stored in a.

a ≈ 8

It means 8 will be stored in a. Therefore the correct option is B.

Answer Link

Otras preguntas

Find 56,794 divided by 338. Write the quotient twice, once with the remainder as a fraction and one with an r.
What is the value of 6 in 0.061
what is a robin is it a herbivores or carnivores or omnivores or insectivores
Denver is the Mile-High City. How high is this in a feet
Rena swims everyday. She burns approximately 10.6 calories per minute when swimming and about 15 calories warming up before she swims. Write an equation to find
Wht which animals are the Minangkabau most connected A.cow B.buffalo C.elephant D.tiger
La différence entre "persuader" et "convaincre" ??
Find 56,794 divided by 338. Write the quotient twice, once with the remainder as a fraction and one with an r.
whats 0.64 divided by 4 using standard algorithm
What happens to the total amount of matter and energy during a chemical reaction ?