Chapter 2 - Fundamental Data Types Flashcards

0
Q

A number that cannot have a fractional part.

A

Integer

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

A symbol in a program that identifies a storage location that can hold different values.

A

Variable

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

A number that can have a fractional part.

A

Floating-point number

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

A constant value in a program that is explicitly written as a number, such as -2 or 6.02214115E23

A

Number literal

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

A word that has a special meaning in a programming language and therefore cannot be used as a name by the programmer.

A

Reserved word

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

To store a new value in a variable, replacing the previously stored value.

A

Assignment statement

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

Placing a new value into a variable.

A

Assignment

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

A value that cannot be changed by a program. In Java, constants are defined with the reserved word final.

A

Constant

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

An explanation to help the human reader understand a section of a program; ignored by the compiler.

A

Comment

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

A syntactical construct that is made up of constants, variables, method calls, and the operators combining them.

A

Expression

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

The % operator that computes the remainder of an integer division.

A

Modulus

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

Explicitly converting a value from one type to a different type. For example, the cast from a floating-point number x to an integer is expressed in Java by the cast notation (int) x.

A

Casts

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

A string that tells the user to provide input.

A

Prompt

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

A collection of related classes. The import statement is used to access one or more classes in a package.

A

Package

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

Information about each class in the Java library.

A

API documentation

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

A code library for building programs.

A

Application Programming Interface (API)

16
Q

… letters, numbers, punctuation, spaces, and so on.

A

Characters

17
Q

The word is a sequence of characters.

A

String

18
Q

character sequences enclosed in quotes, such as “Harry”.

A

Literals

19
Q

Placing one string after another to form a new string.

A

Concatenation

20
Q

A character in text that is not taken literally but has a special meaning when combined with the character or characters that follow it. The \ character is an escape character in Java strings.

A

Escape character

21
Q

A value of a class type.

A

Object

22
Q

In Java, a number type, characters or boolean

A

Primitive type

23
Q

A standard code that assigns code values consisting of two bytes to characters used in scripts around the world. Java stores all characters as their Unicode values.

A

Unicode