Back to marketplace

Chapter 4: Fundamental Data Types

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v3•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

How many primitive types are in java?

Back (Answer)

8

#2
Front (Question)

How many integer types are there?

Back (Answer)

4

#3
Front (Question)

How many floating-point types in java?

Back (Answer)

2

#4
Front (Question)

What is Integer.MAX_Value?

Back (Answer)

2.14 billion

#5
Front (Question)

What is Integer.MIN_VALUE

Back (Answer)

-2.14 billion

#6
Front (Question)

What is a number literal?

Back (Answer)

any number in a java program

#7
Front (Question)

What happens when a numeric computation overflows?

Back (Answer)

the result falls outside the range for the number type

#8
Front (Question)

T/F There is a warning when a numeric computation overflows?

Back (Answer)

False

#9
Front (Question)

What is the simplest remedy for numeric computation overflows?

Back (Answer)

Use the long type

#10
Front (Question)

T/F: It is legal to assign an integer type to a floating-point variable

Back (Answer)

true

#11
Front (Question)

When does a rounding error occur?

Back (Answer)

when an exact representation of a floating-point number is not possible

#12
Front (Question)

T/F: it is legal to assign a double value to an int value?

Back (Answer)

false - it is an assignment error

#13
Front (Question)

What are numerical constants?

Back (Answer)

values that do not change and have special significance for a computation

#14
Front (Question)

What happens when you tag a variable final?

Back (Answer)

You can never change after it has been set

#15
Front (Question)

What do many programmers name constants?

Back (Answer)

All upper case, separating words with underscores

#16
Front (Question)

How are constants declared?

Back (Answer)

public

#17
Front (Question)

What is an expression

Back (Answer)

The combination of variables, literals, and/or method calls

#18
Front (Question)

What does integers and floating-point values in an arithmetic expression yield?

Back (Answer)

a floating-point value

#19
Front (Question)

What does the ++ operator do?

Back (Answer)

adds 1 to a variable

#20
Front (Question)

What does the – operator do?

Back (Answer)

subtracts 1 from a variable

#21
Front (Question)

If both arguments are integers, and the mathematical result is a floating-point number, what happens to the remainder?

Back (Answer)

It is discarded

#22
Front (Question)

What does the modulus operator compute?

Back (Answer)

the remainder of an integer division

#23
Front (Question)

What is the modulus operator?

Back (Answer)

%

#24
Front (Question)

How do you take the square root of a number?

Back (Answer)

Math.sqrt(x)