Chapter 8: Primitive Data
What is a Java primitive data type? A. A method for representing values that is so useful that it is a fundamental part of the language. B. A crude form of representing numbers. C. The part of Java that is the same as in older languages. D. A data type that cannot be used as part of an object.
A
What is a data type? A. The part of the CPU that does arithmetic. B. A part of main memory used to store data. C. A particular scheme for represending values with bit patterns. D. The collection of variables that a program uses.
C
Can character data be stored in computer memory? A. No—computers can only store numbers. B. No—computer memory can only store patterns. C. Yes—characters are stored in special memory. D. Yes—a primitive data type is used to store characters.
D
Which of the following is NOT the name of a Java primitive data type? A. int B. float C. double D. String
D
Say that a particular item of data does NOT use a primitive data type. What must it be? A. An object. B. A number. C. A literal. D. A boolean.
A