![nuna37](/avatars/39948.jpg)
nuna37
07.08.2019 •
Mathematics
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
Solved
Show answers
More tips
- A Auto and Moto What is the Average Lifespan of an Engine in a Car?...
- P Photography and Videography Understanding HDR: How It Works and Why You Need It...
- P Photography and Videography How to Choose the Perfect Photo Paper for Your Images?...
- C Computers and Internet How to Choose an Uninterruptible Power Supply (UPS) for Your Computer: Expert Tips...
- S Science and Technology How to choose a home theater system?...
- A Auto and Moto How to Choose a Car Wash? Tips and Recommendations...
- A Animals and plants How ants survive winter: exploring the secrets of their winter life...
- C Construction and repair How to Choose the Best Underfloor Heating?...
- S Sport When is the Champions League final?...
- S Sport When and Where Will the 2014 World Cup be Held?...
Answers on questions: Mathematics
- M Mathematics Kelly bounces a basketball 20 times in 45 seconds. At the rate , approximately how many times will Kelly bounce the ball in 150 seconds?...
- M Mathematics What is x in the equation-5/8 x=-160...
- M Mathematics A piece of string 8 inches long is cut into two pieces, one of which is of length x inches. If this piece is made into the circumference of a circle, and the other...
- M Mathematics In the Japanese game show Sushi Roulette, the contestant spins a large wheel that’s divided into 12 equal sections. Nine of the sections have a sushi roll, and three...
- M Mathematics 2.2.17 Given the function H(v) = 10v +9, find each of the following. H(3) =...
- M Mathematics Which equation is modeled on the number line below? -10-9-8-7-6-5-4-3-2-1 0 1 2 3 4 5 6 7 8 9 10 H А 2 *(-5) = -10 B 5*(-2) = -10 с 2 x 5 = 10 D -2 *(-5) = 10 pls...
Ответ:
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.
Ответ: