IS 6615 - Ch. 2 Questions
An escape sequence always begins with a(n) _______.
Backslash
When data cannot be changed after a class is compiled, the data is _______.
Constant
If you attempt to add a float, an int, and a byte, the result will be a(n) _____.
Error Message
Which of the following data types can store a value in the least amount of memory?
byte
The assignment operator in java is _______.
=
The "equal to" relational operator is _______.
==
A boolean variable can hold _______.
The value if true or false
Assuming you have declared shoeSize to be a variable of type int, which of the following is a valid assignment statement in Java?
= 9
The value 137.68 can be held by a variable of type ______.
Float and double
According to the rules of the operator precedence, when division occurs in the same arithmetic statement as _______, the division operation always takes place first.
Multiplication
When you perform arithmetic with values of diverse types, Java ______.
Requires you to explicitly convert the values to a unifying type.
Which of the following is not a primitive data type in Java?
Sector
Which Java statement produces the following output? w xyz
System.out.println("w\nxyz");
You use a _________ to explicitly override an implicit type.
type cast