MODULE 3: Data types, variables, and operators Flashcards

1
Q

Operators that perform basic mathematical operations such as addition, subtraction, multiplication, division, and modulus. Examples include +, -, *, /, and %.

A

Arithmetic Operators

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

Operators that operate on a single operand to perform operations like negation and incrementing. Examples include unary plus +, unary minus -, increment ++, and decrement –.

A

Unary Operators

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

Operators used to compare two values, returning a boolean result.

A

Relational Operators

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

Operators that combine multiple boolean expressions into one larger expression.

A

Logical Operators

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

Operators that assign values to variables, allowing for shorthand syntax for common operations. Examples include = (assignment), +=, -=, *=, /=, and %=.

A

Assignment Operators

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

The smallest data type in Java, used to save space in large arrays where memory is limited. It can hold values from -128 to 127.

A

Byte

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

A data type that can store numerical values slightly larger than byte, ranging from -32,768 to 32,767, useful for saving memory.

A

Short

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

A widely used data type for storing integer values, capable of holding a range from -2,147,483,648 to 2,147,483,647.

A

int

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

A data type used for larger integer values that exceed the limits of int, suitable for large counts or mathematical calculations.

A

long

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

A single-precision decimal value used for fractional numbers. It is less precise than double but useful for applications that prioritize memory efficiency.

A

float

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

A data type that provides double precision for decimal values, commonly used in scientific calculations for its accuracy.

A

double

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

A data type that represents a single 16-bit Unicode character, typically used to store individual characters in Java.

A

char

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

A data type used to flag true or false conditions, fundamental in control flow and decision-making in programming.

A

boolean

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