Chapter 8 JAVA Flashcards

1
Q

What is a data type?

A

A particular scheme for representing values with bit patterns.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A. A method for representing values that is so useful that it is a fundamental part of the language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following is NOT the name of a Java primitive data type?

A. int

B. float

C. double

D. String

A

D. String

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Say that a particular item of data in a Java program does NOT use a primitive data type. What must it be?

A. An object.

B. A number.

C. A literal.

D. A boolean.

A

A. An object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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.

A

D. Yes—a primitive data type is used to store characters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly