Answer the following statements true (T) or false (F)

1. A variable of the int data type can hold numbers with a fractional part, such as 22.1 or ?4.9.
2. A double variable is stored in a format that programmers call double precision floating-point notation.
3. A variable of the decimal data type can hold real numbers with greater precision that the double data type.
4. Because decimal is the preferred data type for storing monetary amounts, remembering that “m” stands for “money” might help you to remember that decimal literals must end with the letter M or m.
5. You can assign integer constants to int, double, and decimal variables.


1. TRUE
2. TRUE
3. TRUE
4. TRUE
5. FALSE

Computer Science & Information Technology

You might also like to view...

A breadth-first traversal of a graph uses which of the following data structures?

a) binary search tree b) stack c) queue d) array e) none of the above

Computer Science & Information Technology

A method in a parent class must be ____________________ in order to be  used by the child class.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology