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
He collected a total of 120 coins . If ​72 % of the coins he collected were​ foreign, how many other did he​ collect?
dem82 [27]
33 other coins were collected
8 0
2 years ago
What's $10,100 Afghanistan converted into US$ <br><br> Please answer with how you got your answer
Wewaii [24]

Hi :)

10, 100 Afghani Afghani (currency name) is $1212 USD with the conversion you provided. Today it's like $117.41.

7 0
3 years ago
Can you help me to solve this​
Ber [7]

Answer:

\frac{4a-2}{2a+1}

Step-by-step explanation:

Factorise the numerator and denominator

8a² - 2 ← factor out 2 from each term

= 2(4a² - 1) ← 4a² - 1 is a difference of squares

= 2(2a - 1)(2a + 1)

4a² + 4a + 1 ← is a perfect square

= (2a + 1)²

Thus

\frac{8a^2-2}{4a^2+4a+1}

= \frac{2(2a-1)(2a+1)}{(2a+1)(2a+1)} ← cancel (2a + 1) on numerator/ denominator

= \frac{2(2a-1)}{2a+1}

= \frac{4a-2}{2a+1}

3 0
3 years ago
Read 2 more answers
Arc MNP equals 126. O is the center. Find angle MOP
Paha777 [63]
We know that

the angle MOP is equal to arc MNP because is a central angle

the answer is 
angle MOP=126°
3 0
3 years ago
[-22(-0.2)] - [ (2) x 0.22] =<br><br> This stuff is hard...!!!
Ede4ka [16]

-22(-0.2) - [ 2 (0.22)]

4.4 - 0.44 = 3.96

8 0
3 years ago
Read 2 more answers
Other questions:
  • 9000 m in 9 km show work
    9·1 answer
  • The center of a circle is at (–10, 6) and it has a radius of 4. What is the equation of the circle?
    15·2 answers
  • Need help with these.
    5·2 answers
  • Find the solution of each equation<br><img src="https://tex.z-dn.net/?f=14%20-%20x%20%3D%2016" id="TexFormula1" title="14 - x =
    7·2 answers
  • A person draws a card from a hat. Each card is one color with the following probabilities of being drawn: 1/10 for red, 1/5 for
    8·1 answer
  • Luis has 8 baseball cards, 10 football cards, 4 hockey cards, and 14 basketball cards. All the same size and shape. Luis will se
    5·1 answer
  • Problem 1
    8·1 answer
  • Mr. Quillin showed students part of the prime factorization of 90. One factor is
    13·1 answer
  • Y = 2/3x - 2<br> y = -x + 3<br> Please and quickly
    13·1 answer
  • Ellie is numbering her 150 pages scrapbook. how many times will she write the digit 4? ​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!