subject
Computers and Technology, 28.02.2020 20:25 Sebs1

Assume a program has the following variable definitions:

int units;

float mass;

double weight;

and the following statement

weight = mass * units;

Which automatic data type conversion will take place?

a) mass is demoted to an int, units remains an int, and the result of mass * units is an int.

b) units is promoted to a float, mass remains a float and the result of mass * units is a float.

c) units is promoted to a float, mass remains a float and the result of mass * units is a double.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:00
Idon understand these and need some ! ?
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
question
Computers and Technology, 24.06.2019 21:30
Along what line of action can the camera move to follow the movement of actors for screen direction? a. along a 90-degree arcb. along a 120-degree arcc. along a 180-degree arcd. along a 360-degree arc
Answers: 1
You know the right answer?
Assume a program has the following variable definitions:

int units;

float ma...
Questions
question
Mathematics, 16.10.2020 22:01
question
Mathematics, 16.10.2020 22:01
question
Mathematics, 16.10.2020 22:01
question
Mathematics, 16.10.2020 22:01
question
Mathematics, 16.10.2020 22:01
Questions on the website: 13722361