Java Ch 2
backslash
An escape sequence always begins with a(n) ____.
balance = 9000;
Assuming you have declared balance to be a variable of type int, which of the following is a valid assignment statement in Java?
constant
When data cannot be changed while a program is running, the data is ____.
implicitly converts the values to a unifying type
When you perform arithmetic with values of diverse types, Java ____.
char aChar = '*';
Which assignment is correct in Java?
byte
Which of the following data types can store a value in the least amount of memory?
an assigned value
Which of the following elements is not required in a variable declaration?
double
Which of the following is a floating-point data type that Java supports?
sector
Which of the following is not a primitive data type in Java?
Try Again
Which of the following is not an option that can be displayed with a confirm dialog box?
type cast
You use a ____ to explicitly override an implicit type.
the value true or false
A boolean variable can hold ____.
subtraction
According to the rules of operator precedence, when division occurs in the same arithmetic statement as ____, the division operation always takes place first.
float
If you attempt to add a float, an int, and a byte, the result will be a(n) ____.
c. ==
The "equal to" relational operator is ____.
tokens
The Scanner class contains methods that retrieve values, referred to as ____, from an input device.
=
The assignment operator in Java is ____.
is also called the modulus operator
The remainder operator ____.
significant digits
The term ____ refers to the mathematical accuracy of a value.
System.in
To create interactive programs that accept input from a user, you can use ____.