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

6.106x10^7 in standard form
What is the difference of substances with covalent and hydrogen bonds
what is -2+(-3) please help me
Who has been rightly called the father of modern rationalism?
what type of protein embedded in the plasma membrane passively allows molecules move through the membrane? A. carrier B. connecting C. channel D. identify or
Which quadrilaterals have two pairs of opposite sides that are parallel and have no right angles? Choose all answers that are correct. A. parallelogram that i
There were 378 visitors to the science museum on Friday. There were 409 visitors on Saturday. How many more people visited the museum on Saturday?
Select all words that make up the prepositional phrase in the sentence. The unexpected ending of that movie really surprised and delighted me.
- 4>- 10- 3x the answer
How can drawing a self portrait be beneficial at different stages of life