Chapter 4: Fundamental Data Types Flashcards

1
Q

number literal

A

A fixed value in a program this is explicitly written as a number, such as –2 or 6.02214115E23

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

constants

A

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

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

operators

A

A symbol denoting a mathematical or logical operation, such as + or &&.

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

integer division

A

Taking the quotient of two integers and discarding the remainder. In Java the / symbol denotes integer division if both arguments are integers. For example, 11/4 is 2, not 2.75.

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

modulus

A

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

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

prompt

A

A string that tells the user to provide input.

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

characters

A

A single letter, digit, or symbol.

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

string

A

A sequence of characters.

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

literals

A

A notation for a fixed value in a program, such as –2, 3.14, 6.02214115E23, “Harry”, or ‘H’.

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

concatenation

A

Placing one string after another to form a new string.

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

escape sequence

A

A sequence of characters that starts with an escape character, such as \n or ".

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

Unicode

A

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.

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

character

A

A single letter, digit, or symbol.

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

primitive types

A

In Java, a number type or boolean.

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