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
a rectangle has a width of 4 cm and a length of 8cm is scaled by a factor of 6.what are the side lengths of the scaled copy
vichka [17]

Answer:

\huge\boxed{\text{Width: } 24 \ \ \ \text{Length: } 32}

Step-by-step explanation:

When we scale an object by a scale factor, the side lengths become the scale factor times bigger than the previous sides. Therefore, with a scale factor of 6, the side lengths would be multiplied by 6.

4 \cdot 6 = 24\\\\4 \cdot 8 = 32

Hope this helped!

6 0
3 years ago
Read 2 more answers
If you don’t know then don’t say anything.
tino4ka555 [31]

Answer:

in total there are 80 subjects. I don't know what class width is though.

Step-by-step explanation:

Look at the graph

3 0
2 years ago
On Monday, 279 students went on a trip
belka [17]
45 students in each bus
7 0
3 years ago
You just got a free ticket for a boat ride, and you can bring along 4 friends! Unfortunately, you have 6 friends who want to com
Sliva [168]

Answer:

Step-by-step explanation:you can take 5

5 0
3 years ago
Read 2 more answers
What is the slope of the line with the equation y=6
Finger [1]

Answer:

6


Step-by-step explanation:


3 0
3 years ago
Other questions:
  • What two things did the delegates disagree about that forced them to make compromises
    5·1 answer
  • 11. Solve for the value of x in the triangle shown below. Show your work! (1 point for equation, 1 point for answer)
    15·1 answer
  • The quotient of 8 decreased by a number divided by 5
    10·1 answer
  • Question is shown below.
    7·1 answer
  • Karen already owns 3 hair bands, and additional hair bands are priced at 8 for a dollar. How much money does Karen need to spend
    11·1 answer
  • The product of a number and eleven is seventy-seven.
    12·2 answers
  • Find the value of x and y in the triangle below.<br><br> Value of X:<br> Value of Y:
    10·1 answer
  • If f(x) = 7x - 3 and g(x) = x^2, what is (g° 0(1)?
    14·2 answers
  • 2x + 7 &gt;11<br> I need some help
    11·2 answers
  • Please help lol for brainly
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!