1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Gwar [14]
3 years ago
12

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
Mathematics
1 answer:
Vladimir [108]3 years ago
5 0

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.

You might be interested in
[PICTURE ATTACHED] HEELPP!
liraira [26]

Answer:

saving money

Step-by-step explanation:

it wouldn't be none with repaid yet!

8 0
2 years ago
Read 2 more answers
What irrational number is between 4.12 and 4.13<br><br> A.)sqrt{19}<br> B.)sqrt{23}
fenix001 [56]
Sort{17} which equals 4.123
3 0
3 years ago
Determine the theoretical probability of rolling a number larger than 3 on a standard 6-sided cube. 1/2, 1/6, 1/4, 1/3
nirvana33 [79]
|\Omega|=6\\&#10;|A|=3\\&#10;P(A)=\dfrac{3}{6}=\dfrac{1}{2}
7 0
3 years ago
Read 2 more answers
In 2005, the population of a state was 31,006,000. If the population grows at 1.2% per year, approximately how
Rina8888 [55]

Answer:

Step-by-step explanation:

7 0
2 years ago
What is 492.3069 rounded to nearest thousandth
WARRIOR [948]
492.3069 rounded to the nearest thousandth is 492.307 :-)
7 0
3 years ago
Read 2 more answers
Other questions:
  • What is -3 and 2/7 minus 4 and 1/3 and can it be simplified
    13·2 answers
  • A bakery used 2 cups of flour to make a full size cake. If they wanted to make a cake that was 0.23 the size, how many cups of f
    7·1 answer
  • What is the slope of this line?​
    8·2 answers
  • A letter or symbol that is used to represent a number is called a
    13·2 answers
  • How do the angle measures and side lengths compare in similar figures ?
    6·2 answers
  • Ken has saved $120 in the bank account. Do the following situations leaves ken with a balance of $0
    12·1 answer
  • −2x + 2y = −5 <br> 5x − 6y = 8
    13·1 answer
  • Is 13 the hypotenuse
    8·1 answer
  • Write an equivalent expression to 2x + 3 + 5(x+ 6) by combining like terms
    12·1 answer
  • Which set it ordered pairs represent a function
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!