Which of the following statements about implicit type conversion is true?

A. Characters cannot be used in arithmetic expressions so they cannot be promoted.
B. To evaluate a long long integer and a double, the double is first demoted to a long long integer.
C. If the right expression in an assignment has a higher-ranked type than the variable on the left of the assignment operator, the right expression is promoted to the variables type.
D. In an assignment, the expression on the right of the assignment operator may be promoted or demoted to match the type of the variable on the left.
E. Integer values cannot be promoted to real and real values cannot be demoted to integer.


Answer: D

Computer Science & Information Technology

You might also like to view...

________ are pre-built documents provided by Microsoft or users

Fill in the blank(s) with correct word

Computer Science & Information Technology

Clicking the New Site command, as shown in the accompanying figure, opens the ____ dialog box.

A. Create B. Start C. New D. Close

Computer Science & Information Technology

What is the first argument in the DLookup function?

A. the domain B. the criteria C. true or false D. the field that is used for the calculation

Computer Science & Information Technology

What type of Java statement allows you to use classes contained in other packages?

a) an access statement b) a class statement c) an import statement d) a package statement

Computer Science & Information Technology